{

"resourceType": "Bundle",
"id": "resources",
"meta": {
  "lastUpdated": "2019-11-01T09:29:23.356+11:00"
},
"type": "collection",
"entry": [
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Resource",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Resource",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Resource",
      "version": "4.0.1",
      "name": "Resource",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": true,
      "type": "Resource",
      "snapshot": {
        "element": [
          {
            "id": "Resource",
            "path": "Resource",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Resource",
              "min": 0,
              "max": "*"
            },
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Resource.id",
            "path": "Resource.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Resource.meta",
            "path": "Resource.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Resource.implicitRules",
            "path": "Resource.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Resource.language",
            "path": "Resource.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Resource",
            "path": "Resource",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Resource.id",
            "path": "Resource.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Resource.meta",
            "path": "Resource.meta",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Meta"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Resource.implicitRules",
            "path": "Resource.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Resource.language",
            "path": "Resource.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Account",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Account",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.General"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Account",
      "version": "4.0.1",
      "name": "Account",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Account",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Account",
            "path": "Account",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Account",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.id",
            "path": "Account.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.meta",
            "path": "Account.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.implicitRules",
            "path": "Account.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Account.language",
            "path": "Account.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Account.text",
            "path": "Account.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.contained",
            "path": "Account.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.extension",
            "path": "Account.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.modifierExtension",
            "path": "Account.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Account.identifier",
            "path": "Account.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Account.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.status",
            "path": "Account.status",
            "comment": "This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the Account as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Account.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AccountStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates whether the account is available to be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/account-status|4.0.1"
            }
          },
          {
            "id": "Account.type",
            "path": "Account.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Account.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AccountType"
                }
              ],
              "strength": "example",
              "description": "The usage type of this account, permits categorization of accounts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/account-type"
            }
          },
          {
            "id": "Account.name",
            "path": "Account.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Account.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.subject",
            "path": "Account.subject",
            "comment": "Accounts can be applied to non-patients for tracking other non-patient related activities, such as group services (patients not tracked, and costs charged to another body), or might not be allocated.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Account.subject",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.servicePeriod",
            "path": "Account.servicePeriod",
            "comment": "It is possible for transactions to be posted outside the service period, as long as the service was provided within the defined service period.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Account.servicePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.coverage",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Coverage"
              }
            ],
            "path": "Account.coverage",
            "comment": "Typically. this may be some form of insurance, internal charges, or self-pay.\n\nLocal or jurisdictional business rules may determine which coverage covers which types of billable items charged to the account, and in which order.\nWhere the order is important, a local/jurisdictional extension may be defined to specify the order for the type of charge.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Account.coverage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.coverage.id",
            "path": "Account.coverage.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.coverage.extension",
            "path": "Account.coverage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.coverage.modifierExtension",
            "path": "Account.coverage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Account.coverage.coverage",
            "path": "Account.coverage.coverage",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Account.coverage.coverage",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.coverage.priority",
            "path": "Account.coverage.priority",
            "comment": "It is common in some jurisdictions for there to be multiple coverages allocated to an account, and a sequence is required to order the settling of the account (often with insurance claiming).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Account.coverage.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.owner",
            "path": "Account.owner",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Account.owner",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.description",
            "path": "Account.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Account.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Account.guarantor",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Guarantor"
              }
            ],
            "path": "Account.guarantor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Account.guarantor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.guarantor.id",
            "path": "Account.guarantor.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.guarantor.extension",
            "path": "Account.guarantor.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.guarantor.modifierExtension",
            "path": "Account.guarantor.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Account.guarantor.party",
            "path": "Account.guarantor.party",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Account.guarantor.party",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.guarantor.onHold",
            "path": "Account.guarantor.onHold",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Account.guarantor.onHold",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.guarantor.period",
            "path": "Account.guarantor.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Account.guarantor.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Account.partOf",
            "path": "Account.partOf",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Account.partOf",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Account"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Account",
            "path": "Account",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Account.identifier",
            "path": "Account.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Account.status",
            "path": "Account.status",
            "comment": "This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the Account as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AccountStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates whether the account is available to be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/account-status|4.0.1"
            }
          },
          {
            "id": "Account.type",
            "path": "Account.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AccountType"
                }
              ],
              "strength": "example",
              "description": "The usage type of this account, permits categorization of accounts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/account-type"
            }
          },
          {
            "id": "Account.name",
            "path": "Account.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Account.subject",
            "path": "Account.subject",
            "comment": "Accounts can be applied to non-patients for tracking other non-patient related activities, such as group services (patients not tracked, and costs charged to another body), or might not be allocated.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Account.servicePeriod",
            "path": "Account.servicePeriod",
            "comment": "It is possible for transactions to be posted outside the service period, as long as the service was provided within the defined service period.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Account.coverage",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Coverage"
              }
            ],
            "path": "Account.coverage",
            "comment": "Typically. this may be some form of insurance, internal charges, or self-pay.\n\nLocal or jurisdictional business rules may determine which coverage covers which types of billable items charged to the account, and in which order.\nWhere the order is important, a local/jurisdictional extension may be defined to specify the order for the type of charge.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Account.coverage.coverage",
            "path": "Account.coverage.coverage",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Account.coverage.priority",
            "path": "Account.coverage.priority",
            "comment": "It is common in some jurisdictions for there to be multiple coverages allocated to an account, and a sequence is required to order the settling of the account (often with insurance claiming).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Account.owner",
            "path": "Account.owner",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Account.description",
            "path": "Account.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Account.guarantor",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Guarantor"
              }
            ],
            "path": "Account.guarantor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Account.guarantor.party",
            "path": "Account.guarantor.party",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Account.guarantor.onHold",
            "path": "Account.guarantor.onHold",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "Account.guarantor.period",
            "path": "Account.guarantor.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Account.partOf",
            "path": "Account.partOf",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Account"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ActivityDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Definitional Artifacts"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
      "version": "4.0.1",
      "name": "ActivityDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ActivityDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ActivityDefinition",
            "path": "ActivityDefinition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "adf-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.id",
            "path": "ActivityDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.meta",
            "path": "ActivityDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.implicitRules",
            "path": "ActivityDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.language",
            "path": "ActivityDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ActivityDefinition.text",
            "path": "ActivityDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.contained",
            "path": "ActivityDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.extension",
            "path": "ActivityDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.modifierExtension",
            "path": "ActivityDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.url",
            "path": "ActivityDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.identifier",
            "path": "ActivityDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this activity definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.version",
            "path": "ActivityDefinition.version",
            "comment": "There may be different activity definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the activity definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.name",
            "path": "ActivityDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.title",
            "path": "ActivityDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.subtitle",
            "path": "ActivityDefinition.subtitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.subtitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.status",
            "path": "ActivityDefinition.status",
            "comment": "Allows filtering of activity definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ActivityDefinition.experimental",
            "path": "ActivityDefinition.experimental",
            "comment": "Allows filtering of activity definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.subject[x]",
            "path": "ActivityDefinition.subject[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.subject[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for an activity (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "ActivityDefinition.date",
            "path": "ActivityDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the activity definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.publisher",
            "path": "ActivityDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the activity definition is the organization or individual primarily responsible for the maintenance and upkeep of the activity definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the activity definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.contact",
            "path": "ActivityDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.description",
            "path": "ActivityDefinition.description",
            "comment": "This description can be used to capture details such as why the activity definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the activity definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the activity definition is presumed to be the predominant language in the place the activity definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.useContext",
            "path": "ActivityDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.jurisdiction",
            "path": "ActivityDefinition.jurisdiction",
            "comment": "It may be possible for the activity definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ActivityDefinition.purpose",
            "path": "ActivityDefinition.purpose",
            "comment": "This element does not describe the usage of the activity definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this activity definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.usage",
            "path": "ActivityDefinition.usage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.usage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.copyright",
            "path": "ActivityDefinition.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.approvalDate",
            "path": "ActivityDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.lastReviewDate",
            "path": "ActivityDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.effectivePeriod",
            "path": "ActivityDefinition.effectivePeriod",
            "comment": "The effective period for a activity definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.topic",
            "path": "ActivityDefinition.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "ActivityDefinition.author",
            "path": "ActivityDefinition.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.editor",
            "path": "ActivityDefinition.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.reviewer",
            "path": "ActivityDefinition.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.endorser",
            "path": "ActivityDefinition.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.relatedArtifact",
            "path": "ActivityDefinition.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.library",
            "path": "ActivityDefinition.library",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.library",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Library"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.kind",
            "path": "ActivityDefinition.kind",
            "comment": "May determine what types of extensions are permitted.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.kind",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActivityDefinitionKind"
                }
              ],
              "strength": "required",
              "description": "The kind of activity the definition is describing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-resource-types|4.0.1"
            }
          },
          {
            "id": "ActivityDefinition.profile",
            "path": "ActivityDefinition.profile",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.profile",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.code",
            "path": "ActivityDefinition.code",
            "comment": "Tends to be less relevant for activities involving particular products.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActivityDefinitionType"
                }
              ],
              "strength": "example",
              "description": "Detailed type of the activity; e.g. CBC.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code"
            }
          },
          {
            "id": "ActivityDefinition.intent",
            "path": "ActivityDefinition.intent",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.intent",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestIntent"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the degree of authority/intentionality associated with a request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
            }
          },
          {
            "id": "ActivityDefinition.priority",
            "path": "ActivityDefinition.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "ActivityDefinition.doNotPerform",
            "path": "ActivityDefinition.doNotPerform",
            "comment": "This element is not intended to be used to communicate a decision support response to cancel an order in progress. That should be done with the \"remove\" type of a PlanDefinition or RequestGroup.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.doNotPerform",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If true this element negates the specified action. For Example,  instead of a request for a procedure, it is a request for the procedure to not occur.",
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.timing[x]",
            "path": "ActivityDefinition.timing[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.timing[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Timing"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Range"
              },
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.location",
            "path": "ActivityDefinition.location",
            "comment": "May reference a specific clinical location or may just identify a type of location.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.participant",
            "path": "ActivityDefinition.participant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.participant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.participant.id",
            "path": "ActivityDefinition.participant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.participant.extension",
            "path": "ActivityDefinition.participant.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.participant.modifierExtension",
            "path": "ActivityDefinition.participant.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.participant.type",
            "path": "ActivityDefinition.participant.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.participant.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActivityParticipantType"
                }
              ],
              "strength": "required",
              "description": "The type of participant in the activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1"
            }
          },
          {
            "id": "ActivityDefinition.participant.role",
            "path": "ActivityDefinition.participant.role",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.participant.role",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActivityParticipantRole"
                }
              ],
              "strength": "example",
              "description": "Defines roles played by participants for the action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-participant-role"
            }
          },
          {
            "id": "ActivityDefinition.product[x]",
            "path": "ActivityDefinition.product[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.product[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActivityProduct"
                }
              ],
              "strength": "example",
              "description": "Code describing the type of substance or medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "ActivityDefinition.quantity",
            "path": "ActivityDefinition.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.dosage",
            "path": "ActivityDefinition.dosage",
            "comment": "If a dosage instruction is used, the definition should not specify timing or quantity.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.dosage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Dosage"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.bodySite",
            "path": "ActivityDefinition.bodySite",
            "comment": "Only used if not implicit in the code found in ServiceRequest.type.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.bodySite",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the anatomical location.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "ActivityDefinition.specimenRequirement",
            "path": "ActivityDefinition.specimenRequirement",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.specimenRequirement",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SpecimenDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.observationRequirement",
            "path": "ActivityDefinition.observationRequirement",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.observationRequirement",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ObservationDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.observationResultRequirement",
            "path": "ActivityDefinition.observationResultRequirement",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.observationResultRequirement",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ObservationDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.transform",
            "path": "ActivityDefinition.transform",
            "comment": "Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.transform",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureMap"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.dynamicValue",
            "path": "ActivityDefinition.dynamicValue",
            "comment": "Dynamic values are applied in the order in which they are defined in the ActivityDefinition. Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ActivityDefinition.dynamicValue",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.dynamicValue.id",
            "path": "ActivityDefinition.dynamicValue.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.dynamicValue.extension",
            "path": "ActivityDefinition.dynamicValue.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.dynamicValue.modifierExtension",
            "path": "ActivityDefinition.dynamicValue.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.dynamicValue.path",
            "path": "ActivityDefinition.dynamicValue.path",
            "comment": "The path attribute contains a [Simple FHIRPath Subset](fhirpath.html#simple) that allows path traversal, but not calculation.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.dynamicValue.path",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ActivityDefinition.dynamicValue.expression",
            "path": "ActivityDefinition.dynamicValue.expression",
            "comment": "The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ActivityDefinition.dynamicValue.expression",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Expression"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ActivityDefinition",
            "path": "ActivityDefinition",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "adf-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "ActivityDefinition.url",
            "path": "ActivityDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.identifier",
            "path": "ActivityDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this activity definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.version",
            "path": "ActivityDefinition.version",
            "comment": "There may be different activity definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the activity definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.name",
            "path": "ActivityDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.title",
            "path": "ActivityDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.subtitle",
            "path": "ActivityDefinition.subtitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ActivityDefinition.status",
            "path": "ActivityDefinition.status",
            "comment": "Allows filtering of activity definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ActivityDefinition.experimental",
            "path": "ActivityDefinition.experimental",
            "comment": "Allows filtering of activity definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.subject[x]",
            "path": "ActivityDefinition.subject[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for an activity (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "ActivityDefinition.date",
            "path": "ActivityDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the activity definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.publisher",
            "path": "ActivityDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the activity definition is the organization or individual primarily responsible for the maintenance and upkeep of the activity definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the activity definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.contact",
            "path": "ActivityDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.description",
            "path": "ActivityDefinition.description",
            "comment": "This description can be used to capture details such as why the activity definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the activity definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the activity definition is presumed to be the predominant language in the place the activity definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.useContext",
            "path": "ActivityDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.jurisdiction",
            "path": "ActivityDefinition.jurisdiction",
            "comment": "It may be possible for the activity definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ActivityDefinition.purpose",
            "path": "ActivityDefinition.purpose",
            "comment": "This element does not describe the usage of the activity definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this activity definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ActivityDefinition.usage",
            "path": "ActivityDefinition.usage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ActivityDefinition.copyright",
            "path": "ActivityDefinition.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ActivityDefinition.approvalDate",
            "path": "ActivityDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ActivityDefinition.lastReviewDate",
            "path": "ActivityDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ActivityDefinition.effectivePeriod",
            "path": "ActivityDefinition.effectivePeriod",
            "comment": "The effective period for a activity definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.topic",
            "path": "ActivityDefinition.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "ActivityDefinition.author",
            "path": "ActivityDefinition.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ActivityDefinition.editor",
            "path": "ActivityDefinition.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ActivityDefinition.reviewer",
            "path": "ActivityDefinition.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ActivityDefinition.endorser",
            "path": "ActivityDefinition.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ActivityDefinition.relatedArtifact",
            "path": "ActivityDefinition.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "ActivityDefinition.library",
            "path": "ActivityDefinition.library",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Library"
                ]
              }
            ]
          },
          {
            "id": "ActivityDefinition.kind",
            "path": "ActivityDefinition.kind",
            "comment": "May determine what types of extensions are permitted.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActivityDefinitionKind"
                }
              ],
              "strength": "required",
              "description": "The kind of activity the definition is describing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-resource-types|4.0.1"
            }
          },
          {
            "id": "ActivityDefinition.profile",
            "path": "ActivityDefinition.profile",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ]
          },
          {
            "id": "ActivityDefinition.code",
            "path": "ActivityDefinition.code",
            "comment": "Tends to be less relevant for activities involving particular products.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActivityDefinitionType"
                }
              ],
              "strength": "example",
              "description": "Detailed type of the activity; e.g. CBC.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code"
            }
          },
          {
            "id": "ActivityDefinition.intent",
            "path": "ActivityDefinition.intent",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestIntent"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the degree of authority/intentionality associated with a request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
            }
          },
          {
            "id": "ActivityDefinition.priority",
            "path": "ActivityDefinition.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "ActivityDefinition.doNotPerform",
            "path": "ActivityDefinition.doNotPerform",
            "comment": "This element is not intended to be used to communicate a decision support response to cancel an order in progress. That should be done with the \"remove\" type of a PlanDefinition or RequestGroup.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If true this element negates the specified action. For Example,  instead of a request for a procedure, it is a request for the procedure to not occur.",
            "isSummary": true
          },
          {
            "id": "ActivityDefinition.timing[x]",
            "path": "ActivityDefinition.timing[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Timing"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Range"
              },
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "ActivityDefinition.location",
            "path": "ActivityDefinition.location",
            "comment": "May reference a specific clinical location or may just identify a type of location.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "ActivityDefinition.participant",
            "path": "ActivityDefinition.participant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ActivityDefinition.participant.type",
            "path": "ActivityDefinition.participant.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActivityParticipantType"
                }
              ],
              "strength": "required",
              "description": "The type of participant in the activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1"
            }
          },
          {
            "id": "ActivityDefinition.participant.role",
            "path": "ActivityDefinition.participant.role",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActivityParticipantRole"
                }
              ],
              "strength": "example",
              "description": "Defines roles played by participants for the action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-participant-role"
            }
          },
          {
            "id": "ActivityDefinition.product[x]",
            "path": "ActivityDefinition.product[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActivityProduct"
                }
              ],
              "strength": "example",
              "description": "Code describing the type of substance or medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "ActivityDefinition.quantity",
            "path": "ActivityDefinition.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "ActivityDefinition.dosage",
            "path": "ActivityDefinition.dosage",
            "comment": "If a dosage instruction is used, the definition should not specify timing or quantity.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Dosage"
              }
            ]
          },
          {
            "id": "ActivityDefinition.bodySite",
            "path": "ActivityDefinition.bodySite",
            "comment": "Only used if not implicit in the code found in ServiceRequest.type.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the anatomical location.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "ActivityDefinition.specimenRequirement",
            "path": "ActivityDefinition.specimenRequirement",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SpecimenDefinition"
                ]
              }
            ]
          },
          {
            "id": "ActivityDefinition.observationRequirement",
            "path": "ActivityDefinition.observationRequirement",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ObservationDefinition"
                ]
              }
            ]
          },
          {
            "id": "ActivityDefinition.observationResultRequirement",
            "path": "ActivityDefinition.observationResultRequirement",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ObservationDefinition"
                ]
              }
            ]
          },
          {
            "id": "ActivityDefinition.transform",
            "path": "ActivityDefinition.transform",
            "comment": "Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureMap"
                ]
              }
            ]
          },
          {
            "id": "ActivityDefinition.dynamicValue",
            "path": "ActivityDefinition.dynamicValue",
            "comment": "Dynamic values are applied in the order in which they are defined in the ActivityDefinition. Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ActivityDefinition.dynamicValue.path",
            "path": "ActivityDefinition.dynamicValue.path",
            "comment": "The path attribute contains a [Simple FHIRPath Subset](fhirpath.html#simple) that allows path traversal, but not calculation.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ActivityDefinition.dynamicValue.expression",
            "path": "ActivityDefinition.dynamicValue.expression",
            "comment": "The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Expression"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/AdverseEvent",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "AdverseEvent",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Summary"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/AdverseEvent",
      "version": "4.0.1",
      "name": "AdverseEvent",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "AdverseEvent",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "AdverseEvent",
            "path": "AdverseEvent",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AdverseEvent",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AdverseEvent.id",
            "path": "AdverseEvent.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.meta",
            "path": "AdverseEvent.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.implicitRules",
            "path": "AdverseEvent.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "AdverseEvent.language",
            "path": "AdverseEvent.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "AdverseEvent.text",
            "path": "AdverseEvent.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AdverseEvent.contained",
            "path": "AdverseEvent.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AdverseEvent.extension",
            "path": "AdverseEvent.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AdverseEvent.modifierExtension",
            "path": "AdverseEvent.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "AdverseEvent.identifier",
            "path": "AdverseEvent.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.actuality",
            "path": "AdverseEvent.actuality",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AdverseEvent.actuality",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it has a potential code that indicates the adverse event did not actually happen.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventActuality"
                }
              ],
              "strength": "required",
              "description": "Overall nature of the adverse event, e.g. real or potential.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-actuality|4.0.1"
            }
          },
          {
            "id": "AdverseEvent.category",
            "path": "AdverseEvent.category",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AdverseEvent.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventCategory"
                }
              ],
              "strength": "extensible",
              "description": "Overall categorization of the event, e.g. product-related or situational.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-category"
            }
          },
          {
            "id": "AdverseEvent.event",
            "path": "AdverseEvent.event",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.event",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventType"
                }
              ],
              "strength": "example",
              "description": "Detailed type of event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-type"
            }
          },
          {
            "id": "AdverseEvent.subject",
            "path": "AdverseEvent.subject",
            "comment": "If AdverseEvent.resultingCondition differs among members of the group, then use Patient as the subject.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AdverseEvent.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.encounter",
            "path": "AdverseEvent.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.  For example, if a medication administration was considered an adverse event because it resulted in a rash, then the encounter when the medication administration was given is the context.  If the patient reports the AdverseEvent during a second encounter, that second encounter is not the context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.date",
            "path": "AdverseEvent.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.detected",
            "path": "AdverseEvent.detected",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.detected",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.recordedDate",
            "path": "AdverseEvent.recordedDate",
            "comment": "The recordedDate represents the date when this particular AdverseEvent record was created in the system, not the date of the most recent update.  The date of the last record modification can be retrieved from the resource metadata.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.recordedDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.resultingCondition",
            "path": "AdverseEvent.resultingCondition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AdverseEvent.resultingCondition",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.location",
            "path": "AdverseEvent.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.seriousness",
            "path": "AdverseEvent.seriousness",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.seriousness",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventSeriousness"
                }
              ],
              "strength": "example",
              "description": "Overall seriousness of this event for the patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-seriousness"
            }
          },
          {
            "id": "AdverseEvent.severity",
            "path": "AdverseEvent.severity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.severity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventSeverity"
                }
              ],
              "strength": "required",
              "description": "The severity of the adverse event itself, in direct relation to the subject.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-severity|4.0.1"
            }
          },
          {
            "id": "AdverseEvent.outcome",
            "path": "AdverseEvent.outcome",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.outcome",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventOutcome"
                }
              ],
              "strength": "required",
              "description": "TODO (and should this be required?).",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-outcome|4.0.1"
            }
          },
          {
            "id": "AdverseEvent.recorder",
            "path": "AdverseEvent.recorder",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.recorder",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.contributor",
            "path": "AdverseEvent.contributor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AdverseEvent.contributor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity",
            "path": "AdverseEvent.suspectEntity",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AdverseEvent.suspectEntity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.id",
            "path": "AdverseEvent.suspectEntity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AdverseEvent.suspectEntity.extension",
            "path": "AdverseEvent.suspectEntity.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AdverseEvent.suspectEntity.modifierExtension",
            "path": "AdverseEvent.suspectEntity.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.instance",
            "path": "AdverseEvent.suspectEntity.instance",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AdverseEvent.suspectEntity.instance",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Immunization",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
                  "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.causality",
            "path": "AdverseEvent.suspectEntity.causality",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AdverseEvent.suspectEntity.causality",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.id",
            "path": "AdverseEvent.suspectEntity.causality.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.extension",
            "path": "AdverseEvent.suspectEntity.causality.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.modifierExtension",
            "path": "AdverseEvent.suspectEntity.causality.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.assessment",
            "path": "AdverseEvent.suspectEntity.causality.assessment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.suspectEntity.causality.assessment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventCausalityAssessment"
                }
              ],
              "strength": "example",
              "description": "Codes for the assessment of whether the entity caused the event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-causality-assess"
            }
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.productRelatedness",
            "path": "AdverseEvent.suspectEntity.causality.productRelatedness",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.suspectEntity.causality.productRelatedness",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.author",
            "path": "AdverseEvent.suspectEntity.causality.author",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.suspectEntity.causality.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.method",
            "path": "AdverseEvent.suspectEntity.causality.method",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AdverseEvent.suspectEntity.causality.method",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventCausalityMethod"
                }
              ],
              "strength": "example",
              "description": "TODO.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-causality-method"
            }
          },
          {
            "id": "AdverseEvent.subjectMedicalHistory",
            "path": "AdverseEvent.subjectMedicalHistory",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AdverseEvent.subjectMedicalHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
                  "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
                  "http://hl7.org/fhir/StructureDefinition/Immunization",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Media",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.referenceDocument",
            "path": "AdverseEvent.referenceDocument",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AdverseEvent.referenceDocument",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AdverseEvent.study",
            "path": "AdverseEvent.study",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AdverseEvent.study",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchStudy"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "AdverseEvent",
            "path": "AdverseEvent",
            "min": 0,
            "max": "*"
          },
          {
            "id": "AdverseEvent.identifier",
            "path": "AdverseEvent.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.actuality",
            "path": "AdverseEvent.actuality",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it has a potential code that indicates the adverse event did not actually happen.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventActuality"
                }
              ],
              "strength": "required",
              "description": "Overall nature of the adverse event, e.g. real or potential.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-actuality|4.0.1"
            }
          },
          {
            "id": "AdverseEvent.category",
            "path": "AdverseEvent.category",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventCategory"
                }
              ],
              "strength": "extensible",
              "description": "Overall categorization of the event, e.g. product-related or situational.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-category"
            }
          },
          {
            "id": "AdverseEvent.event",
            "path": "AdverseEvent.event",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventType"
                }
              ],
              "strength": "example",
              "description": "Detailed type of event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-type"
            }
          },
          {
            "id": "AdverseEvent.subject",
            "path": "AdverseEvent.subject",
            "comment": "If AdverseEvent.resultingCondition differs among members of the group, then use Patient as the subject.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.encounter",
            "path": "AdverseEvent.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.  For example, if a medication administration was considered an adverse event because it resulted in a rash, then the encounter when the medication administration was given is the context.  If the patient reports the AdverseEvent during a second encounter, that second encounter is not the context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.date",
            "path": "AdverseEvent.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.detected",
            "path": "AdverseEvent.detected",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.recordedDate",
            "path": "AdverseEvent.recordedDate",
            "comment": "The recordedDate represents the date when this particular AdverseEvent record was created in the system, not the date of the most recent update.  The date of the last record modification can be retrieved from the resource metadata.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.resultingCondition",
            "path": "AdverseEvent.resultingCondition",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.location",
            "path": "AdverseEvent.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.seriousness",
            "path": "AdverseEvent.seriousness",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventSeriousness"
                }
              ],
              "strength": "example",
              "description": "Overall seriousness of this event for the patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-seriousness"
            }
          },
          {
            "id": "AdverseEvent.severity",
            "path": "AdverseEvent.severity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventSeverity"
                }
              ],
              "strength": "required",
              "description": "The severity of the adverse event itself, in direct relation to the subject.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-severity|4.0.1"
            }
          },
          {
            "id": "AdverseEvent.outcome",
            "path": "AdverseEvent.outcome",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventOutcome"
                }
              ],
              "strength": "required",
              "description": "TODO (and should this be required?).",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-outcome|4.0.1"
            }
          },
          {
            "id": "AdverseEvent.recorder",
            "path": "AdverseEvent.recorder",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.contributor",
            "path": "AdverseEvent.contributor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity",
            "path": "AdverseEvent.suspectEntity",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.instance",
            "path": "AdverseEvent.suspectEntity.instance",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Immunization",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
                  "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.causality",
            "path": "AdverseEvent.suspectEntity.causality",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.assessment",
            "path": "AdverseEvent.suspectEntity.causality.assessment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventCausalityAssessment"
                }
              ],
              "strength": "example",
              "description": "Codes for the assessment of whether the entity caused the event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-causality-assess"
            }
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.productRelatedness",
            "path": "AdverseEvent.suspectEntity.causality.productRelatedness",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.author",
            "path": "AdverseEvent.suspectEntity.causality.author",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.suspectEntity.causality.method",
            "path": "AdverseEvent.suspectEntity.causality.method",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdverseEventCausalityMethod"
                }
              ],
              "strength": "example",
              "description": "TODO.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adverse-event-causality-method"
            }
          },
          {
            "id": "AdverseEvent.subjectMedicalHistory",
            "path": "AdverseEvent.subjectMedicalHistory",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
                  "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
                  "http://hl7.org/fhir/StructureDefinition/Immunization",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Media",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.referenceDocument",
            "path": "AdverseEvent.referenceDocument",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AdverseEvent.study",
            "path": "AdverseEvent.study",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchStudy"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "AllergyIntolerance",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Summary"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
      "version": "4.0.1",
      "name": "AllergyIntolerance",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "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": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "AllergyIntolerance",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "AllergyIntolerance",
            "path": "AllergyIntolerance",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AllergyIntolerance",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "ait-1",
                "severity": "error",
                "human": "AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error.",
                "expression": "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').exists() or clinicalStatus.exists()",
                "xpath": "f:verificationStatus/f:coding/f:code/@value='entered-in-error' or exists(f:clinicalStatus)"
              },
              {
                "key": "ait-2",
                "severity": "error",
                "human": "AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error",
                "expression": "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').empty() or clinicalStatus.empty()",
                "xpath": "not(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(f:clinicalStatus))"
              },
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.id",
            "path": "AllergyIntolerance.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AllergyIntolerance.meta",
            "path": "AllergyIntolerance.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AllergyIntolerance.implicitRules",
            "path": "AllergyIntolerance.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "AllergyIntolerance.language",
            "path": "AllergyIntolerance.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "AllergyIntolerance.text",
            "path": "AllergyIntolerance.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.contained",
            "path": "AllergyIntolerance.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.extension",
            "path": "AllergyIntolerance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.modifierExtension",
            "path": "AllergyIntolerance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.identifier",
            "path": "AllergyIntolerance.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AllergyIntolerance.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AllergyIntolerance.clinicalStatus",
            "path": "AllergyIntolerance.clinicalStatus",
            "comment": "Refer to [discussion](extensibility.html#Special-Case) if clincalStatus is missing data.\nThe data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.clinicalStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "ait-1",
              "ait-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the status contains the codes inactive and resolved that mark the AllergyIntolerance as no longer active.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceClinicalStatus"
                }
              ],
              "strength": "required",
              "description": "The clinical status of the allergy or intolerance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.verificationStatus",
            "path": "AllergyIntolerance.verificationStatus",
            "comment": "The data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.verificationStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "ait-1",
              "ait-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the status contains the codes refuted and entered-in-error that mark the AllergyIntolerance as not currently valid.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceVerificationStatus"
                }
              ],
              "strength": "required",
              "description": "Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified substance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-verification|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.type",
            "path": "AllergyIntolerance.type",
            "comment": "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 might 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 might 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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceType"
                }
              ],
              "strength": "required",
              "description": "Identification of the underlying physiological mechanism for a Reaction Risk.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-type|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.category",
            "path": "AllergyIntolerance.category",
            "comment": "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.  When searching on category, consider the implications of AllergyIntolerance resources without a category.  For example, when searching on category = medication, medication allergies that don't have a category valued will not be returned.  Refer to [search](search.html) for more information on how to search category with a :missing modifier to get allergies that don't have a category.  Additionally, category should be used with caution because category can be subjective based on the sender.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AllergyIntolerance.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceCategory"
                }
              ],
              "strength": "required",
              "description": "Category of an identified substance associated with allergies or intolerances.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-category|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.criticality",
            "path": "AllergyIntolerance.criticality",
            "comment": "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).  Systems that capture a severity at the condition level are actually representing the concept of criticality whereas the severity documented at the reaction level is representing the true reaction severity.  Existing systems that are capturing both condition criticality and reaction severity may use the term \"severity\" to represent both.  Criticality is the worst it could be in the future (i.e. situation-agnostic) whereas severity is situation-dependent.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.criticality",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceCriticality"
                }
              ],
              "strength": "required",
              "description": "Estimate of the potential clinical harm, or seriousness, of a reaction to an identified substance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.code",
            "path": "AllergyIntolerance.code",
            "comment": "It is strongly recommended that this element be populated using a terminology, where possible. For example, some terminologies used include RxNorm, SNOMED CT, DM+D, NDFRT, ICD-9, IDC-10, UNII, and ATC. Plain text should only be used if there is no appropriate terminology available. Additional details can be specified in the text.\r\rWhen a substance or product code is specified for the 'code' element, the \"default\" semantic context is that this is a positive statement of an allergy or intolerance (depending on the value of the 'type' element, if present) condition to the specified substance/product.  In the corresponding SNOMED CT allergy model, the specified substance/product is the target (destination) of the \"Causative agent\" relationship.\r\rThe 'substanceExposureRisk' extension is available as a structured and more flexible alternative to the 'code' element for making positive or negative allergy or intolerance statements.  This extension provides the capability to make \"no known allergy\" (or \"no risk of adverse reaction\") statements regarding any coded substance/product (including cases when a pre-coordinated \"no allergy to x\" concept for that substance/product does not exist).  If the 'substanceExposureRisk' extension is present, the AllergyIntolerance.code element SHALL be omitted.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceCode"
                }
              ],
              "strength": "example",
              "description": "Type of the substance/product, allergy or intolerance condition, or negation/exclusion codes for reporting no known allergies.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-code"
            }
          },
          {
            "id": "AllergyIntolerance.patient",
            "path": "AllergyIntolerance.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AllergyIntolerance.encounter",
            "path": "AllergyIntolerance.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.onset[x]",
            "path": "AllergyIntolerance.onset[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.onset[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Range"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.recordedDate",
            "path": "AllergyIntolerance.recordedDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.recordedDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.recorder",
            "path": "AllergyIntolerance.recorder",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.recorder",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.asserter",
            "path": "AllergyIntolerance.asserter",
            "comment": "The recorder takes responsibility for the content, but can reference the source from where they got it.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.asserter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AllergyIntolerance.lastOccurrence",
            "path": "AllergyIntolerance.lastOccurrence",
            "comment": "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",
            "base": {
              "path": "AllergyIntolerance.lastOccurrence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.note",
            "path": "AllergyIntolerance.note",
            "comment": "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": "*",
            "base": {
              "path": "AllergyIntolerance.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.reaction",
            "path": "AllergyIntolerance.reaction",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AllergyIntolerance.reaction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.reaction.id",
            "path": "AllergyIntolerance.reaction.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.reaction.extension",
            "path": "AllergyIntolerance.reaction.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.reaction.modifierExtension",
            "path": "AllergyIntolerance.reaction.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "AllergyIntolerance.reaction.substance",
            "path": "AllergyIntolerance.reaction.substance",
            "comment": "Coding of the specific substance (or pharmaceutical product) with a terminology capable of triggering decision support should be used wherever possible.  The 'code' element allows for the use of a specific substance or pharmaceutical product, or a group or class of substances. In the case of an allergy or intolerance to a class of substances, (for example, \"penicillins\"), the 'reaction.substance' element could be used to code the specific substance that was identified as having caused the reaction (for example, \"amoxycillin\"). Duplication of the value in the 'code' and 'reaction.substance' elements is acceptable when a specific substance has been recorded in 'code'.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.reaction.substance",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubstanceCode"
                }
              ],
              "strength": "example",
              "description": "Codes defining the type of the substance (including pharmaceutical products).",
              "valueSet": "http://hl7.org/fhir/ValueSet/substance-code"
            }
          },
          {
            "id": "AllergyIntolerance.reaction.manifestation",
            "path": "AllergyIntolerance.reaction.manifestation",
            "comment": "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.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "AllergyIntolerance.reaction.manifestation",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Manifestation"
                }
              ],
              "strength": "example",
              "description": "Clinical symptoms and/or signs that are observed or associated with an Adverse Reaction Event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "AllergyIntolerance.reaction.description",
            "path": "AllergyIntolerance.reaction.description",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.reaction.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.reaction.onset",
            "path": "AllergyIntolerance.reaction.onset",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.reaction.onset",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AllergyIntolerance.reaction.severity",
            "path": "AllergyIntolerance.reaction.severity",
            "comment": "It is acknowledged that this assessment is very subjective. There may be some specific practice domains where objective scales have been applied. Objective scales can be included in this model as extensions.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.reaction.severity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceSeverity"
                }
              ],
              "strength": "required",
              "description": "Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/reaction-event-severity|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.reaction.exposureRoute",
            "path": "AllergyIntolerance.reaction.exposureRoute",
            "comment": "Coding of the route of exposure with a terminology should be used wherever possible.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AllergyIntolerance.reaction.exposureRoute",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RouteOfAdministration"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/route-codes"
            }
          },
          {
            "id": "AllergyIntolerance.reaction.note",
            "path": "AllergyIntolerance.reaction.note",
            "comment": "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": "*",
            "base": {
              "path": "AllergyIntolerance.reaction.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "AllergyIntolerance",
            "path": "AllergyIntolerance",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "ait-1",
                "severity": "error",
                "human": "AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error.",
                "expression": "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').exists() or clinicalStatus.exists()",
                "xpath": "f:verificationStatus/f:coding/f:code/@value='entered-in-error' or exists(f:clinicalStatus)"
              },
              {
                "key": "ait-2",
                "severity": "error",
                "human": "AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error",
                "expression": "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').empty() or clinicalStatus.empty()",
                "xpath": "not(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(f:clinicalStatus))"
              }
            ]
          },
          {
            "id": "AllergyIntolerance.identifier",
            "path": "AllergyIntolerance.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AllergyIntolerance.clinicalStatus",
            "path": "AllergyIntolerance.clinicalStatus",
            "comment": "Refer to [discussion](extensibility.html#Special-Case) if clincalStatus is missing data.\nThe data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "ait-1",
              "ait-2"
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the status contains the codes inactive and resolved that mark the AllergyIntolerance as no longer active.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceClinicalStatus"
                }
              ],
              "strength": "required",
              "description": "The clinical status of the allergy or intolerance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.verificationStatus",
            "path": "AllergyIntolerance.verificationStatus",
            "comment": "The data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "ait-1",
              "ait-2"
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the status contains the codes refuted and entered-in-error that mark the AllergyIntolerance as not currently valid.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceVerificationStatus"
                }
              ],
              "strength": "required",
              "description": "Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified substance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-verification|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.type",
            "path": "AllergyIntolerance.type",
            "comment": "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 might 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 might 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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceType"
                }
              ],
              "strength": "required",
              "description": "Identification of the underlying physiological mechanism for a Reaction Risk.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-type|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.category",
            "path": "AllergyIntolerance.category",
            "comment": "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.  When searching on category, consider the implications of AllergyIntolerance resources without a category.  For example, when searching on category = medication, medication allergies that don't have a category valued will not be returned.  Refer to [search](search.html) for more information on how to search category with a :missing modifier to get allergies that don't have a category.  Additionally, category should be used with caution because category can be subjective based on the sender.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceCategory"
                }
              ],
              "strength": "required",
              "description": "Category of an identified substance associated with allergies or intolerances.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-category|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.criticality",
            "path": "AllergyIntolerance.criticality",
            "comment": "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).  Systems that capture a severity at the condition level are actually representing the concept of criticality whereas the severity documented at the reaction level is representing the true reaction severity.  Existing systems that are capturing both condition criticality and reaction severity may use the term \"severity\" to represent both.  Criticality is the worst it could be in the future (i.e. situation-agnostic) whereas severity is situation-dependent.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceCriticality"
                }
              ],
              "strength": "required",
              "description": "Estimate of the potential clinical harm, or seriousness, of a reaction to an identified substance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.code",
            "path": "AllergyIntolerance.code",
            "comment": "It is strongly recommended that this element be populated using a terminology, where possible. For example, some terminologies used include RxNorm, SNOMED CT, DM+D, NDFRT, ICD-9, IDC-10, UNII, and ATC. Plain text should only be used if there is no appropriate terminology available. Additional details can be specified in the text.\r\rWhen a substance or product code is specified for the 'code' element, the \"default\" semantic context is that this is a positive statement of an allergy or intolerance (depending on the value of the 'type' element, if present) condition to the specified substance/product.  In the corresponding SNOMED CT allergy model, the specified substance/product is the target (destination) of the \"Causative agent\" relationship.\r\rThe 'substanceExposureRisk' extension is available as a structured and more flexible alternative to the 'code' element for making positive or negative allergy or intolerance statements.  This extension provides the capability to make \"no known allergy\" (or \"no risk of adverse reaction\") statements regarding any coded substance/product (including cases when a pre-coordinated \"no allergy to x\" concept for that substance/product does not exist).  If the 'substanceExposureRisk' extension is present, the AllergyIntolerance.code element SHALL be omitted.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceCode"
                }
              ],
              "strength": "example",
              "description": "Type of the substance/product, allergy or intolerance condition, or negation/exclusion codes for reporting no known allergies.",
              "valueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-code"
            }
          },
          {
            "id": "AllergyIntolerance.patient",
            "path": "AllergyIntolerance.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AllergyIntolerance.encounter",
            "path": "AllergyIntolerance.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          },
          {
            "id": "AllergyIntolerance.onset[x]",
            "path": "AllergyIntolerance.onset[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Range"
              },
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "AllergyIntolerance.recordedDate",
            "path": "AllergyIntolerance.recordedDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "AllergyIntolerance.recorder",
            "path": "AllergyIntolerance.recorder",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ]
          },
          {
            "id": "AllergyIntolerance.asserter",
            "path": "AllergyIntolerance.asserter",
            "comment": "The recorder takes responsibility for the content, but can reference the source from where they got it.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AllergyIntolerance.lastOccurrence",
            "path": "AllergyIntolerance.lastOccurrence",
            "comment": "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"
              }
            ]
          },
          {
            "id": "AllergyIntolerance.note",
            "path": "AllergyIntolerance.note",
            "comment": "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": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "AllergyIntolerance.reaction",
            "path": "AllergyIntolerance.reaction",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "AllergyIntolerance.reaction.substance",
            "path": "AllergyIntolerance.reaction.substance",
            "comment": "Coding of the specific substance (or pharmaceutical product) with a terminology capable of triggering decision support should be used wherever possible.  The 'code' element allows for the use of a specific substance or pharmaceutical product, or a group or class of substances. In the case of an allergy or intolerance to a class of substances, (for example, \"penicillins\"), the 'reaction.substance' element could be used to code the specific substance that was identified as having caused the reaction (for example, \"amoxycillin\"). Duplication of the value in the 'code' and 'reaction.substance' elements is acceptable when a specific substance has been recorded in 'code'.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubstanceCode"
                }
              ],
              "strength": "example",
              "description": "Codes defining the type of the substance (including pharmaceutical products).",
              "valueSet": "http://hl7.org/fhir/ValueSet/substance-code"
            }
          },
          {
            "id": "AllergyIntolerance.reaction.manifestation",
            "path": "AllergyIntolerance.reaction.manifestation",
            "comment": "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.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Manifestation"
                }
              ],
              "strength": "example",
              "description": "Clinical symptoms and/or signs that are observed or associated with an Adverse Reaction Event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "AllergyIntolerance.reaction.description",
            "path": "AllergyIntolerance.reaction.description",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "AllergyIntolerance.reaction.onset",
            "path": "AllergyIntolerance.reaction.onset",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "AllergyIntolerance.reaction.severity",
            "path": "AllergyIntolerance.reaction.severity",
            "comment": "It is acknowledged that this assessment is very subjective. There may be 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"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AllergyIntoleranceSeverity"
                }
              ],
              "strength": "required",
              "description": "Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/reaction-event-severity|4.0.1"
            }
          },
          {
            "id": "AllergyIntolerance.reaction.exposureRoute",
            "path": "AllergyIntolerance.reaction.exposureRoute",
            "comment": "Coding of the route of exposure with a terminology should be used wherever possible.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RouteOfAdministration"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/route-codes"
            }
          },
          {
            "id": "AllergyIntolerance.reaction.note",
            "path": "AllergyIntolerance.reaction.note",
            "comment": "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": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Appointment",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Appointment",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Workflow"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Appointment",
      "version": "4.0.1",
      "name": "Appointment",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Appointment",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Appointment",
            "path": "Appointment",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "app-2",
                "severity": "error",
                "human": "Either start and end are specified, or neither",
                "expression": "start.exists() = end.exists()",
                "xpath": "((exists(f:start) and exists(f:end)) or (not(exists(f:start)) and not(exists(f:end))))"
              },
              {
                "key": "app-3",
                "severity": "error",
                "human": "Only proposed or cancelled appointments can be missing start/end dates",
                "expression": "(start.exists() and end.exists()) or (status in ('proposed' | 'cancelled' | 'waitlist'))",
                "xpath": "((exists(f:start) and exists(f:end)) or (f:status/@value='proposed') or (f:status/@value='cancelled') or (f:status/@value='waitlist'))"
              },
              {
                "key": "app-4",
                "severity": "error",
                "human": "Cancelation reason is only used for appointments that have been cancelled, or no-show",
                "expression": "Appointment.cancelationReason.exists() implies (Appointment.status='no-show' or Appointment.status='cancelled')",
                "xpath": "not(exists(f:cancellationReason)) or f:status/@value=('no-show', 'cancelled')"
              },
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.id",
            "path": "Appointment.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Appointment.meta",
            "path": "Appointment.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Appointment.implicitRules",
            "path": "Appointment.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Appointment.language",
            "path": "Appointment.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Appointment.text",
            "path": "Appointment.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.contained",
            "path": "Appointment.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.extension",
            "path": "Appointment.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.modifierExtension",
            "path": "Appointment.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Appointment.identifier",
            "path": "Appointment.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Appointment.status",
            "path": "Appointment.status",
            "comment": "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.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that mark the Appointment as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Appointment.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AppointmentStatus"
                }
              ],
              "strength": "required",
              "description": "The free/busy status of an appointment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/appointmentstatus|4.0.1"
            }
          },
          {
            "id": "Appointment.cancelationReason",
            "path": "Appointment.cancelationReason",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.cancelationReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "cancelation-reason"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/appointment-cancellation-reason"
            }
          },
          {
            "id": "Appointment.serviceCategory",
            "path": "Appointment.serviceCategory",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.serviceCategory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-category"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-category"
            }
          },
          {
            "id": "Appointment.serviceType",
            "path": "Appointment.serviceType",
            "comment": "For a provider to provider appointment the code \"FOLLOWUP\" may be appropriate, as this is expected to be discussing some patient that was seen in the past.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.serviceType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-type"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
            }
          },
          {
            "id": "Appointment.specialty",
            "path": "Appointment.specialty",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.specialty",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "specialty"
                }
              ],
              "strength": "preferred",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "Appointment.appointmentType",
            "path": "Appointment.appointmentType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.appointmentType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "appointment-type"
                }
              ],
              "strength": "preferred",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0276"
            }
          },
          {
            "id": "Appointment.reasonCode",
            "path": "Appointment.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ApptReason"
                }
              ],
              "strength": "preferred",
              "description": "The Reason for the appointment to take place.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-reason"
            }
          },
          {
            "id": "Appointment.reasonReference",
            "path": "Appointment.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.priority",
            "path": "Appointment.priority",
            "comment": "Seeking implementer feedback on this property and how interoperable it is.\r\rUsing an extension to record a CodeableConcept for named values may be tested at a future connectathon.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.description",
            "path": "Appointment.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.supportingInformation",
            "path": "Appointment.supportingInformation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.supportingInformation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.start",
            "path": "Appointment.start",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.start",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Appointment.end",
            "path": "Appointment.end",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.end",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Appointment.minutesDuration",
            "path": "Appointment.minutesDuration",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.minutesDuration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.slot",
            "path": "Appointment.slot",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.slot",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Slot"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.created",
            "path": "Appointment.created",
            "comment": "This property is required for many use cases where the age of an appointment is considered in processing workflows for scheduling and billing of appointments.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.created",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.comment",
            "path": "Appointment.comment",
            "comment": "Additional text to aid in facilitating the appointment. For instance, a comment might be, \"patient should proceed immediately to infusion room upon arrival\"\r\rWhere 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",
            "base": {
              "path": "Appointment.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.patientInstruction",
            "path": "Appointment.patientInstruction",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.patientInstruction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.basedOn",
            "path": "Appointment.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.participant",
            "path": "Appointment.participant",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Appointment.participant",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "app-1",
                "severity": "error",
                "human": "Either the type or actor on the participant SHALL be specified",
                "expression": "type.exists() or actor.exists()",
                "xpath": "(exists(f:type) or exists(f:actor))"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.participant.id",
            "path": "Appointment.participant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.participant.extension",
            "path": "Appointment.participant.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.participant.modifierExtension",
            "path": "Appointment.participant.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Appointment.participant.type",
            "path": "Appointment.participant.type",
            "comment": "The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.\r\rIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\r\rThis value SHALL be the same when creating an AppointmentResponse so that they can be matched, and subsequently update the Appointment.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.participant.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipantType"
                }
              ],
              "strength": "extensible",
              "description": "Role of participant in encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
            }
          },
          {
            "id": "Appointment.participant.actor",
            "path": "Appointment.participant.actor",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.participant.actor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Appointment.participant.required",
            "path": "Appointment.participant.required",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.participant.required",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipantRequired"
                }
              ],
              "strength": "required",
              "description": "Is the Participant required to attend the appointment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participantrequired|4.0.1"
            }
          },
          {
            "id": "Appointment.participant.status",
            "path": "Appointment.participant.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Appointment.participant.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipationStatus"
                }
              ],
              "strength": "required",
              "description": "The Participation status of an appointment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participationstatus|4.0.1"
            }
          },
          {
            "id": "Appointment.participant.period",
            "path": "Appointment.participant.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Appointment.participant.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Appointment.requestedPeriod",
            "path": "Appointment.requestedPeriod",
            "comment": "This does not introduce a capacity for recurring appointments.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Appointment.requestedPeriod",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Appointment",
            "path": "Appointment",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "app-4",
                "severity": "error",
                "human": "Cancelation reason is only used for appointments that have been cancelled, or no-show",
                "expression": "Appointment.cancelationReason.exists() implies (Appointment.status='no-show' or Appointment.status='cancelled')",
                "xpath": "not(exists(f:cancellationReason)) or f:status/@value=('no-show', 'cancelled')"
              },
              {
                "key": "app-3",
                "severity": "error",
                "human": "Only proposed or cancelled appointments can be missing start/end dates",
                "expression": "(start.exists() and end.exists()) or (status in ('proposed' | 'cancelled' | 'waitlist'))",
                "xpath": "((exists(f:start) and exists(f:end)) or (f:status/@value='proposed') or (f:status/@value='cancelled') or (f:status/@value='waitlist'))"
              },
              {
                "key": "app-2",
                "severity": "error",
                "human": "Either start and end are specified, or neither",
                "expression": "start.exists() = end.exists()",
                "xpath": "((exists(f:start) and exists(f:end)) or (not(exists(f:start)) and not(exists(f:end))))"
              }
            ]
          },
          {
            "id": "Appointment.identifier",
            "path": "Appointment.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Appointment.status",
            "path": "Appointment.status",
            "comment": "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.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that mark the Appointment as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AppointmentStatus"
                }
              ],
              "strength": "required",
              "description": "The free/busy status of an appointment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/appointmentstatus|4.0.1"
            }
          },
          {
            "id": "Appointment.cancelationReason",
            "path": "Appointment.cancelationReason",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "cancelation-reason"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/appointment-cancellation-reason"
            }
          },
          {
            "id": "Appointment.serviceCategory",
            "path": "Appointment.serviceCategory",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-category"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-category"
            }
          },
          {
            "id": "Appointment.serviceType",
            "path": "Appointment.serviceType",
            "comment": "For a provider to provider appointment the code \"FOLLOWUP\" may be appropriate, as this is expected to be discussing some patient that was seen in the past.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-type"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
            }
          },
          {
            "id": "Appointment.specialty",
            "path": "Appointment.specialty",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "specialty"
                }
              ],
              "strength": "preferred",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "Appointment.appointmentType",
            "path": "Appointment.appointmentType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "appointment-type"
                }
              ],
              "strength": "preferred",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0276"
            }
          },
          {
            "id": "Appointment.reasonCode",
            "path": "Appointment.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ApptReason"
                }
              ],
              "strength": "preferred",
              "description": "The Reason for the appointment to take place.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-reason"
            }
          },
          {
            "id": "Appointment.reasonReference",
            "path": "Appointment.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"
                ]
              }
            ]
          },
          {
            "id": "Appointment.priority",
            "path": "Appointment.priority",
            "comment": "Seeking implementer feedback on this property and how interoperable it is.\r\rUsing an extension to record a CodeableConcept for named values may be tested at a future connectathon.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ]
          },
          {
            "id": "Appointment.description",
            "path": "Appointment.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Appointment.supportingInformation",
            "path": "Appointment.supportingInformation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Appointment.start",
            "path": "Appointment.start",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Appointment.end",
            "path": "Appointment.end",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Appointment.minutesDuration",
            "path": "Appointment.minutesDuration",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Appointment.slot",
            "path": "Appointment.slot",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Slot"
                ]
              }
            ]
          },
          {
            "id": "Appointment.created",
            "path": "Appointment.created",
            "comment": "This property is required for many use cases where the age of an appointment is considered in processing workflows for scheduling and billing of appointments.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Appointment.comment",
            "path": "Appointment.comment",
            "comment": "Additional text to aid in facilitating the appointment. For instance, a comment might be, \"patient should proceed immediately to infusion room upon arrival\"\r\rWhere 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"
              }
            ]
          },
          {
            "id": "Appointment.patientInstruction",
            "path": "Appointment.patientInstruction",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Appointment.basedOn",
            "path": "Appointment.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ]
          },
          {
            "id": "Appointment.participant",
            "path": "Appointment.participant",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "app-1",
                "severity": "error",
                "human": "Either the type or actor on the participant SHALL be specified",
                "expression": "type.exists() or actor.exists()",
                "xpath": "(exists(f:type) or exists(f:actor))"
              }
            ]
          },
          {
            "id": "Appointment.participant.type",
            "path": "Appointment.participant.type",
            "comment": "The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.\r\rIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\r\rThis value SHALL 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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipantType"
                }
              ],
              "strength": "extensible",
              "description": "Role of participant in encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
            }
          },
          {
            "id": "Appointment.participant.actor",
            "path": "Appointment.participant.actor",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Appointment.participant.required",
            "path": "Appointment.participant.required",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipantRequired"
                }
              ],
              "strength": "required",
              "description": "Is the Participant required to attend the appointment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participantrequired|4.0.1"
            }
          },
          {
            "id": "Appointment.participant.status",
            "path": "Appointment.participant.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipationStatus"
                }
              ],
              "strength": "required",
              "description": "The Participation status of an appointment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participationstatus|4.0.1"
            }
          },
          {
            "id": "Appointment.participant.period",
            "path": "Appointment.participant.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Appointment.requestedPeriod",
            "path": "Appointment.requestedPeriod",
            "comment": "This does not introduce a capacity for recurring appointments.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Period"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/AppointmentResponse",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "AppointmentResponse",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Workflow"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/AppointmentResponse",
      "version": "4.0.1",
      "name": "AppointmentResponse",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "AppointmentResponse",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "AppointmentResponse",
            "path": "AppointmentResponse",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AppointmentResponse",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "apr-1",
                "severity": "error",
                "human": "Either the participantType or actor must be specified",
                "expression": "participantType.exists() or actor.exists()",
                "xpath": "(exists(f:participantType) or exists(f:actor))"
              },
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AppointmentResponse.id",
            "path": "AppointmentResponse.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AppointmentResponse.meta",
            "path": "AppointmentResponse.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AppointmentResponse.implicitRules",
            "path": "AppointmentResponse.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "AppointmentResponse.language",
            "path": "AppointmentResponse.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "AppointmentResponse.text",
            "path": "AppointmentResponse.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AppointmentResponse.contained",
            "path": "AppointmentResponse.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AppointmentResponse.extension",
            "path": "AppointmentResponse.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AppointmentResponse.modifierExtension",
            "path": "AppointmentResponse.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "AppointmentResponse.identifier",
            "path": "AppointmentResponse.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AppointmentResponse.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AppointmentResponse.appointment",
            "path": "AppointmentResponse.appointment",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AppointmentResponse.appointment",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Appointment"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AppointmentResponse.start",
            "path": "AppointmentResponse.start",
            "comment": "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",
            "base": {
              "path": "AppointmentResponse.start",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AppointmentResponse.end",
            "path": "AppointmentResponse.end",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AppointmentResponse.end",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AppointmentResponse.participantType",
            "path": "AppointmentResponse.participantType",
            "comment": "The role of the participant can be used to declare what the actor will be doing in the scope of the referenced appointment.\r\rIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\r\rThis value SHALL be the same as specified on the referenced Appointment so that they can be matched, and subsequently updated.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AppointmentResponse.participantType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipantType"
                }
              ],
              "strength": "extensible",
              "description": "Role of participant in encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
            }
          },
          {
            "id": "AppointmentResponse.actor",
            "path": "AppointmentResponse.actor",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AppointmentResponse.actor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AppointmentResponse.participantStatus",
            "path": "AppointmentResponse.participantStatus",
            "comment": "This element is labeled as a modifier because the status contains the code entered-in-error that marks the participant as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AppointmentResponse.participantStatus",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Not known why this is labelled a modifier",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipantStatus"
                }
              ],
              "strength": "required",
              "description": "The Participation status of an appointment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participationstatus|4.0.1"
            }
          },
          {
            "id": "AppointmentResponse.comment",
            "path": "AppointmentResponse.comment",
            "comment": "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",
            "base": {
              "path": "AppointmentResponse.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "AppointmentResponse",
            "path": "AppointmentResponse",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "apr-1",
                "severity": "error",
                "human": "Either the participantType or actor must be specified",
                "expression": "participantType.exists() or actor.exists()",
                "xpath": "(exists(f:participantType) or exists(f:actor))"
              }
            ]
          },
          {
            "id": "AppointmentResponse.identifier",
            "path": "AppointmentResponse.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AppointmentResponse.appointment",
            "path": "AppointmentResponse.appointment",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Appointment"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AppointmentResponse.start",
            "path": "AppointmentResponse.start",
            "comment": "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"
              }
            ]
          },
          {
            "id": "AppointmentResponse.end",
            "path": "AppointmentResponse.end",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ]
          },
          {
            "id": "AppointmentResponse.participantType",
            "path": "AppointmentResponse.participantType",
            "comment": "The role of the participant can be used to declare what the actor will be doing in the scope of the referenced appointment.\r\rIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\r\rThis value SHALL 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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipantType"
                }
              ],
              "strength": "extensible",
              "description": "Role of participant in encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
            }
          },
          {
            "id": "AppointmentResponse.actor",
            "path": "AppointmentResponse.actor",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AppointmentResponse.participantStatus",
            "path": "AppointmentResponse.participantStatus",
            "comment": "This element is labeled as a modifier because the status contains the code entered-in-error that marks the participant as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Not known why this is labelled a modifier",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipantStatus"
                }
              ],
              "strength": "required",
              "description": "The Participation status of an appointment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participationstatus|4.0.1"
            }
          },
          {
            "id": "AppointmentResponse.comment",
            "path": "AppointmentResponse.comment",
            "comment": "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"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/AuditEvent",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "AuditEvent",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Security"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "sec"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/AuditEvent",
      "version": "4.0.1",
      "name": "AuditEvent",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "AuditEvent",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "AuditEvent",
            "path": "AuditEvent",
            "comment": "Based on IHE-ATNA.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AuditEvent",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.id",
            "path": "AuditEvent.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AuditEvent.meta",
            "path": "AuditEvent.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AuditEvent.implicitRules",
            "path": "AuditEvent.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "AuditEvent.language",
            "path": "AuditEvent.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "AuditEvent.text",
            "path": "AuditEvent.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.contained",
            "path": "AuditEvent.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.extension",
            "path": "AuditEvent.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.modifierExtension",
            "path": "AuditEvent.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "AuditEvent.type",
            "path": "AuditEvent.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AuditEvent.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventType"
                }
              ],
              "strength": "extensible",
              "description": "Type of event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-event-type"
            }
          },
          {
            "id": "AuditEvent.subtype",
            "path": "AuditEvent.subtype",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AuditEvent.subtype",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventSubType"
                }
              ],
              "strength": "extensible",
              "description": "Sub-type of event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-event-sub-type"
            }
          },
          {
            "id": "AuditEvent.action",
            "path": "AuditEvent.action",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.action",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventAction"
                }
              ],
              "strength": "required",
              "description": "Indicator for type of action performed during the event that generated the event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-event-action|4.0.1"
            }
          },
          {
            "id": "AuditEvent.period",
            "path": "AuditEvent.period",
            "comment": "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.recorded",
            "path": "AuditEvent.recorded",
            "comment": "In a distributed system, some sort of common time base (e.g. an NTP [RFC1305] server) is a good implementation tactic.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AuditEvent.recorded",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AuditEvent.outcome",
            "path": "AuditEvent.outcome",
            "comment": "In some cases a \"success\" may be partial, for example, an incomplete or interrupted transfer of a radiological study. For the purpose of establishing accountability, these distinctions are not relevant.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.outcome",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventOutcome"
                }
              ],
              "strength": "required",
              "description": "Indicates whether the event succeeded or failed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-event-outcome|4.0.1"
            }
          },
          {
            "id": "AuditEvent.outcomeDesc",
            "path": "AuditEvent.outcomeDesc",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.outcomeDesc",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AuditEvent.purposeOfEvent",
            "path": "AuditEvent.purposeOfEvent",
            "comment": "Use AuditEvent.agent.purposeOfUse when you know that it is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AuditEvent.purposeOfEvent",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditPurposeOfUse"
                }
              ],
              "strength": "extensible",
              "description": "The reason the activity took place.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "AuditEvent.agent",
            "path": "AuditEvent.agent",
            "comment": "Several agents may be associated (i.e. have some responsibility for an activity) with an event or activity.\n\nFor example, an activity may be initiated by one user for other users or involve more than one user. However, only one user may be the initiator/requestor for the activity.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "AuditEvent.agent",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.id",
            "path": "AuditEvent.agent.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.extension",
            "path": "AuditEvent.agent.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.modifierExtension",
            "path": "AuditEvent.agent.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "AuditEvent.agent.type",
            "path": "AuditEvent.agent.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.agent.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditAgentType"
                }
              ],
              "strength": "extensible",
              "description": "The Participation type of the agent to the event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participation-role-type"
            }
          },
          {
            "id": "AuditEvent.agent.role",
            "path": "AuditEvent.agent.role",
            "comment": "Should be roles relevant to the event. Should  not be an exhaustive list of roles.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AuditEvent.agent.role",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditAgentRole"
                }
              ],
              "strength": "example",
              "description": "What security role enabled the agent to participate in the event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-role-type"
            }
          },
          {
            "id": "AuditEvent.agent.who",
            "path": "AuditEvent.agent.who",
            "comment": "Where a User ID is available it will go into who.identifier.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.agent.who",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AuditEvent.agent.altId",
            "path": "AuditEvent.agent.altId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.agent.altId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.name",
            "path": "AuditEvent.agent.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.agent.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.requestor",
            "path": "AuditEvent.agent.requestor",
            "comment": "There can only be one initiator. If the initiator is not clear, then do not choose any one agent as the initiator.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AuditEvent.agent.requestor",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AuditEvent.agent.location",
            "path": "AuditEvent.agent.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.agent.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.policy",
            "path": "AuditEvent.agent.policy",
            "comment": "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AuditEvent.agent.policy",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.media",
            "path": "AuditEvent.agent.media",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.agent.media",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DICOMMediaType"
                }
              ],
              "strength": "extensible",
              "description": "Used when the event is about exporting/importing onto media.",
              "valueSet": "http://hl7.org/fhir/ValueSet/dicm-405-mediatype"
            }
          },
          {
            "id": "AuditEvent.agent.network",
            "path": "AuditEvent.agent.network",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.agent.network",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.network.id",
            "path": "AuditEvent.agent.network.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.network.extension",
            "path": "AuditEvent.agent.network.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.network.modifierExtension",
            "path": "AuditEvent.agent.network.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "AuditEvent.agent.network.address",
            "path": "AuditEvent.agent.network.address",
            "comment": "This could be a device id, IP address or some other identifier associated with a device.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.agent.network.address",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.agent.network.type",
            "path": "AuditEvent.agent.network.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.agent.network.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventAgentNetworkType"
                }
              ],
              "strength": "required",
              "description": "The type of network access point of this agent in the audit event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/network-type|4.0.1"
            }
          },
          {
            "id": "AuditEvent.agent.purposeOfUse",
            "path": "AuditEvent.agent.purposeOfUse",
            "comment": "Use AuditEvent.agent.purposeOfUse when you know that is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AuditEvent.agent.purposeOfUse",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditPurposeOfUse"
                }
              ],
              "strength": "extensible",
              "description": "The reason the activity took place.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "AuditEvent.source",
            "path": "AuditEvent.source",
            "comment": "Since multi-tier, distributed, or composite applications make source identification ambiguous, this collection of fields may repeat for each application or process actively involved in the event. For example, multiple value-sets can identify participating web servers, application processes, and database server threads in an n-tier distributed application. Passive event participants (e.g. low-level network transports) need not be identified.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AuditEvent.source",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.source.id",
            "path": "AuditEvent.source.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.source.extension",
            "path": "AuditEvent.source.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.source.modifierExtension",
            "path": "AuditEvent.source.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "AuditEvent.source.site",
            "path": "AuditEvent.source.site",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.source.site",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.source.observer",
            "path": "AuditEvent.source.observer",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AuditEvent.source.observer",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AuditEvent.source.type",
            "path": "AuditEvent.source.type",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AuditEvent.source.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventSourceType"
                }
              ],
              "strength": "extensible",
              "description": "Code specifying the type of system that detected and recorded the event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-source-type"
            }
          },
          {
            "id": "AuditEvent.entity",
            "path": "AuditEvent.entity",
            "comment": "Required unless the values for event identification, agent identification, and audit source identification are sufficient to document the entire auditable event. Because events may have more than one entity, this group can be a repeating set of values.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AuditEvent.entity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "sev-1",
                "severity": "error",
                "human": "Either a name or a query (NOT both)",
                "expression": "name.empty() or query.empty()",
                "xpath": "not(exists(f:name)) or not(exists(f:query))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.entity.id",
            "path": "AuditEvent.entity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.entity.extension",
            "path": "AuditEvent.entity.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.entity.modifierExtension",
            "path": "AuditEvent.entity.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "AuditEvent.entity.what",
            "path": "AuditEvent.entity.what",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.entity.what",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AuditEvent.entity.type",
            "path": "AuditEvent.entity.type",
            "comment": "This value is distinct from the user's role or any user relationship to the entity.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.entity.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventEntityType"
                }
              ],
              "strength": "extensible",
              "description": "Code for the entity type involved in the audit event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-entity-type"
            }
          },
          {
            "id": "AuditEvent.entity.role",
            "path": "AuditEvent.entity.role",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.entity.role",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventEntityRole"
                }
              ],
              "strength": "extensible",
              "description": "Code representing the role the entity played in the audit event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/object-role"
            }
          },
          {
            "id": "AuditEvent.entity.lifecycle",
            "path": "AuditEvent.entity.lifecycle",
            "comment": "This can be used to provide an audit trail for data, over time, as it passes through the system.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.entity.lifecycle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventEntityLifecycle"
                }
              ],
              "strength": "extensible",
              "description": "Identifier for the data life-cycle stage for the entity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/object-lifecycle-events"
            }
          },
          {
            "id": "AuditEvent.entity.securityLabel",
            "path": "AuditEvent.entity.securityLabel",
            "comment": "Copied from entity meta security tags.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AuditEvent.entity.securityLabel",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SecurityLabels"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
            }
          },
          {
            "id": "AuditEvent.entity.name",
            "path": "AuditEvent.entity.name",
            "comment": "This field may be used in a query/report to identify audit events for a specific person.  For example, where multiple synonymous entity identifiers (patient number, medical record number, encounter number, etc.) have been used.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.entity.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "sev-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AuditEvent.entity.description",
            "path": "AuditEvent.entity.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.entity.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.entity.query",
            "path": "AuditEvent.entity.query",
            "comment": "The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, AuditEvent.entity.type, and AuditEvent.entity.role.  The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded.  An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example, if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "AuditEvent.entity.query",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "base64Binary"
              }
            ],
            "condition": [
              "sev-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "AuditEvent.entity.detail",
            "path": "AuditEvent.entity.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "AuditEvent.entity.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.entity.detail.id",
            "path": "AuditEvent.entity.detail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.entity.detail.extension",
            "path": "AuditEvent.entity.detail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.entity.detail.modifierExtension",
            "path": "AuditEvent.entity.detail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "AuditEvent.entity.detail.type",
            "path": "AuditEvent.entity.detail.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AuditEvent.entity.detail.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "AuditEvent.entity.detail.value[x]",
            "path": "AuditEvent.entity.detail.value[x]",
            "comment": "The value can be string when known to be a string, else base64 encoding should be used to protect binary or undefined content.  The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, AuditEvent.entity.type, and AuditEvent.entity.role.  The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded.  An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "AuditEvent.entity.detail.value[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              },
              {
                "code": "base64Binary"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "AuditEvent",
            "path": "AuditEvent",
            "comment": "Based on IHE-ATNA.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "AuditEvent.type",
            "path": "AuditEvent.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventType"
                }
              ],
              "strength": "extensible",
              "description": "Type of event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-event-type"
            }
          },
          {
            "id": "AuditEvent.subtype",
            "path": "AuditEvent.subtype",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventSubType"
                }
              ],
              "strength": "extensible",
              "description": "Sub-type of event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-event-sub-type"
            }
          },
          {
            "id": "AuditEvent.action",
            "path": "AuditEvent.action",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventAction"
                }
              ],
              "strength": "required",
              "description": "Indicator for type of action performed during the event that generated the event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-event-action|4.0.1"
            }
          },
          {
            "id": "AuditEvent.period",
            "path": "AuditEvent.period",
            "comment": "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "AuditEvent.recorded",
            "path": "AuditEvent.recorded",
            "comment": "In a distributed system, some sort of common time base (e.g. an NTP [RFC1305] server) is a good implementation tactic.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AuditEvent.outcome",
            "path": "AuditEvent.outcome",
            "comment": "In some cases a \"success\" may be partial, for example, an incomplete or interrupted transfer of a radiological study. For the purpose of establishing accountability, these distinctions are not relevant.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventOutcome"
                }
              ],
              "strength": "required",
              "description": "Indicates whether the event succeeded or failed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-event-outcome|4.0.1"
            }
          },
          {
            "id": "AuditEvent.outcomeDesc",
            "path": "AuditEvent.outcomeDesc",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AuditEvent.purposeOfEvent",
            "path": "AuditEvent.purposeOfEvent",
            "comment": "Use AuditEvent.agent.purposeOfUse when you know that it is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditPurposeOfUse"
                }
              ],
              "strength": "extensible",
              "description": "The reason the activity took place.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "AuditEvent.agent",
            "path": "AuditEvent.agent",
            "comment": "Several agents may be associated (i.e. have some responsibility for an activity) with an event or activity.\n\nFor example, an activity may be initiated by one user for other users or involve more than one user. However, only one user may be the initiator/requestor for the activity.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "AuditEvent.agent.type",
            "path": "AuditEvent.agent.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditAgentType"
                }
              ],
              "strength": "extensible",
              "description": "The Participation type of the agent to the event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participation-role-type"
            }
          },
          {
            "id": "AuditEvent.agent.role",
            "path": "AuditEvent.agent.role",
            "comment": "Should be roles relevant to the event. Should  not be an exhaustive list of roles.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditAgentRole"
                }
              ],
              "strength": "example",
              "description": "What security role enabled the agent to participate in the event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-role-type"
            }
          },
          {
            "id": "AuditEvent.agent.who",
            "path": "AuditEvent.agent.who",
            "comment": "Where a User ID is available it will go into who.identifier.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AuditEvent.agent.altId",
            "path": "AuditEvent.agent.altId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "AuditEvent.agent.name",
            "path": "AuditEvent.agent.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "AuditEvent.agent.requestor",
            "path": "AuditEvent.agent.requestor",
            "comment": "There can only be one initiator. If the initiator is not clear, then do not choose any one agent as the initiator.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "AuditEvent.agent.location",
            "path": "AuditEvent.agent.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "AuditEvent.agent.policy",
            "path": "AuditEvent.agent.policy",
            "comment": "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "AuditEvent.agent.media",
            "path": "AuditEvent.agent.media",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DICOMMediaType"
                }
              ],
              "strength": "extensible",
              "description": "Used when the event is about exporting/importing onto media.",
              "valueSet": "http://hl7.org/fhir/ValueSet/dicm-405-mediatype"
            }
          },
          {
            "id": "AuditEvent.agent.network",
            "path": "AuditEvent.agent.network",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "AuditEvent.agent.network.address",
            "path": "AuditEvent.agent.network.address",
            "comment": "This could be a device id, IP address or some other identifier associated with a device.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "AuditEvent.agent.network.type",
            "path": "AuditEvent.agent.network.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventAgentNetworkType"
                }
              ],
              "strength": "required",
              "description": "The type of network access point of this agent in the audit event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/network-type|4.0.1"
            }
          },
          {
            "id": "AuditEvent.agent.purposeOfUse",
            "path": "AuditEvent.agent.purposeOfUse",
            "comment": "Use AuditEvent.agent.purposeOfUse when you know that is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditPurposeOfUse"
                }
              ],
              "strength": "extensible",
              "description": "The reason the activity took place.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "AuditEvent.source",
            "path": "AuditEvent.source",
            "comment": "Since multi-tier, distributed, or composite applications make source identification ambiguous, this collection of fields may repeat for each application or process actively involved in the event. For example, multiple value-sets can identify participating web servers, application processes, and database server threads in an n-tier distributed application. Passive event participants (e.g. low-level network transports) need not be identified.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "AuditEvent.source.site",
            "path": "AuditEvent.source.site",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "AuditEvent.source.observer",
            "path": "AuditEvent.source.observer",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AuditEvent.source.type",
            "path": "AuditEvent.source.type",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventSourceType"
                }
              ],
              "strength": "extensible",
              "description": "Code specifying the type of system that detected and recorded the event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-source-type"
            }
          },
          {
            "id": "AuditEvent.entity",
            "path": "AuditEvent.entity",
            "comment": "Required unless the values for event identification, agent identification, and audit source identification are sufficient to document the entire auditable event. Because events may have more than one entity, this group can be a repeating set of values.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "sev-1",
                "severity": "error",
                "human": "Either a name or a query (NOT both)",
                "expression": "name.empty() or query.empty()",
                "xpath": "not(exists(f:name)) or not(exists(f:query))"
              }
            ]
          },
          {
            "id": "AuditEvent.entity.what",
            "path": "AuditEvent.entity.what",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "AuditEvent.entity.type",
            "path": "AuditEvent.entity.type",
            "comment": "This value is distinct from the user's role or any user relationship to the entity.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventEntityType"
                }
              ],
              "strength": "extensible",
              "description": "Code for the entity type involved in the audit event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/audit-entity-type"
            }
          },
          {
            "id": "AuditEvent.entity.role",
            "path": "AuditEvent.entity.role",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventEntityRole"
                }
              ],
              "strength": "extensible",
              "description": "Code representing the role the entity played in the audit event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/object-role"
            }
          },
          {
            "id": "AuditEvent.entity.lifecycle",
            "path": "AuditEvent.entity.lifecycle",
            "comment": "This can be used to provide an audit trail for data, over time, as it passes through the system.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuditEventEntityLifecycle"
                }
              ],
              "strength": "extensible",
              "description": "Identifier for the data life-cycle stage for the entity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/object-lifecycle-events"
            }
          },
          {
            "id": "AuditEvent.entity.securityLabel",
            "path": "AuditEvent.entity.securityLabel",
            "comment": "Copied from entity meta security tags.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SecurityLabels"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
            }
          },
          {
            "id": "AuditEvent.entity.name",
            "path": "AuditEvent.entity.name",
            "comment": "This field may be used in a query/report to identify audit events for a specific person.  For example, where multiple synonymous entity identifiers (patient number, medical record number, encounter number, etc.) have been used.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "sev-1"
            ],
            "isSummary": true
          },
          {
            "id": "AuditEvent.entity.description",
            "path": "AuditEvent.entity.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "AuditEvent.entity.query",
            "path": "AuditEvent.entity.query",
            "comment": "The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, AuditEvent.entity.type, and AuditEvent.entity.role.  The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded.  An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example, if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "base64Binary"
              }
            ],
            "condition": [
              "sev-1"
            ],
            "isSummary": true
          },
          {
            "id": "AuditEvent.entity.detail",
            "path": "AuditEvent.entity.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "AuditEvent.entity.detail.type",
            "path": "AuditEvent.entity.detail.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "AuditEvent.entity.detail.value[x]",
            "path": "AuditEvent.entity.detail.value[x]",
            "comment": "The value can be string when known to be a string, else base64 encoding should be used to protect binary or undefined content.  The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, AuditEvent.entity.type, and AuditEvent.entity.role.  The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded.  An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              },
              {
                "code": "base64Binary"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Basic",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Basic",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Other"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Basic",
      "version": "4.0.1",
      "name": "Basic",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Need some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Basic",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Basic",
            "path": "Basic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Basic",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Basic.id",
            "path": "Basic.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Basic.meta",
            "path": "Basic.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Basic.implicitRules",
            "path": "Basic.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Basic.language",
            "path": "Basic.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Basic.text",
            "path": "Basic.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Basic.contained",
            "path": "Basic.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Basic.extension",
            "path": "Basic.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Basic.modifierExtension",
            "path": "Basic.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Basic.identifier",
            "path": "Basic.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Basic.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Basic.code",
            "path": "Basic.code",
            "comment": "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.\n\nThis element is labeled as a modifier because it defines the meaning of the resource and cannot be ignored.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Basic.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element determines what kind of resource is being represented which drives the meaning of all of the other elements.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BasicResourceType"
                }
              ],
              "strength": "example",
              "description": "Codes for identifying types of resources not yet defined by FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/basic-resource-type"
            }
          },
          {
            "id": "Basic.subject",
            "path": "Basic.subject",
            "comment": "Optional as not all potential resources will have subjects.  Resources associated with multiple subjects can handle this via extension.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Basic.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Basic.created",
            "path": "Basic.created",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Basic.created",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Basic.author",
            "path": "Basic.author",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Basic.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Basic",
            "path": "Basic",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Basic.identifier",
            "path": "Basic.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Basic.code",
            "path": "Basic.code",
            "comment": "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.\n\nThis element is labeled as a modifier because it defines the meaning of the resource and cannot be ignored.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element determines what kind of resource is being represented which drives the meaning of all of the other elements.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BasicResourceType"
                }
              ],
              "strength": "example",
              "description": "Codes for identifying types of resources not yet defined by FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/basic-resource-type"
            }
          },
          {
            "id": "Basic.subject",
            "path": "Basic.subject",
            "comment": "Optional as not all potential resources will have subjects.  Resources associated with multiple subjects can handle this via extension.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Basic.created",
            "path": "Basic.created",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Basic.author",
            "path": "Basic.author",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Binary",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Binary",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Other"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Binary",
      "version": "4.0.1",
      "name": "Binary",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "There are situations where it is useful or required to handle pure binary content using the same framework as other resources.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Binary",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Resource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Binary",
            "path": "Binary",
            "comment": "Typically, Binary resources are used for handling content such as:  \n\n* CDA Documents (i.e. with XDS) \n* PDF Documents \n* Images (the Media resource is preferred for handling images, but not possible when the content is already binary - e.g. XDS).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Binary",
              "min": 0,
              "max": "*"
            },
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Binary.id",
            "path": "Binary.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Binary.meta",
            "path": "Binary.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Binary.implicitRules",
            "path": "Binary.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Binary.language",
            "path": "Binary.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Binary.contentType",
            "path": "Binary.contentType",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Binary.contentType",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "Binary.securityContext",
            "path": "Binary.securityContext",
            "comment": "Very often, a server will also know of a resource that references the binary, and can automatically apply the appropriate access rules based on that reference. However, there are some circumstances where this is not appropriate, e.g. the binary is uploaded directly to the server without any linking resource, the binary is referred to from multiple different resources, and/or the binary is content such as an application logo that has less protection than any of the resources that reference it.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Binary.securityContext",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Binary.data",
            "path": "Binary.data",
            "comment": "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": 0,
            "max": "1",
            "base": {
              "path": "Binary.data",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "base64Binary"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Binary",
            "path": "Binary",
            "comment": "Typically, Binary resources are used for handling content such as:  \n\n* CDA Documents (i.e. with XDS) \n* PDF Documents \n* Images (the Media resource is preferred for handling images, but not possible when the content is already binary - e.g. XDS).",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Binary.contentType",
            "path": "Binary.contentType",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "Binary.securityContext",
            "path": "Binary.securityContext",
            "comment": "Very often, a server will also know of a resource that references the binary, and can automatically apply the appropriate access rules based on that reference. However, there are some circumstances where this is not appropriate, e.g. the binary is uploaded directly to the server without any linking resource, the binary is referred to from multiple different resources, and/or the binary is content such as an application logo that has less protection than any of the resources that reference it.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Binary.data",
            "path": "Binary.data",
            "comment": "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": 0,
            "max": "1",
            "type": [
              {
                "code": "base64Binary"
              }
            ],
            "isSummary": false
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "BiologicallyDerivedProduct",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Entities"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct",
      "version": "4.0.1",
      "name": "BiologicallyDerivedProduct",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "BiologicallyDerivedProduct",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "BiologicallyDerivedProduct",
            "path": "BiologicallyDerivedProduct",
            "comment": "Substances include, but are not limited to: whole blood, bone marrow, organs, and manipulated blood cells.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BiologicallyDerivedProduct",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.id",
            "path": "BiologicallyDerivedProduct.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "BiologicallyDerivedProduct.meta",
            "path": "BiologicallyDerivedProduct.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "BiologicallyDerivedProduct.implicitRules",
            "path": "BiologicallyDerivedProduct.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "BiologicallyDerivedProduct.language",
            "path": "BiologicallyDerivedProduct.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "BiologicallyDerivedProduct.text",
            "path": "BiologicallyDerivedProduct.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.contained",
            "path": "BiologicallyDerivedProduct.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.extension",
            "path": "BiologicallyDerivedProduct.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.modifierExtension",
            "path": "BiologicallyDerivedProduct.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.identifier",
            "path": "BiologicallyDerivedProduct.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BiologicallyDerivedProduct.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "BiologicallyDerivedProduct.productCategory",
            "path": "BiologicallyDerivedProduct.productCategory",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.productCategory",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BiologicallyDerivedProductCategory"
                }
              ],
              "strength": "required",
              "description": "Biologically Derived Product Category.",
              "valueSet": "http://hl7.org/fhir/ValueSet/product-category|4.0.1"
            }
          },
          {
            "id": "BiologicallyDerivedProduct.productCode",
            "path": "BiologicallyDerivedProduct.productCode",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.productCode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BiologicallyDerivedProductCode"
                }
              ],
              "strength": "example",
              "description": "Biologically Derived Product Code."
            }
          },
          {
            "id": "BiologicallyDerivedProduct.status",
            "path": "BiologicallyDerivedProduct.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BiologicallyDerivedProductStatus"
                }
              ],
              "strength": "required",
              "description": "Biologically Derived Product Status.",
              "valueSet": "http://hl7.org/fhir/ValueSet/product-status|4.0.1"
            }
          },
          {
            "id": "BiologicallyDerivedProduct.request",
            "path": "BiologicallyDerivedProduct.request",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BiologicallyDerivedProduct.request",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.quantity",
            "path": "BiologicallyDerivedProduct.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.parent",
            "path": "BiologicallyDerivedProduct.parent",
            "comment": "For products that have multiple collections. For example Peripheral Blood Stem Cells may be collected over several days from a single donor and the donation split into in multiple containers which must be linked to the parent donation.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BiologicallyDerivedProduct.parent",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.collection",
            "path": "BiologicallyDerivedProduct.collection",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.collection",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.collection.id",
            "path": "BiologicallyDerivedProduct.collection.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.collection.extension",
            "path": "BiologicallyDerivedProduct.collection.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.collection.modifierExtension",
            "path": "BiologicallyDerivedProduct.collection.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "BiologicallyDerivedProduct.collection.collector",
            "path": "BiologicallyDerivedProduct.collection.collector",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.collection.collector",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.collection.source",
            "path": "BiologicallyDerivedProduct.collection.source",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.collection.source",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.collection.collected[x]",
            "path": "BiologicallyDerivedProduct.collection.collected[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.collection.collected[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.processing",
            "path": "BiologicallyDerivedProduct.processing",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BiologicallyDerivedProduct.processing",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.processing.id",
            "path": "BiologicallyDerivedProduct.processing.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.processing.extension",
            "path": "BiologicallyDerivedProduct.processing.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.processing.modifierExtension",
            "path": "BiologicallyDerivedProduct.processing.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "BiologicallyDerivedProduct.processing.description",
            "path": "BiologicallyDerivedProduct.processing.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.processing.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.processing.procedure",
            "path": "BiologicallyDerivedProduct.processing.procedure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.processing.procedure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BiologicallyDerivedProductProcedure"
                }
              ],
              "strength": "example",
              "description": "Biologically Derived Product Procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code"
            }
          },
          {
            "id": "BiologicallyDerivedProduct.processing.additive",
            "path": "BiologicallyDerivedProduct.processing.additive",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.processing.additive",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.processing.time[x]",
            "path": "BiologicallyDerivedProduct.processing.time[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.processing.time[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.manipulation",
            "path": "BiologicallyDerivedProduct.manipulation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.manipulation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.manipulation.id",
            "path": "BiologicallyDerivedProduct.manipulation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.manipulation.extension",
            "path": "BiologicallyDerivedProduct.manipulation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.manipulation.modifierExtension",
            "path": "BiologicallyDerivedProduct.manipulation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "BiologicallyDerivedProduct.manipulation.description",
            "path": "BiologicallyDerivedProduct.manipulation.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.manipulation.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.manipulation.time[x]",
            "path": "BiologicallyDerivedProduct.manipulation.time[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.manipulation.time[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.storage",
            "path": "BiologicallyDerivedProduct.storage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BiologicallyDerivedProduct.storage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.storage.id",
            "path": "BiologicallyDerivedProduct.storage.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.storage.extension",
            "path": "BiologicallyDerivedProduct.storage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.storage.modifierExtension",
            "path": "BiologicallyDerivedProduct.storage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "BiologicallyDerivedProduct.storage.description",
            "path": "BiologicallyDerivedProduct.storage.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.storage.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.storage.temperature",
            "path": "BiologicallyDerivedProduct.storage.temperature",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.storage.temperature",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BiologicallyDerivedProduct.storage.scale",
            "path": "BiologicallyDerivedProduct.storage.scale",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.storage.scale",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BiologicallyDerivedProductStorageScale"
                }
              ],
              "strength": "required",
              "description": "BiologicallyDerived Product Storage Scale.",
              "valueSet": "http://hl7.org/fhir/ValueSet/product-storage-scale|4.0.1"
            }
          },
          {
            "id": "BiologicallyDerivedProduct.storage.duration",
            "path": "BiologicallyDerivedProduct.storage.duration",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BiologicallyDerivedProduct.storage.duration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "BiologicallyDerivedProduct",
            "path": "BiologicallyDerivedProduct",
            "comment": "Substances include, but are not limited to: whole blood, bone marrow, organs, and manipulated blood cells.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "BiologicallyDerivedProduct.identifier",
            "path": "BiologicallyDerivedProduct.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "BiologicallyDerivedProduct.productCategory",
            "path": "BiologicallyDerivedProduct.productCategory",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BiologicallyDerivedProductCategory"
                }
              ],
              "strength": "required",
              "description": "Biologically Derived Product Category.",
              "valueSet": "http://hl7.org/fhir/ValueSet/product-category|4.0.1"
            }
          },
          {
            "id": "BiologicallyDerivedProduct.productCode",
            "path": "BiologicallyDerivedProduct.productCode",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BiologicallyDerivedProductCode"
                }
              ],
              "strength": "example",
              "description": "Biologically Derived Product Code."
            }
          },
          {
            "id": "BiologicallyDerivedProduct.status",
            "path": "BiologicallyDerivedProduct.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BiologicallyDerivedProductStatus"
                }
              ],
              "strength": "required",
              "description": "Biologically Derived Product Status.",
              "valueSet": "http://hl7.org/fhir/ValueSet/product-status|4.0.1"
            }
          },
          {
            "id": "BiologicallyDerivedProduct.request",
            "path": "BiologicallyDerivedProduct.request",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.quantity",
            "path": "BiologicallyDerivedProduct.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.parent",
            "path": "BiologicallyDerivedProduct.parent",
            "comment": "For products that have multiple collections. For example Peripheral Blood Stem Cells may be collected over several days from a single donor and the donation split into in multiple containers which must be linked to the parent donation.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct"
                ]
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.collection",
            "path": "BiologicallyDerivedProduct.collection",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.collection.collector",
            "path": "BiologicallyDerivedProduct.collection.collector",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.collection.source",
            "path": "BiologicallyDerivedProduct.collection.source",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.collection.collected[x]",
            "path": "BiologicallyDerivedProduct.collection.collected[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.processing",
            "path": "BiologicallyDerivedProduct.processing",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.processing.description",
            "path": "BiologicallyDerivedProduct.processing.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.processing.procedure",
            "path": "BiologicallyDerivedProduct.processing.procedure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BiologicallyDerivedProductProcedure"
                }
              ],
              "strength": "example",
              "description": "Biologically Derived Product Procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code"
            }
          },
          {
            "id": "BiologicallyDerivedProduct.processing.additive",
            "path": "BiologicallyDerivedProduct.processing.additive",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.processing.time[x]",
            "path": "BiologicallyDerivedProduct.processing.time[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.manipulation",
            "path": "BiologicallyDerivedProduct.manipulation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.manipulation.description",
            "path": "BiologicallyDerivedProduct.manipulation.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.manipulation.time[x]",
            "path": "BiologicallyDerivedProduct.manipulation.time[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.storage",
            "path": "BiologicallyDerivedProduct.storage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.storage.description",
            "path": "BiologicallyDerivedProduct.storage.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.storage.temperature",
            "path": "BiologicallyDerivedProduct.storage.temperature",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "BiologicallyDerivedProduct.storage.scale",
            "path": "BiologicallyDerivedProduct.storage.scale",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BiologicallyDerivedProductStorageScale"
                }
              ],
              "strength": "required",
              "description": "BiologicallyDerived Product Storage Scale.",
              "valueSet": "http://hl7.org/fhir/ValueSet/product-storage-scale|4.0.1"
            }
          },
          {
            "id": "BiologicallyDerivedProduct.storage.duration",
            "path": "BiologicallyDerivedProduct.storage.duration",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/BodyStructure",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "BodyStructure",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Diagnostics"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/BodyStructure",
      "version": "4.0.1",
      "name": "BodyStructure",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "BodyStructure",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "BodyStructure",
            "path": "BodyStructure",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BodyStructure",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BodyStructure.id",
            "path": "BodyStructure.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "BodyStructure.meta",
            "path": "BodyStructure.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "BodyStructure.implicitRules",
            "path": "BodyStructure.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "BodyStructure.language",
            "path": "BodyStructure.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "BodyStructure.text",
            "path": "BodyStructure.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BodyStructure.contained",
            "path": "BodyStructure.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BodyStructure.extension",
            "path": "BodyStructure.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BodyStructure.modifierExtension",
            "path": "BodyStructure.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "BodyStructure.identifier",
            "path": "BodyStructure.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BodyStructure.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "BodyStructure.active",
            "path": "BodyStructure.active",
            "comment": "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BodyStructure.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "BodyStructure.morphology",
            "path": "BodyStructure.morphology",
            "comment": "The minimum cardinality of 0 supports the use case of specifying a location without defining a morphology.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BodyStructure.morphology",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodyStructureCode"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomic morphology.",
              "valueSet": "http://hl7.org/fhir/ValueSet/bodystructure-code"
            }
          },
          {
            "id": "BodyStructure.location",
            "path": "BodyStructure.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "BodyStructure.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "BodyStructure.locationQualifier",
            "path": "BodyStructure.locationQualifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BodyStructure.locationQualifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodyStructureQualifier"
                }
              ],
              "strength": "example",
              "description": "Concepts modifying the anatomic location.",
              "valueSet": "http://hl7.org/fhir/ValueSet/bodystructure-relative-location"
            }
          },
          {
            "id": "BodyStructure.description",
            "path": "BodyStructure.description",
            "comment": "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",
            "base": {
              "path": "BodyStructure.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "BodyStructure.image",
            "path": "BodyStructure.image",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BodyStructure.image",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "BodyStructure.patient",
            "path": "BodyStructure.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "BodyStructure.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "BodyStructure",
            "path": "BodyStructure",
            "min": 0,
            "max": "*"
          },
          {
            "id": "BodyStructure.identifier",
            "path": "BodyStructure.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "BodyStructure.active",
            "path": "BodyStructure.active",
            "comment": "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "BodyStructure.morphology",
            "path": "BodyStructure.morphology",
            "comment": "The minimum cardinality of 0 supports the use case of specifying a location without defining a morphology.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodyStructureCode"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomic morphology.",
              "valueSet": "http://hl7.org/fhir/ValueSet/bodystructure-code"
            }
          },
          {
            "id": "BodyStructure.location",
            "path": "BodyStructure.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "BodyStructure.locationQualifier",
            "path": "BodyStructure.locationQualifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodyStructureQualifier"
                }
              ],
              "strength": "example",
              "description": "Concepts modifying the anatomic location.",
              "valueSet": "http://hl7.org/fhir/ValueSet/bodystructure-relative-location"
            }
          },
          {
            "id": "BodyStructure.description",
            "path": "BodyStructure.description",
            "comment": "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
          },
          {
            "id": "BodyStructure.image",
            "path": "BodyStructure.image",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Attachment"
              }
            ]
          },
          {
            "id": "BodyStructure.patient",
            "path": "BodyStructure.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Bundle",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Bundle",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Other"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Bundle",
      "version": "4.0.1",
      "name": "Bundle",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Bundle",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Resource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Bundle",
            "path": "Bundle",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Bundle",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "bdl-1",
                "severity": "error",
                "human": "total only when a search or history",
                "expression": "total.empty() or (type = 'searchset') or (type = 'history')",
                "xpath": "not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"
              },
              {
                "key": "bdl-2",
                "severity": "error",
                "human": "entry.search only when a search",
                "expression": "entry.search.empty() or (type = 'searchset')",
                "xpath": "not(f:entry/f:search) or (f:type/@value = 'searchset')"
              },
              {
                "key": "bdl-3",
                "severity": "error",
                "human": "entry.request mandatory for batch/transaction/history, otherwise prohibited",
                "expression": "entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))",
                "xpath": "not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"
              },
              {
                "key": "bdl-4",
                "severity": "error",
                "human": "entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited",
                "expression": "entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))",
                "xpath": "not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"
              },
              {
                "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 (except in history bundles)",
                "expression": "(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()",
                "xpath": "(f:type/@value = 'history') or (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)"
              },
              {
                "key": "bdl-9",
                "severity": "error",
                "human": "A document must have an identifier with a system and a value",
                "expression": "type = 'document' implies (identifier.system.exists() and identifier.value.exists())",
                "xpath": "not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"
              },
              {
                "key": "bdl-10",
                "severity": "error",
                "human": "A document must have a date",
                "expression": "type = 'document' implies (timestamp.hasValue())",
                "xpath": "not(f:type/@value = 'document') or exists(f:timestamp/@value)"
              },
              {
                "key": "bdl-11",
                "severity": "error",
                "human": "A document must have a Composition as the first resource",
                "expression": "type = 'document' implies entry.first().resource.is(Composition)",
                "xpath": "not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"
              },
              {
                "key": "bdl-12",
                "severity": "error",
                "human": "A message must have a MessageHeader as the first resource",
                "expression": "type = 'message' implies entry.first().resource.is(MessageHeader)",
                "xpath": "not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.id",
            "path": "Bundle.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.meta",
            "path": "Bundle.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.implicitRules",
            "path": "Bundle.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Bundle.language",
            "path": "Bundle.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Bundle.identifier",
            "path": "Bundle.identifier",
            "comment": "Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents  the .identifier SHALL be populated such that the .identifier is globally unique.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.type",
            "path": "Bundle.type",
            "comment": "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",
            "base": {
              "path": "Bundle.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BundleType"
                }
              ],
              "strength": "required",
              "description": "Indicates the purpose of a bundle - how it is intended to be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/bundle-type|4.0.1"
            }
          },
          {
            "id": "Bundle.timestamp",
            "path": "Bundle.timestamp",
            "comment": "For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated.  \n\nUsage:\n\n* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time\n* message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message\n* history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates\n* searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query\n* transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning\n\nThe timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.timestamp",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.total",
            "path": "Bundle.total",
            "comment": "Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.total",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "condition": [
              "bdl-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.link",
            "path": "Bundle.link",
            "comment": "Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS)). \n\nBundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was [read](http.html#read) directly.\n\nThis specification defines some specific uses of Bundle.link for [searching](search.html#conformance) and [paging](http.html#paging), but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Bundle.link",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.link.id",
            "path": "Bundle.link.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.link.extension",
            "path": "Bundle.link.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.link.modifierExtension",
            "path": "Bundle.link.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Bundle.link.relation",
            "path": "Bundle.link.relation",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Bundle.link.relation",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.link.url",
            "path": "Bundle.link.url",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Bundle.link.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry",
            "path": "Bundle.entry",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Bundle.entry",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "orderMeaning": "For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type",
            "constraint": [
              {
                "key": "bdl-5",
                "severity": "error",
                "human": "must be a resource unless there's a request or response",
                "expression": "resource.exists() or request.exists() or response.exists()",
                "xpath": "exists(f:resource) or exists(f:request) or exists(f:response)"
              },
              {
                "key": "bdl-8",
                "severity": "error",
                "human": "fullUrl cannot be a version specific reference",
                "expression": "fullUrl.contains('/_history/').not()",
                "xpath": "not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.id",
            "path": "Bundle.entry.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.entry.extension",
            "path": "Bundle.entry.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.entry.modifierExtension",
            "path": "Bundle.entry.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Bundle.entry.link",
            "path": "Bundle.entry.link",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Bundle.entry.link",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#Bundle.link",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.fullUrl",
            "path": "Bundle.entry.fullUrl",
            "comment": "fullUrl might 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 fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.\n\nNote that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.fullUrl",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.resource",
            "path": "Bundle.entry.resource",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.resource",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.search",
            "path": "Bundle.entry.search",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.search",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "bdl-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.search.id",
            "path": "Bundle.entry.search.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.entry.search.extension",
            "path": "Bundle.entry.search.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.entry.search.modifierExtension",
            "path": "Bundle.entry.search.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Bundle.entry.search.mode",
            "path": "Bundle.entry.search.mode",
            "comment": "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",
            "base": {
              "path": "Bundle.entry.search.mode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchEntryMode"
                }
              ],
              "strength": "required",
              "description": "Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"
            }
          },
          {
            "id": "Bundle.entry.search.score",
            "path": "Bundle.entry.search.score",
            "comment": "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.\n\nSee [Patient Match](patient-operation-match.html) for the EMPI search which relates to this element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.search.score",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request",
            "path": "Bundle.entry.request",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.request",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "bdl-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request.id",
            "path": "Bundle.entry.request.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.entry.request.extension",
            "path": "Bundle.entry.request.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.entry.request.modifierExtension",
            "path": "Bundle.entry.request.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request.method",
            "path": "Bundle.entry.request.method",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Bundle.entry.request.method",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "HTTPVerb"
                }
              ],
              "strength": "required",
              "description": "HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details.",
              "valueSet": "http://hl7.org/fhir/ValueSet/http-verb|4.0.1"
            }
          },
          {
            "id": "Bundle.entry.request.url",
            "path": "Bundle.entry.request.url",
            "comment": "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",
            "base": {
              "path": "Bundle.entry.request.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request.ifNoneMatch",
            "path": "Bundle.entry.request.ifNoneMatch",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.request.ifNoneMatch",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request.ifModifiedSince",
            "path": "Bundle.entry.request.ifModifiedSince",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.request.ifModifiedSince",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request.ifMatch",
            "path": "Bundle.entry.request.ifMatch",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.request.ifMatch",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request.ifNoneExist",
            "path": "Bundle.entry.request.ifNoneExist",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.request.ifNoneExist",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response",
            "path": "Bundle.entry.response",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.response",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "bdl-4"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.id",
            "path": "Bundle.entry.response.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.entry.response.extension",
            "path": "Bundle.entry.response.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Bundle.entry.response.modifierExtension",
            "path": "Bundle.entry.response.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.status",
            "path": "Bundle.entry.response.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Bundle.entry.response.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.location",
            "path": "Bundle.entry.response.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.response.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.etag",
            "path": "Bundle.entry.response.etag",
            "comment": "Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.response.etag",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.lastModified",
            "path": "Bundle.entry.response.lastModified",
            "comment": "This has to match the same time in the meta header (meta.lastUpdated) if a resource is included.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.response.lastModified",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.outcome",
            "path": "Bundle.entry.response.outcome",
            "comment": "For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.\n\nThis outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.entry.response.outcome",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Bundle.signature",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "Bundle.signature",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Bundle.signature",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Signature"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Bundle",
            "path": "Bundle",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "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 (except in history bundles)",
                "expression": "(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()",
                "xpath": "(f:type/@value = 'history') or (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)"
              },
              {
                "key": "bdl-9",
                "severity": "error",
                "human": "A document must have an identifier with a system and a value",
                "expression": "type = 'document' implies (identifier.system.exists() and identifier.value.exists())",
                "xpath": "not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"
              },
              {
                "key": "bdl-3",
                "severity": "error",
                "human": "entry.request mandatory for batch/transaction/history, otherwise prohibited",
                "expression": "entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))",
                "xpath": "not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"
              },
              {
                "key": "bdl-4",
                "severity": "error",
                "human": "entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited",
                "expression": "entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))",
                "xpath": "not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"
              },
              {
                "key": "bdl-12",
                "severity": "error",
                "human": "A message must have a MessageHeader as the first resource",
                "expression": "type = 'message' implies entry.first().resource.is(MessageHeader)",
                "xpath": "not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"
              },
              {
                "key": "bdl-1",
                "severity": "error",
                "human": "total only when a search or history",
                "expression": "total.empty() or (type = 'searchset') or (type = 'history')",
                "xpath": "not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"
              },
              {
                "key": "bdl-2",
                "severity": "error",
                "human": "entry.search only when a search",
                "expression": "entry.search.empty() or (type = 'searchset')",
                "xpath": "not(f:entry/f:search) or (f:type/@value = 'searchset')"
              },
              {
                "key": "bdl-11",
                "severity": "error",
                "human": "A document must have a Composition as the first resource",
                "expression": "type = 'document' implies entry.first().resource.is(Composition)",
                "xpath": "not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"
              },
              {
                "key": "bdl-10",
                "severity": "error",
                "human": "A document must have a date",
                "expression": "type = 'document' implies (timestamp.hasValue())",
                "xpath": "not(f:type/@value = 'document') or exists(f:timestamp/@value)"
              }
            ]
          },
          {
            "id": "Bundle.identifier",
            "path": "Bundle.identifier",
            "comment": "Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents  the .identifier SHALL be populated such that the .identifier is globally unique.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.type",
            "path": "Bundle.type",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BundleType"
                }
              ],
              "strength": "required",
              "description": "Indicates the purpose of a bundle - how it is intended to be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/bundle-type|4.0.1"
            }
          },
          {
            "id": "Bundle.timestamp",
            "path": "Bundle.timestamp",
            "comment": "For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated.  \n\nUsage:\n\n* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time\n* message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message\n* history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates\n* searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query\n* transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning\n\nThe timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.total",
            "path": "Bundle.total",
            "comment": "Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "condition": [
              "bdl-1"
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.link",
            "path": "Bundle.link",
            "comment": "Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS)). \n\nBundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was [read](http.html#read) directly.\n\nThis specification defines some specific uses of Bundle.link for [searching](search.html#conformance) and [paging](http.html#paging), but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.link.relation",
            "path": "Bundle.link.relation",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.link.url",
            "path": "Bundle.link.url",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry",
            "path": "Bundle.entry",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "orderMeaning": "For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type",
            "constraint": [
              {
                "key": "bdl-8",
                "severity": "error",
                "human": "fullUrl cannot be a version specific reference",
                "expression": "fullUrl.contains('/_history/').not()",
                "xpath": "not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"
              },
              {
                "key": "bdl-5",
                "severity": "error",
                "human": "must be a resource unless there's a request or response",
                "expression": "resource.exists() or request.exists() or response.exists()",
                "xpath": "exists(f:resource) or exists(f:request) or exists(f:response)"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.link",
            "path": "Bundle.entry.link",
            "min": 0,
            "max": "*",
            "contentReference": "#Bundle.link",
            "isSummary": true
          },
          {
            "id": "Bundle.entry.fullUrl",
            "path": "Bundle.entry.fullUrl",
            "comment": "fullUrl might 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 fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.\n\nNote that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.resource",
            "path": "Bundle.entry.resource",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.search",
            "path": "Bundle.entry.search",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "bdl-2"
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.search.mode",
            "path": "Bundle.entry.search.mode",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchEntryMode"
                }
              ],
              "strength": "required",
              "description": "Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"
            }
          },
          {
            "id": "Bundle.entry.search.score",
            "path": "Bundle.entry.search.score",
            "comment": "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.\n\nSee [Patient Match](patient-operation-match.html) for the EMPI search which relates to this element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request",
            "path": "Bundle.entry.request",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "bdl-3"
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request.method",
            "path": "Bundle.entry.request.method",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "HTTPVerb"
                }
              ],
              "strength": "required",
              "description": "HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details.",
              "valueSet": "http://hl7.org/fhir/ValueSet/http-verb|4.0.1"
            }
          },
          {
            "id": "Bundle.entry.request.url",
            "path": "Bundle.entry.request.url",
            "comment": "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
          },
          {
            "id": "Bundle.entry.request.ifNoneMatch",
            "path": "Bundle.entry.request.ifNoneMatch",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request.ifModifiedSince",
            "path": "Bundle.entry.request.ifModifiedSince",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request.ifMatch",
            "path": "Bundle.entry.request.ifMatch",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.request.ifNoneExist",
            "path": "Bundle.entry.request.ifNoneExist",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response",
            "path": "Bundle.entry.response",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "bdl-4"
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.status",
            "path": "Bundle.entry.response.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.location",
            "path": "Bundle.entry.response.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.etag",
            "path": "Bundle.entry.response.etag",
            "comment": "Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.lastModified",
            "path": "Bundle.entry.response.lastModified",
            "comment": "This has to match the same time in the meta header (meta.lastUpdated) if a resource is included.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.entry.response.outcome",
            "path": "Bundle.entry.response.outcome",
            "comment": "For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.\n\nThis outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Bundle.signature",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "Bundle.signature",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Signature"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/CapabilityStatement",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "CapabilityStatement",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Conformance"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/CapabilityStatement",
      "version": "4.0.1",
      "name": "CapabilityStatement",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "CapabilityStatement",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "CapabilityStatement",
            "path": "CapabilityStatement",
            "comment": "Applications may implement multiple versions (see [Managing Multiple Versions](versioning.html), and the [$versions](capabilitystatement-operation-versions.html) operation). If they do, then a CapabilityStatement describes the system's support for a particular version of FHIR, and the server will have multiple statements, one for each version.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "cpb-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "cpb-1",
                "severity": "error",
                "human": "A Capability Statement SHALL have at least one of REST, messaging or document element.",
                "expression": "rest.exists() or messaging.exists() or document.exists()",
                "xpath": "exists(f:rest) or exists(f:messaging) or exists(f:document)"
              },
              {
                "key": "cpb-2",
                "severity": "error",
                "human": "A Capability Statement SHALL have at least one of description, software, or implementation element.",
                "expression": "(description.count() + software.count() + implementation.count()) > 0",
                "xpath": "count(f:software | f:implementation | f:description) > 0"
              },
              {
                "key": "cpb-3",
                "severity": "error",
                "human": "Messaging end-point is required (and is only permitted) when a statement is for an implementation.",
                "expression": "messaging.endpoint.empty() or kind = 'instance'",
                "xpath": "not(exists(f:messaging/f:endpoint)) or f:kind/@value = 'instance'"
              },
              {
                "key": "cpb-7",
                "severity": "error",
                "human": "The set of documents must be unique by the combination of profile and mode.",
                "expression": "document.select(profile&mode).isDistinct()",
                "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))"
              },
              {
                "key": "cpb-14",
                "severity": "error",
                "human": "If kind = instance, implementation must be present and software may be present",
                "expression": "(kind != 'instance') or implementation.exists()",
                "xpath": "not(f:kind/@value='instance') or exists(f:implementation)"
              },
              {
                "key": "cpb-15",
                "severity": "error",
                "human": "If kind = capability, implementation must be absent, software must be present",
                "expression": "(kind != 'capability') or (implementation.exists().not() and software.exists())",
                "xpath": " not(f:kind/@value='instance') or (not(exists(f:implementation)) and exists(f:software))"
              },
              {
                "key": "cpb-16",
                "severity": "error",
                "human": "If kind = requirements, implementation and software must be absent",
                "expression": "(kind!='requirements') or (implementation.exists().not() and software.exists().not())",
                "xpath": "not(f:kind/@value='instance') or (not(exists(f:implementation)) and not(exists(f:software)))"
              },
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.id",
            "path": "CapabilityStatement.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.meta",
            "path": "CapabilityStatement.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.implicitRules",
            "path": "CapabilityStatement.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.language",
            "path": "CapabilityStatement.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CapabilityStatement.text",
            "path": "CapabilityStatement.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.contained",
            "path": "CapabilityStatement.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.extension",
            "path": "CapabilityStatement.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.modifierExtension",
            "path": "CapabilityStatement.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.url",
            "path": "CapabilityStatement.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.version",
            "path": "CapabilityStatement.version",
            "comment": "There may be different capability statement instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the capability statement with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.name",
            "path": "CapabilityStatement.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.title",
            "path": "CapabilityStatement.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.status",
            "path": "CapabilityStatement.status",
            "comment": "Allows filtering of capability statements that are appropriate for use versus not.This is not intended for use with actual capability statements, but where capability statements are used to describe possible or desired systems.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.experimental",
            "path": "CapabilityStatement.experimental",
            "comment": "Allows filtering of capability statements that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.date",
            "path": "CapabilityStatement.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the capability statement. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.date",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.publisher",
            "path": "CapabilityStatement.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the capability statement is the organization or individual primarily responsible for the maintenance and upkeep of the capability statement. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the capability statement. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.contact",
            "path": "CapabilityStatement.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.description",
            "path": "CapabilityStatement.description",
            "comment": "This description can be used to capture details such as why the capability statement was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the capability statement as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the capability statement is presumed to be the predominant language in the place the capability statement was created).This does not need to be populated if the description is adequately implied by the software or implementation details.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "condition": [
              "cpb-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.useContext",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.jurisdiction",
            "path": "CapabilityStatement.jurisdiction",
            "comment": "It may be possible for the capability statement to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "CapabilityStatement.purpose",
            "path": "CapabilityStatement.purpose",
            "comment": "This element does not describe the usage of the capability statement. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this capability statement.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.copyright",
            "path": "CapabilityStatement.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.kind",
            "path": "CapabilityStatement.kind",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.kind",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "cpb-15"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CapabilityStatementKind"
                }
              ],
              "strength": "required",
              "description": "How a capability statement is intended to be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/capability-statement-kind|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.instantiates",
            "path": "CapabilityStatement.instantiates",
            "comment": "HL7 defines the following Services: [Terminology Service](terminology-service.html).    \n\nMany [Implementation Guides](http://fhir.org/guides/registry) define additional services.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.instantiates",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CapabilityStatement"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.imports",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.imports",
            "comment": "the contents of any directly or indirectly imported CapabilityStatements SHALL NOT overlap, i.e. they cannot refer to the same rest/resource, operations/name, searchparam/name, interaction/code, messaging/endpoint, document/mode pair.\n\nA capability statement that imports another CapabilityStatement automatically instantiates it too (though this is often not a very useful statement for the kinds of CapabilityStatements that are suitable for importing).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.imports",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CapabilityStatement"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.software",
            "path": "CapabilityStatement.software",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.software",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpb-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.software.id",
            "path": "CapabilityStatement.software.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.software.extension",
            "path": "CapabilityStatement.software.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.software.modifierExtension",
            "path": "CapabilityStatement.software.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.software.name",
            "path": "CapabilityStatement.software.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.software.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.software.version",
            "path": "CapabilityStatement.software.version",
            "comment": "If possible, a version should be specified, as statements are likely to be different for different versions of software.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.software.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.software.releaseDate",
            "path": "CapabilityStatement.software.releaseDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.software.releaseDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.implementation",
            "path": "CapabilityStatement.implementation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.implementation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpb-2",
              "cpb-15"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.implementation.id",
            "path": "CapabilityStatement.implementation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.implementation.extension",
            "path": "CapabilityStatement.implementation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.implementation.modifierExtension",
            "path": "CapabilityStatement.implementation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.implementation.description",
            "path": "CapabilityStatement.implementation.description",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.implementation.description",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.implementation.url",
            "path": "CapabilityStatement.implementation.url",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.implementation.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "url"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.implementation.custodian",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.implementation.custodian",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.implementation.custodian",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.fhirVersion",
            "path": "CapabilityStatement.fhirVersion",
            "comment": "Servers may implement multiple versions (see [Managing Multiple Versions](versioning.html), and the [$versions](capabilitystatement-operation-versions.html) operation). If they do, and the CapabilityStatement is requested from the server, then this fhirVersion will be either the version requested, or the server's default version.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.fhirVersion",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRVersion"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "All published FHIR Versions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/FHIR-version|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.format",
            "path": "CapabilityStatement.format",
            "comment": "\"xml\", \"json\" and \"ttl\" 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": "*",
            "base": {
              "path": "CapabilityStatement.format",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.patchFormat",
            "path": "CapabilityStatement.patchFormat",
            "comment": "At present, the patch mime types application/json-patch+json and application/xml-patch+xml are legal. Generally, if a server supports PATCH, it would be expected to support the patch formats and match the formats it supports, but this is not always possible or necessary.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.patchFormat",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.implementationGuide",
            "path": "CapabilityStatement.implementationGuide",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.implementationGuide",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ImplementationGuide"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest",
            "path": "CapabilityStatement.rest",
            "comment": "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": "*",
            "base": {
              "path": "CapabilityStatement.rest",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpb-1"
            ],
            "constraint": [
              {
                "key": "cpb-9",
                "severity": "error",
                "human": "A given resource can only be described once per RESTful mode.",
                "expression": "resource.select(type).isDistinct()",
                "xpath": "count(f:resource)=count(distinct-values(f:resource/f:type/@value))"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.id",
            "path": "CapabilityStatement.rest.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.extension",
            "path": "CapabilityStatement.rest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.modifierExtension",
            "path": "CapabilityStatement.rest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.mode",
            "path": "CapabilityStatement.rest.mode",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.mode",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RestfulCapabilityMode"
                }
              ],
              "strength": "required",
              "description": "The mode of a RESTful capability statement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/restful-capability-mode|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.documentation",
            "path": "CapabilityStatement.rest.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.security",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.security",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.security",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.security.id",
            "path": "CapabilityStatement.rest.security.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.security.extension",
            "path": "CapabilityStatement.rest.security.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.security.modifierExtension",
            "path": "CapabilityStatement.rest.security.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.security.cors",
            "path": "CapabilityStatement.rest.security.cors",
            "comment": "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",
            "base": {
              "path": "CapabilityStatement.rest.security.cors",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.security.service",
            "path": "CapabilityStatement.rest.security.service",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.security.service",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RestfulSecurityService"
                }
              ],
              "strength": "extensible",
              "description": "Types of security services used with FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/restful-security-service"
            }
          },
          {
            "id": "CapabilityStatement.rest.security.description",
            "path": "CapabilityStatement.rest.security.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.security.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource",
            "path": "CapabilityStatement.rest.resource",
            "comment": "Max of one repetition per resource type.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.resource",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "cpb-12",
                "severity": "error",
                "human": "Search parameter names must be unique in the context of a resource.",
                "expression": "searchParam.select(name).isDistinct()",
                "xpath": "count(f:searchParam)=count(distinct-values(f:searchParam/f:name/@value))"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.id",
            "path": "CapabilityStatement.rest.resource.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.extension",
            "path": "CapabilityStatement.rest.resource.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.modifierExtension",
            "path": "CapabilityStatement.rest.resource.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.type",
            "path": "CapabilityStatement.rest.resource.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.profile",
            "path": "CapabilityStatement.rest.resource.profile",
            "comment": "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",
            "base": {
              "path": "CapabilityStatement.rest.resource.profile",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.supportedProfile",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.supportedProfile",
            "comment": "Supported profiles are different than the profile that applies 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 do? 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).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.resource.supportedProfile",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.documentation",
            "path": "CapabilityStatement.rest.resource.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.interaction",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ResourceInteraction"
              }
            ],
            "path": "CapabilityStatement.rest.resource.interaction",
            "comment": "In general, a Resource will only appear in a CapabilityStatement if the server actually has some capabilities - e.g. there is at least one interaction supported. However interactions can be omitted to support summarization (_summary = true).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.resource.interaction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.interaction.id",
            "path": "CapabilityStatement.rest.resource.interaction.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.interaction.extension",
            "path": "CapabilityStatement.rest.resource.interaction.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.interaction.modifierExtension",
            "path": "CapabilityStatement.rest.resource.interaction.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.interaction.code",
            "path": "CapabilityStatement.rest.resource.interaction.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.interaction.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TypeRestfulInteraction"
                }
              ],
              "strength": "required",
              "description": "Operations supported by REST at the type or instance level.",
              "valueSet": "http://hl7.org/fhir/ValueSet/type-restful-interaction|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.interaction.documentation",
            "path": "CapabilityStatement.rest.resource.interaction.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.interaction.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.versioning",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.versioning",
            "comment": "If a server supports versionIds correctly, it SHOULD support vread too, but is not required to do so.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.versioning",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceVersionPolicy"
                }
              ],
              "strength": "required",
              "description": "How the system supports versioning for a resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/versioning-policy|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.readHistory",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.readHistory",
            "comment": "It is useful to support the vRead operation for current operations, even if past versions aren't available.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.readHistory",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.updateCreate",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.updateCreate",
            "comment": "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",
            "base": {
              "path": "CapabilityStatement.rest.resource.updateCreate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.conditionalCreate",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.conditionalCreate",
            "comment": "Conditional Create is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.conditionalCreate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.conditionalRead",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.conditionalRead",
            "comment": "Conditional Read is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.conditionalRead",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionalReadStatus"
                }
              ],
              "strength": "required",
              "description": "A code that indicates how the server supports conditional read.",
              "valueSet": "http://hl7.org/fhir/ValueSet/conditional-read-status|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.conditionalUpdate",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.conditionalUpdate",
            "comment": "Conditional Update is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.conditionalUpdate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.conditionalDelete",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.conditionalDelete",
            "comment": "Conditional Delete is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.conditionalDelete",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionalDeleteStatus"
                }
              ],
              "strength": "required",
              "description": "A code that indicates how the server supports conditional delete.",
              "valueSet": "http://hl7.org/fhir/ValueSet/conditional-delete-status|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.referencePolicy",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.referencePolicy",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.resource.referencePolicy",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ReferenceHandlingPolicy"
                }
              ],
              "strength": "required",
              "description": "A set of flags that defines how references are supported.",
              "valueSet": "http://hl7.org/fhir/ValueSet/reference-handling-policy|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.searchInclude",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.searchInclude",
            "comment": "If this list is empty, the server does not support includes.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.resource.searchInclude",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.searchRevInclude",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.searchRevInclude",
            "comment": "If this list is empty, the server does not support reverse includes.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.resource.searchRevInclude",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam",
            "path": "CapabilityStatement.rest.resource.searchParam",
            "comment": "The search parameters should include the control search parameters such as _sort, _count, etc. that also apply to this resource (though many will be listed at [CapabilityStatement.rest.searchParam](capabilitystatement-definitions.html#CapabilityStatement.rest.searchParam)). The behavior of some search parameters may be further described by other code or extension elements, or narrative within the capability statement or linked [SearchParameter](searchparameter.html#) definitions.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.resource.searchParam",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.id",
            "path": "CapabilityStatement.rest.resource.searchParam.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.extension",
            "path": "CapabilityStatement.rest.resource.searchParam.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.modifierExtension",
            "path": "CapabilityStatement.rest.resource.searchParam.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.name",
            "path": "CapabilityStatement.rest.resource.searchParam.name",
            "comment": "Parameter names cannot overlap with standard parameter names, and standard parameters cannot be redefined.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.searchParam.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.definition",
            "path": "CapabilityStatement.rest.resource.searchParam.definition",
            "comment": "This SHOULD be present, and matches refers to a SearchParameter by its canonical URL. If systems wish to document their support for modifiers, comparators, target resource types, and chained parameters, they should do using a search parameter resource. This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.searchParam.definition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SearchParameter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.type",
            "path": "CapabilityStatement.rest.resource.searchParam.type",
            "comment": "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 capability statement.  It SHALL be the same as the type in the search parameter definition.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.searchParam.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchParamType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "Data types allowed to be used for search parameters.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-param-type|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.documentation",
            "path": "CapabilityStatement.rest.resource.searchParam.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.searchParam.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.operation",
            "path": "CapabilityStatement.rest.resource.operation",
            "comment": "Operations linked from CapabilityStatement.rest.resource.operation must have OperationDefinition.type = true or OperationDefinition.instance = true.    \n\nIf an operation that is listed in multiple CapabilityStatement.rest.resource.operation (e.g. for different resource types), then clients should understand that the operation is only supported on the specified resource types, and that may be a subset of those listed in OperationDefinition.resource.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.resource.operation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.operation.id",
            "path": "CapabilityStatement.rest.resource.operation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.operation.extension",
            "path": "CapabilityStatement.rest.resource.operation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.resource.operation.modifierExtension",
            "path": "CapabilityStatement.rest.resource.operation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.operation.name",
            "path": "CapabilityStatement.rest.resource.operation.name",
            "comment": "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. The name does not include the \"$\" portion that is always included in the URL.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.operation.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.operation.definition",
            "path": "CapabilityStatement.rest.resource.operation.definition",
            "comment": "This can be used to build an HTML form to invoke the operation, for instance.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.operation.definition",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.operation.documentation",
            "path": "CapabilityStatement.rest.resource.operation.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.resource.operation.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.interaction",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SystemInteraction"
              }
            ],
            "path": "CapabilityStatement.rest.interaction",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.interaction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.interaction.id",
            "path": "CapabilityStatement.rest.interaction.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.interaction.extension",
            "path": "CapabilityStatement.rest.interaction.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.interaction.modifierExtension",
            "path": "CapabilityStatement.rest.interaction.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.interaction.code",
            "path": "CapabilityStatement.rest.interaction.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.interaction.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SystemRestfulInteraction"
                }
              ],
              "strength": "required",
              "description": "Operations supported by REST at the system level.",
              "valueSet": "http://hl7.org/fhir/ValueSet/system-restful-interaction|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.interaction.documentation",
            "path": "CapabilityStatement.rest.interaction.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.rest.interaction.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.searchParam",
            "path": "CapabilityStatement.rest.searchParam",
            "comment": "Typically, the only search parameters supported for all searches are those that apply to all resources - tags, profiles, text search etc. These search parameters should include the control search parameters such as _sort, _count, etc. that also apply to this resource (though many will be listed at [CapabilityStatement.rest.searchParam](capabilitystatement-definitions.html#CapabilityStatement.rest.searchParam)). The behavior of some search parameters may be further described by other code or extension elements, or narrative within the capability statement or linked [SearchParameter](searchparameter.html#) definitions.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.searchParam",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#CapabilityStatement.rest.resource.searchParam",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.rest.operation",
            "path": "CapabilityStatement.rest.operation",
            "comment": "CapabilityStatement.rest.operation is for operations invoked at the system level, or for operations that are supported across multiple resource types. Operations linked from CapabilityStatement.rest.operation must have OperationDefinition.system = true, or more than one Operation.resource.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.operation",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#CapabilityStatement.rest.resource.operation",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.compartment",
            "path": "CapabilityStatement.rest.compartment",
            "comment": "At present, the only defined compartments are at [CompartmentDefinition](compartmentdefinition.html).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.rest.compartment",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CompartmentDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.messaging",
            "comment": "Multiple repetitions allow the documentation of multiple endpoints per solution.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.messaging",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpb-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.messaging.id",
            "path": "CapabilityStatement.messaging.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging.extension",
            "path": "CapabilityStatement.messaging.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging.modifierExtension",
            "path": "CapabilityStatement.messaging.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.messaging.endpoint",
            "path": "CapabilityStatement.messaging.endpoint",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.messaging.endpoint",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging.endpoint.id",
            "path": "CapabilityStatement.messaging.endpoint.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging.endpoint.extension",
            "path": "CapabilityStatement.messaging.endpoint.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging.endpoint.modifierExtension",
            "path": "CapabilityStatement.messaging.endpoint.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.messaging.endpoint.protocol",
            "path": "CapabilityStatement.messaging.endpoint.protocol",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.messaging.endpoint.protocol",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MessageTransport"
                }
              ],
              "strength": "extensible",
              "description": "The protocol used for message transport.",
              "valueSet": "http://hl7.org/fhir/ValueSet/message-transport"
            }
          },
          {
            "id": "CapabilityStatement.messaging.endpoint.address",
            "path": "CapabilityStatement.messaging.endpoint.address",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.messaging.endpoint.address",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "url"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging.reliableCache",
            "path": "CapabilityStatement.messaging.reliableCache",
            "comment": "If this value is missing then the application does not implement (receiver) or depend on (sender) reliable messaging.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.messaging.reliableCache",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging.documentation",
            "path": "CapabilityStatement.messaging.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.messaging.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging.supportedMessage",
            "path": "CapabilityStatement.messaging.supportedMessage",
            "comment": "This is a proposed alternative to the messaging.event structure.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.messaging.supportedMessage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.messaging.supportedMessage.id",
            "path": "CapabilityStatement.messaging.supportedMessage.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging.supportedMessage.extension",
            "path": "CapabilityStatement.messaging.supportedMessage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.messaging.supportedMessage.modifierExtension",
            "path": "CapabilityStatement.messaging.supportedMessage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.messaging.supportedMessage.mode",
            "path": "CapabilityStatement.messaging.supportedMessage.mode",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.messaging.supportedMessage.mode",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EventCapabilityMode"
                }
              ],
              "strength": "required",
              "description": "The mode of a message capability statement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/event-capability-mode|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.messaging.supportedMessage.definition",
            "path": "CapabilityStatement.messaging.supportedMessage.definition",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.messaging.supportedMessage.definition",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.document",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.document",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CapabilityStatement.document",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpb-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.document.id",
            "path": "CapabilityStatement.document.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.document.extension",
            "path": "CapabilityStatement.document.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.document.modifierExtension",
            "path": "CapabilityStatement.document.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.document.mode",
            "path": "CapabilityStatement.document.mode",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.document.mode",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentMode"
                }
              ],
              "strength": "required",
              "description": "Whether the application produces or consumes documents.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-mode|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.document.documentation",
            "path": "CapabilityStatement.document.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.document.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CapabilityStatement.document.profile",
            "path": "CapabilityStatement.document.profile",
            "comment": "The profile is actually on the Bundle.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CapabilityStatement.document.profile",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "CapabilityStatement",
            "path": "CapabilityStatement",
            "comment": "Applications may implement multiple versions (see [Managing Multiple Versions](versioning.html), and the [$versions](capabilitystatement-operation-versions.html) operation). If they do, then a CapabilityStatement describes the system's support for a particular version of FHIR, and the server will have multiple statements, one for each version.",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "cpb-7",
                "severity": "error",
                "human": "The set of documents must be unique by the combination of profile and mode.",
                "expression": "document.select(profile&mode).isDistinct()",
                "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))"
              },
              {
                "key": "cpb-16",
                "severity": "error",
                "human": "If kind = requirements, implementation and software must be absent",
                "expression": "(kind!='requirements') or (implementation.exists().not() and software.exists().not())",
                "xpath": "not(f:kind/@value='instance') or (not(exists(f:implementation)) and not(exists(f:software)))"
              },
              {
                "key": "cpb-15",
                "severity": "error",
                "human": "If kind = capability, implementation must be absent, software must be present",
                "expression": "(kind != 'capability') or (implementation.exists().not() and software.exists())",
                "xpath": " not(f:kind/@value='instance') or (not(exists(f:implementation)) and exists(f:software))"
              },
              {
                "key": "cpb-3",
                "severity": "error",
                "human": "Messaging end-point is required (and is only permitted) when a statement is for an implementation.",
                "expression": "messaging.endpoint.empty() or kind = 'instance'",
                "xpath": "not(exists(f:messaging/f:endpoint)) or f:kind/@value = 'instance'"
              },
              {
                "key": "cpb-14",
                "severity": "error",
                "human": "If kind = instance, implementation must be present and software may be present",
                "expression": "(kind != 'instance') or implementation.exists()",
                "xpath": "not(f:kind/@value='instance') or exists(f:implementation)"
              },
              {
                "key": "cpb-2",
                "severity": "error",
                "human": "A Capability Statement SHALL have at least one of description, software, or implementation element.",
                "expression": "(description.count() + software.count() + implementation.count()) > 0",
                "xpath": "count(f:software | f:implementation | f:description) > 0"
              },
              {
                "key": "cpb-1",
                "severity": "error",
                "human": "A Capability Statement SHALL have at least one of REST, messaging or document element.",
                "expression": "rest.exists() or messaging.exists() or document.exists()",
                "xpath": "exists(f:rest) or exists(f:messaging) or exists(f:document)"
              },
              {
                "key": "cpb-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "CapabilityStatement.url",
            "path": "CapabilityStatement.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.version",
            "path": "CapabilityStatement.version",
            "comment": "There may be different capability statement instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the capability statement with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.name",
            "path": "CapabilityStatement.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.title",
            "path": "CapabilityStatement.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.status",
            "path": "CapabilityStatement.status",
            "comment": "Allows filtering of capability statements that are appropriate for use versus not.This is not intended for use with actual capability statements, but where capability statements are used to describe possible or desired systems.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.experimental",
            "path": "CapabilityStatement.experimental",
            "comment": "Allows filtering of capability statements that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.date",
            "path": "CapabilityStatement.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the capability statement. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.publisher",
            "path": "CapabilityStatement.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the capability statement is the organization or individual primarily responsible for the maintenance and upkeep of the capability statement. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the capability statement. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.contact",
            "path": "CapabilityStatement.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.description",
            "path": "CapabilityStatement.description",
            "comment": "This description can be used to capture details such as why the capability statement was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the capability statement as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the capability statement is presumed to be the predominant language in the place the capability statement was created).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": "markdown"
              }
            ],
            "condition": [
              "cpb-2"
            ]
          },
          {
            "id": "CapabilityStatement.useContext",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.jurisdiction",
            "path": "CapabilityStatement.jurisdiction",
            "comment": "It may be possible for the capability statement to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "CapabilityStatement.purpose",
            "path": "CapabilityStatement.purpose",
            "comment": "This element does not describe the usage of the capability statement. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this capability statement.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.copyright",
            "path": "CapabilityStatement.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.kind",
            "path": "CapabilityStatement.kind",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "cpb-15"
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CapabilityStatementKind"
                }
              ],
              "strength": "required",
              "description": "How a capability statement is intended to be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/capability-statement-kind|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.instantiates",
            "path": "CapabilityStatement.instantiates",
            "comment": "HL7 defines the following Services: [Terminology Service](terminology-service.html).    \n\nMany [Implementation Guides](http://fhir.org/guides/registry) define additional services.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CapabilityStatement"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.imports",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.imports",
            "comment": "the contents of any directly or indirectly imported CapabilityStatements SHALL NOT overlap, i.e. they cannot refer to the same rest/resource, operations/name, searchparam/name, interaction/code, messaging/endpoint, document/mode pair.\n\nA capability statement that imports another CapabilityStatement automatically instantiates it too (though this is often not a very useful statement for the kinds of CapabilityStatements that are suitable for importing).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CapabilityStatement"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.software",
            "path": "CapabilityStatement.software",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpb-2"
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.software.name",
            "path": "CapabilityStatement.software.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.software.version",
            "path": "CapabilityStatement.software.version",
            "comment": "If possible, a 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
          },
          {
            "id": "CapabilityStatement.software.releaseDate",
            "path": "CapabilityStatement.software.releaseDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.implementation",
            "path": "CapabilityStatement.implementation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpb-2",
              "cpb-15"
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.implementation.description",
            "path": "CapabilityStatement.implementation.description",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.implementation.url",
            "path": "CapabilityStatement.implementation.url",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "url"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.implementation.custodian",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.implementation.custodian",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.fhirVersion",
            "path": "CapabilityStatement.fhirVersion",
            "comment": "Servers may implement multiple versions (see [Managing Multiple Versions](versioning.html), and the [$versions](capabilitystatement-operation-versions.html) operation). If they do, and the CapabilityStatement is requested from the server, then this fhirVersion will be either the version requested, or the server's default version.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRVersion"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "All published FHIR Versions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/FHIR-version|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.format",
            "path": "CapabilityStatement.format",
            "comment": "\"xml\", \"json\" and \"ttl\" 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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.patchFormat",
            "path": "CapabilityStatement.patchFormat",
            "comment": "At present, the patch mime types application/json-patch+json and application/xml-patch+xml are legal. Generally, if a server supports PATCH, it would be expected to support the patch formats and match the formats it supports, but this is not always possible or necessary.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.implementationGuide",
            "path": "CapabilityStatement.implementationGuide",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ImplementationGuide"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest",
            "path": "CapabilityStatement.rest",
            "comment": "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": [
              "cpb-1"
            ],
            "constraint": [
              {
                "key": "cpb-9",
                "severity": "error",
                "human": "A given resource can only be described once per RESTful mode.",
                "expression": "resource.select(type).isDistinct()",
                "xpath": "count(f:resource)=count(distinct-values(f:resource/f:type/@value))"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.mode",
            "path": "CapabilityStatement.rest.mode",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RestfulCapabilityMode"
                }
              ],
              "strength": "required",
              "description": "The mode of a RESTful capability statement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/restful-capability-mode|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.documentation",
            "path": "CapabilityStatement.rest.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.security",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.security",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.security.cors",
            "path": "CapabilityStatement.rest.security.cors",
            "comment": "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"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.security.service",
            "path": "CapabilityStatement.rest.security.service",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RestfulSecurityService"
                }
              ],
              "strength": "extensible",
              "description": "Types of security services used with FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/restful-security-service"
            }
          },
          {
            "id": "CapabilityStatement.rest.security.description",
            "path": "CapabilityStatement.rest.security.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource",
            "path": "CapabilityStatement.rest.resource",
            "comment": "Max of one repetition per resource type.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "cpb-12",
                "severity": "error",
                "human": "Search parameter names must be unique in the context of a resource.",
                "expression": "searchParam.select(name).isDistinct()",
                "xpath": "count(f:searchParam)=count(distinct-values(f:searchParam/f:name/@value))"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.type",
            "path": "CapabilityStatement.rest.resource.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.profile",
            "path": "CapabilityStatement.rest.resource.profile",
            "comment": "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": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.supportedProfile",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.supportedProfile",
            "comment": "Supported profiles are different than the profile that applies 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 do? 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).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.documentation",
            "path": "CapabilityStatement.rest.resource.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.interaction",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ResourceInteraction"
              }
            ],
            "path": "CapabilityStatement.rest.resource.interaction",
            "comment": "In general, a Resource will only appear in a CapabilityStatement if the server actually has some capabilities - e.g. there is at least one interaction supported. However interactions can be omitted to support summarization (_summary = true).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.interaction.code",
            "path": "CapabilityStatement.rest.resource.interaction.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TypeRestfulInteraction"
                }
              ],
              "strength": "required",
              "description": "Operations supported by REST at the type or instance level.",
              "valueSet": "http://hl7.org/fhir/ValueSet/type-restful-interaction|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.interaction.documentation",
            "path": "CapabilityStatement.rest.resource.interaction.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.versioning",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.versioning",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceVersionPolicy"
                }
              ],
              "strength": "required",
              "description": "How the system supports versioning for a resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/versioning-policy|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.readHistory",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.readHistory",
            "comment": "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"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.updateCreate",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.updateCreate",
            "comment": "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"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.conditionalCreate",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.conditionalCreate",
            "comment": "Conditional Create is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.conditionalRead",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.conditionalRead",
            "comment": "Conditional Read is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionalReadStatus"
                }
              ],
              "strength": "required",
              "description": "A code that indicates how the server supports conditional read.",
              "valueSet": "http://hl7.org/fhir/ValueSet/conditional-read-status|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.conditionalUpdate",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.conditionalUpdate",
            "comment": "Conditional Update is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.conditionalDelete",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.conditionalDelete",
            "comment": "Conditional Delete is mainly appropriate for interface engine scripts converting from other formats, such as v2.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionalDeleteStatus"
                }
              ],
              "strength": "required",
              "description": "A code that indicates how the server supports conditional delete.",
              "valueSet": "http://hl7.org/fhir/ValueSet/conditional-delete-status|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.referencePolicy",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.referencePolicy",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ReferenceHandlingPolicy"
                }
              ],
              "strength": "required",
              "description": "A set of flags that defines how references are supported.",
              "valueSet": "http://hl7.org/fhir/ValueSet/reference-handling-policy|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.searchInclude",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.searchInclude",
            "comment": "If this list is empty, the server does not support includes.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.searchRevInclude",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.rest.resource.searchRevInclude",
            "comment": "If this list is empty, the server does not support reverse includes.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam",
            "path": "CapabilityStatement.rest.resource.searchParam",
            "comment": "The search parameters should include the control search parameters such as _sort, _count, etc. that also apply to this resource (though many will be listed at [CapabilityStatement.rest.searchParam](capabilitystatement-definitions.html#CapabilityStatement.rest.searchParam)). The behavior of some search parameters may be further described by other code or extension elements, or narrative within the capability statement or linked [SearchParameter](searchparameter.html#) definitions.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.name",
            "path": "CapabilityStatement.rest.resource.searchParam.name",
            "comment": "Parameter names cannot overlap with standard parameter names, and standard parameters cannot be redefined.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.definition",
            "path": "CapabilityStatement.rest.resource.searchParam.definition",
            "comment": "This SHOULD be present, and matches refers to a SearchParameter by its canonical URL. If systems wish to document their support for modifiers, comparators, target resource types, and chained parameters, they should do using a search parameter resource. This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SearchParameter"
                ]
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.type",
            "path": "CapabilityStatement.rest.resource.searchParam.type",
            "comment": "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 capability statement.  It SHALL be the same as the type in the search parameter definition.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchParamType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "Data types allowed to be used for search parameters.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-param-type|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.resource.searchParam.documentation",
            "path": "CapabilityStatement.rest.resource.searchParam.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.resource.operation",
            "path": "CapabilityStatement.rest.resource.operation",
            "comment": "Operations linked from CapabilityStatement.rest.resource.operation must have OperationDefinition.type = true or OperationDefinition.instance = true.    \n\nIf an operation that is listed in multiple CapabilityStatement.rest.resource.operation (e.g. for different resource types), then clients should understand that the operation is only supported on the specified resource types, and that may be a subset of those listed in OperationDefinition.resource.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.operation.name",
            "path": "CapabilityStatement.rest.resource.operation.name",
            "comment": "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. The name does not include the \"$\" portion that is always included in the URL.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.operation.definition",
            "path": "CapabilityStatement.rest.resource.operation.definition",
            "comment": "This can be used to build an HTML form to invoke the operation, for instance.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.resource.operation.documentation",
            "path": "CapabilityStatement.rest.resource.operation.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.interaction",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SystemInteraction"
              }
            ],
            "path": "CapabilityStatement.rest.interaction",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.interaction.code",
            "path": "CapabilityStatement.rest.interaction.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SystemRestfulInteraction"
                }
              ],
              "strength": "required",
              "description": "Operations supported by REST at the system level.",
              "valueSet": "http://hl7.org/fhir/ValueSet/system-restful-interaction|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.rest.interaction.documentation",
            "path": "CapabilityStatement.rest.interaction.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.rest.searchParam",
            "path": "CapabilityStatement.rest.searchParam",
            "comment": "Typically, the only search parameters supported for all searches are those that apply to all resources - tags, profiles, text search etc. These search parameters should include the control search parameters such as _sort, _count, etc. that also apply to this resource (though many will be listed at [CapabilityStatement.rest.searchParam](capabilitystatement-definitions.html#CapabilityStatement.rest.searchParam)). The behavior of some search parameters may be further described by other code or extension elements, or narrative within the capability statement or linked [SearchParameter](searchparameter.html#) definitions.",
            "min": 0,
            "max": "*",
            "contentReference": "#CapabilityStatement.rest.resource.searchParam"
          },
          {
            "id": "CapabilityStatement.rest.operation",
            "path": "CapabilityStatement.rest.operation",
            "comment": "CapabilityStatement.rest.operation is for operations invoked at the system level, or for operations that are supported across multiple resource types. Operations linked from CapabilityStatement.rest.operation must have OperationDefinition.system = true, or more than one Operation.resource.",
            "min": 0,
            "max": "*",
            "contentReference": "#CapabilityStatement.rest.resource.operation",
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.rest.compartment",
            "path": "CapabilityStatement.rest.compartment",
            "comment": "At present, the only defined compartments are at [CompartmentDefinition](compartmentdefinition.html).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CompartmentDefinition"
                ]
              }
            ]
          },
          {
            "id": "CapabilityStatement.messaging",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.messaging",
            "comment": "Multiple repetitions allow the documentation of multiple endpoints per solution.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpb-1"
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.messaging.endpoint",
            "path": "CapabilityStatement.messaging.endpoint",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CapabilityStatement.messaging.endpoint.protocol",
            "path": "CapabilityStatement.messaging.endpoint.protocol",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MessageTransport"
                }
              ],
              "strength": "extensible",
              "description": "The protocol used for message transport.",
              "valueSet": "http://hl7.org/fhir/ValueSet/message-transport"
            }
          },
          {
            "id": "CapabilityStatement.messaging.endpoint.address",
            "path": "CapabilityStatement.messaging.endpoint.address",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "url"
              }
            ]
          },
          {
            "id": "CapabilityStatement.messaging.reliableCache",
            "path": "CapabilityStatement.messaging.reliableCache",
            "comment": "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"
              }
            ]
          },
          {
            "id": "CapabilityStatement.messaging.documentation",
            "path": "CapabilityStatement.messaging.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.messaging.supportedMessage",
            "path": "CapabilityStatement.messaging.supportedMessage",
            "comment": "This is a proposed alternative to the messaging.event structure.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.messaging.supportedMessage.mode",
            "path": "CapabilityStatement.messaging.supportedMessage.mode",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EventCapabilityMode"
                }
              ],
              "strength": "required",
              "description": "The mode of a message capability statement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/event-capability-mode|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.messaging.supportedMessage.definition",
            "path": "CapabilityStatement.messaging.supportedMessage.definition",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.document",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CapabilityStatement.document",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpb-1"
            ],
            "isSummary": true
          },
          {
            "id": "CapabilityStatement.document.mode",
            "path": "CapabilityStatement.document.mode",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentMode"
                }
              ],
              "strength": "required",
              "description": "Whether the application produces or consumes documents.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-mode|4.0.1"
            }
          },
          {
            "id": "CapabilityStatement.document.documentation",
            "path": "CapabilityStatement.document.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CapabilityStatement.document.profile",
            "path": "CapabilityStatement.document.profile",
            "comment": "The profile is actually on the Bundle.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/CarePlan",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "CarePlan",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Care Provision"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/CarePlan",
      "version": "4.0.1",
      "name": "CarePlan",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "CarePlan",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "CarePlan",
            "path": "CarePlan",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.id",
            "path": "CarePlan.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.meta",
            "path": "CarePlan.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.implicitRules",
            "path": "CarePlan.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "CarePlan.language",
            "path": "CarePlan.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CarePlan.text",
            "path": "CarePlan.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.contained",
            "path": "CarePlan.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.extension",
            "path": "CarePlan.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.modifierExtension",
            "path": "CarePlan.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "CarePlan.identifier",
            "path": "CarePlan.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.instantiatesCanonical",
            "path": "CarePlan.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.instantiatesCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire",
                  "http://hl7.org/fhir/StructureDefinition/Measure",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.instantiatesUri",
            "path": "CarePlan.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.instantiatesUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.basedOn",
            "path": "CarePlan.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.replaces",
            "path": "CarePlan.replaces",
            "comment": "The replacement could be because the initial care plan was immediately rejected (due to an issue) or because the previous care plan was completed, but the need for the action described by the care plan remains ongoing.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.replaces",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.partOf",
            "path": "CarePlan.partOf",
            "comment": "Each care plan is an independent request, such that having a care plan be part of another care plan can cause issues with cascading statuses.  As such, this element is still being discussed.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.status",
            "path": "CarePlan.status",
            "comment": "The unknown code is not to be used to convey other statuses.  The unknown code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the care plan.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that marks the plan as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CarePlan.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "CarePlan.intent",
            "path": "CarePlan.intent",
            "comment": "This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CarePlan.intent",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request\"",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanIntent"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the degree of authority/intentionality associated with a care plan.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-intent|4.0.1"
            }
          },
          {
            "id": "CarePlan.category",
            "path": "CarePlan.category",
            "comment": "There may be multiple axes of categorization and one plan may serve multiple purposes.  In some cases, this may be redundant with references to CarePlan.concern.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanCategory"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-category"
            }
          },
          {
            "id": "CarePlan.title",
            "path": "CarePlan.title",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.description",
            "path": "CarePlan.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.subject",
            "path": "CarePlan.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CarePlan.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.encounter",
            "path": "CarePlan.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. CarePlan activities conducted as a result of the care plan may well occur as part of other encounters.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.period",
            "path": "CarePlan.period",
            "comment": "Any activities scheduled as part of the plan should be constrained to the specified period regardless of whether the activities are planned within a single encounter/episode or across multiple encounters/episodes (e.g. the longitudinal management of a chronic condition).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.created",
            "path": "CarePlan.created",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.created",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.author",
            "path": "CarePlan.author",
            "comment": "The author may also be a contributor.  For example, an organization can be an author, but not listed as a contributor.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.contributor",
            "path": "CarePlan.contributor",
            "comment": "Collaborative care plans may have multiple contributors.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.contributor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.careTeam",
            "path": "CarePlan.careTeam",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.careTeam",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.addresses",
            "path": "CarePlan.addresses",
            "comment": "When the diagnosis is related to an allergy or intolerance, the Condition and AllergyIntolerance resources can both be used. However, to be actionable for decision support, using Condition alone is not sufficient as the allergy or intolerance condition needs to be represented as an AllergyIntolerance.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.addresses",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CarePlan.supportingInfo",
            "path": "CarePlan.supportingInfo",
            "comment": "Use \"concern\" to identify specific conditions addressed by the care plan.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.supportingInfo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.goal",
            "path": "CarePlan.goal",
            "comment": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.goal",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Goal"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity",
            "path": "CarePlan.activity",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.activity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "cpl-3",
                "severity": "error",
                "human": "Provide a reference or detail, not both",
                "expression": "detail.empty() or reference.empty()",
                "xpath": "not(exists(f:detail)) or not(exists(f:reference))"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.id",
            "path": "CarePlan.activity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.extension",
            "path": "CarePlan.activity.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.modifierExtension",
            "path": "CarePlan.activity.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CarePlan.activity.outcomeCodeableConcept",
            "path": "CarePlan.activity.outcomeCodeableConcept",
            "comment": "Note that this should not duplicate the activity status (e.g. completed or in progress).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.activity.outcomeCodeableConcept",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanActivityOutcome"
                }
              ],
              "strength": "example",
              "description": "Identifies the results of the activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-outcome"
            }
          },
          {
            "id": "CarePlan.activity.outcomeReference",
            "path": "CarePlan.activity.outcomeReference",
            "comment": "The activity outcome is independent of the outcome of the related goal(s).  For example, if the goal is to achieve a target body weight of 150 lbs and an activity is defined to diet, then the activity outcome could be calories consumed whereas the goal outcome is an observation for the actual body weight measured.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.activity.outcomeReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.progress",
            "path": "CarePlan.activity.progress",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.activity.progress",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.reference",
            "path": "CarePlan.activity.reference",
            "comment": "Standard extension exists ([resource-pertainsToGoal](extension-resource-pertainstogoal.html)) that allows goals to be referenced from any of the referenced resources in CarePlan.activity.reference.  \rThe goal should be visible when the resource referenced by CarePlan.activity.reference is viewed independently from the CarePlan.  Requests that are pointed to by a CarePlan using this element should *not* point to this CarePlan using the \"basedOn\" element.  i.e. Requests that are part of a CarePlan are not \"based on\" the CarePlan.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.reference",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Appointment",
                  "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
                  "http://hl7.org/fhir/StructureDefinition/Task",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/VisionPrescription",
                  "http://hl7.org/fhir/StructureDefinition/RequestGroup"
                ]
              }
            ],
            "condition": [
              "cpl-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail",
            "path": "CarePlan.activity.detail",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpl-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.id",
            "path": "CarePlan.activity.detail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.extension",
            "path": "CarePlan.activity.detail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.modifierExtension",
            "path": "CarePlan.activity.detail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CarePlan.activity.detail.kind",
            "path": "CarePlan.activity.detail.kind",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail.kind",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanActivityKind"
                }
              ],
              "strength": "required",
              "description": "Resource types defined as part of FHIR that can be represented as in-line definitions of a care plan activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-kind|4.0.1"
            }
          },
          {
            "id": "CarePlan.activity.detail.instantiatesCanonical",
            "path": "CarePlan.activity.detail.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.activity.detail.instantiatesCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire",
                  "http://hl7.org/fhir/StructureDefinition/Measure",
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.instantiatesUri",
            "path": "CarePlan.activity.detail.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.activity.detail.instantiatesUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.code",
            "path": "CarePlan.activity.detail.code",
            "comment": "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use \"prohibited\" instead.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanActivityType"
                }
              ],
              "strength": "example",
              "description": "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code"
            }
          },
          {
            "id": "CarePlan.activity.detail.reasonCode",
            "path": "CarePlan.activity.detail.reasonCode",
            "comment": "This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.activity.detail.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanActivityReason"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "CarePlan.activity.detail.reasonReference",
            "path": "CarePlan.activity.detail.reasonReference",
            "comment": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.activity.detail.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.goal",
            "path": "CarePlan.activity.detail.goal",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.activity.detail.goal",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Goal"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.status",
            "path": "CarePlan.activity.detail.status",
            "comment": "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.  \nThe unknown code is not to be used to convey other statuses.  The unknown code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the activity.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the activity should not be treated as valid",
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanActivityStatus"
                }
              ],
              "strength": "required",
              "description": "Codes that reflect the current state of a care plan activity within its overall life cycle.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-status|4.0.1"
            }
          },
          {
            "id": "CarePlan.activity.detail.statusReason",
            "path": "CarePlan.activity.detail.statusReason",
            "comment": "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",
            "base": {
              "path": "CarePlan.activity.detail.statusReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.doNotPerform",
            "path": "CarePlan.activity.detail.doNotPerform",
            "comment": "This element is labeled as a modifier because it marks an activity as an activity that is not to be performed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail.doNotPerform",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If missing indicates that the described activity is one that should be engaged in when following the plan.",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If true this element negates the specified action. For example, instead of a request for a procedure, it is a request for the procedure to not occur.",
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.scheduled[x]",
            "path": "CarePlan.activity.detail.scheduled[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail.scheduled[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Timing"
              },
              {
                "code": "Period"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.location",
            "path": "CarePlan.activity.detail.location",
            "comment": "May reference a specific clinical location or may identify a type of location.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.performer",
            "path": "CarePlan.activity.detail.performer",
            "comment": "A performer MAY also be a participant in the care plan.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.activity.detail.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.product[x]",
            "path": "CarePlan.activity.detail.product[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail.product[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanProduct"
                }
              ],
              "strength": "example",
              "description": "A product supplied or administered as part of a care plan activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "CarePlan.activity.detail.dailyAmount",
            "path": "CarePlan.activity.detail.dailyAmount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail.dailyAmount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.quantity",
            "path": "CarePlan.activity.detail.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.activity.detail.description",
            "path": "CarePlan.activity.detail.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CarePlan.activity.detail.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CarePlan.note",
            "path": "CarePlan.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CarePlan.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "CarePlan",
            "path": "CarePlan",
            "min": 0,
            "max": "*"
          },
          {
            "id": "CarePlan.identifier",
            "path": "CarePlan.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.instantiatesCanonical",
            "path": "CarePlan.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire",
                  "http://hl7.org/fhir/StructureDefinition/Measure",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.instantiatesUri",
            "path": "CarePlan.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.basedOn",
            "path": "CarePlan.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.replaces",
            "path": "CarePlan.replaces",
            "comment": "The replacement could be because the initial care plan was immediately rejected (due to an issue) or because the previous care plan was completed, but the need for the action described by the care plan remains ongoing.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.partOf",
            "path": "CarePlan.partOf",
            "comment": "Each care plan is an independent request, such that having a care plan be part of another care plan can cause issues with cascading statuses.  As such, this element is still being discussed.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.status",
            "path": "CarePlan.status",
            "comment": "The unknown code is not to be used to convey other statuses.  The unknown code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the care plan.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that marks the plan as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "CarePlan.intent",
            "path": "CarePlan.intent",
            "comment": "This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request\"",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanIntent"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the degree of authority/intentionality associated with a care plan.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-intent|4.0.1"
            }
          },
          {
            "id": "CarePlan.category",
            "path": "CarePlan.category",
            "comment": "There may be multiple axes of categorization and one plan may serve multiple purposes.  In some cases, this may be redundant with references to CarePlan.concern.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanCategory"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-category"
            }
          },
          {
            "id": "CarePlan.title",
            "path": "CarePlan.title",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.description",
            "path": "CarePlan.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.subject",
            "path": "CarePlan.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.encounter",
            "path": "CarePlan.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. CarePlan activities conducted as a result of the care plan may well occur as part of other encounters.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.period",
            "path": "CarePlan.period",
            "comment": "Any activities scheduled as part of the plan should be constrained to the specified period regardless of whether the activities are planned within a single encounter/episode or across multiple encounters/episodes (e.g. the longitudinal management of a chronic condition).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.created",
            "path": "CarePlan.created",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.author",
            "path": "CarePlan.author",
            "comment": "The author may also be a contributor.  For example, an organization can be an author, but not listed as a contributor.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.contributor",
            "path": "CarePlan.contributor",
            "comment": "Collaborative care plans may have multiple contributors.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.careTeam",
            "path": "CarePlan.careTeam",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.addresses",
            "path": "CarePlan.addresses",
            "comment": "When the diagnosis is related to an allergy or intolerance, the Condition and AllergyIntolerance resources can both be used. However, to be actionable for decision support, using Condition alone is not sufficient as the allergy or intolerance condition needs to be represented as an AllergyIntolerance.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CarePlan.supportingInfo",
            "path": "CarePlan.supportingInfo",
            "comment": "Use \"concern\" to identify specific conditions addressed by the care plan.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.goal",
            "path": "CarePlan.goal",
            "comment": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Goal"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.activity",
            "path": "CarePlan.activity",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "cpl-3",
                "severity": "error",
                "human": "Provide a reference or detail, not both",
                "expression": "detail.empty() or reference.empty()",
                "xpath": "not(exists(f:detail)) or not(exists(f:reference))"
              }
            ]
          },
          {
            "id": "CarePlan.activity.outcomeCodeableConcept",
            "path": "CarePlan.activity.outcomeCodeableConcept",
            "comment": "Note that this should not duplicate the activity status (e.g. completed or in progress).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanActivityOutcome"
                }
              ],
              "strength": "example",
              "description": "Identifies the results of the activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-outcome"
            }
          },
          {
            "id": "CarePlan.activity.outcomeReference",
            "path": "CarePlan.activity.outcomeReference",
            "comment": "The activity outcome is independent of the outcome of the related goal(s).  For example, if the goal is to achieve a target body weight of 150 lbs and an activity is defined to diet, then the activity outcome could be calories consumed whereas the goal outcome is an observation for the actual body weight measured.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.activity.progress",
            "path": "CarePlan.activity.progress",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "CarePlan.activity.reference",
            "path": "CarePlan.activity.reference",
            "comment": "Standard extension exists ([resource-pertainsToGoal](extension-resource-pertainstogoal.html)) that allows goals to be referenced from any of the referenced resources in CarePlan.activity.reference.  \rThe goal should be visible when the resource referenced by CarePlan.activity.reference is viewed independently from the CarePlan.  Requests that are pointed to by a CarePlan using this element should *not* point to this CarePlan using the \"basedOn\" element.  i.e. Requests that are part of a CarePlan are not \"based on\" the CarePlan.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Appointment",
                  "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
                  "http://hl7.org/fhir/StructureDefinition/Task",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/VisionPrescription",
                  "http://hl7.org/fhir/StructureDefinition/RequestGroup"
                ]
              }
            ],
            "condition": [
              "cpl-3"
            ]
          },
          {
            "id": "CarePlan.activity.detail",
            "path": "CarePlan.activity.detail",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "cpl-3"
            ]
          },
          {
            "id": "CarePlan.activity.detail.kind",
            "path": "CarePlan.activity.detail.kind",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanActivityKind"
                }
              ],
              "strength": "required",
              "description": "Resource types defined as part of FHIR that can be represented as in-line definitions of a care plan activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-kind|4.0.1"
            }
          },
          {
            "id": "CarePlan.activity.detail.instantiatesCanonical",
            "path": "CarePlan.activity.detail.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire",
                  "http://hl7.org/fhir/StructureDefinition/Measure",
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.activity.detail.instantiatesUri",
            "path": "CarePlan.activity.detail.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "CarePlan.activity.detail.code",
            "path": "CarePlan.activity.detail.code",
            "comment": "Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use \"prohibited\" instead.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanActivityType"
                }
              ],
              "strength": "example",
              "description": "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code"
            }
          },
          {
            "id": "CarePlan.activity.detail.reasonCode",
            "path": "CarePlan.activity.detail.reasonCode",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanActivityReason"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "CarePlan.activity.detail.reasonReference",
            "path": "CarePlan.activity.detail.reasonReference",
            "comment": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.activity.detail.goal",
            "path": "CarePlan.activity.detail.goal",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Goal"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.activity.detail.status",
            "path": "CarePlan.activity.detail.status",
            "comment": "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.  \nThe unknown code is not to be used to convey other statuses.  The unknown code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the activity.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the activity should not be treated as valid",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanActivityStatus"
                }
              ],
              "strength": "required",
              "description": "Codes that reflect the current state of a care plan activity within its overall life cycle.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-status|4.0.1"
            }
          },
          {
            "id": "CarePlan.activity.detail.statusReason",
            "path": "CarePlan.activity.detail.statusReason",
            "comment": "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"
              }
            ]
          },
          {
            "id": "CarePlan.activity.detail.doNotPerform",
            "path": "CarePlan.activity.detail.doNotPerform",
            "comment": "This element is labeled as a modifier because it marks an activity as an activity that is not to be performed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If missing indicates that the described activity is one that should be engaged in when following the plan.",
            "isModifier": true,
            "isModifierReason": "If true this element negates the specified action. For example, instead of a request for a procedure, it is a request for the procedure to not occur."
          },
          {
            "id": "CarePlan.activity.detail.scheduled[x]",
            "path": "CarePlan.activity.detail.scheduled[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Timing"
              },
              {
                "code": "Period"
              },
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CarePlan.activity.detail.location",
            "path": "CarePlan.activity.detail.location",
            "comment": "May reference a specific clinical location or may identify a type of location.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.activity.detail.performer",
            "path": "CarePlan.activity.detail.performer",
            "comment": "A performer MAY also be a participant in the care plan.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.activity.detail.product[x]",
            "path": "CarePlan.activity.detail.product[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CarePlanProduct"
                }
              ],
              "strength": "example",
              "description": "A product supplied or administered as part of a care plan activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "CarePlan.activity.detail.dailyAmount",
            "path": "CarePlan.activity.detail.dailyAmount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.activity.detail.quantity",
            "path": "CarePlan.activity.detail.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "CarePlan.activity.detail.description",
            "path": "CarePlan.activity.detail.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CarePlan.note",
            "path": "CarePlan.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/CareTeam",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "CareTeam",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Care Provision"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/CareTeam",
      "version": "4.0.1",
      "name": "CareTeam",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "CareTeam",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "CareTeam",
            "path": "CareTeam",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CareTeam",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CareTeam.id",
            "path": "CareTeam.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CareTeam.meta",
            "path": "CareTeam.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CareTeam.implicitRules",
            "path": "CareTeam.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "CareTeam.language",
            "path": "CareTeam.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CareTeam.text",
            "path": "CareTeam.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CareTeam.contained",
            "path": "CareTeam.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CareTeam.extension",
            "path": "CareTeam.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CareTeam.modifierExtension",
            "path": "CareTeam.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "CareTeam.identifier",
            "path": "CareTeam.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CareTeam.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CareTeam.status",
            "path": "CareTeam.status",
            "comment": "This element is labeled as a modifier because the status contains the code entered-in-error that marks the care team as not currently valid.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CareTeam.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates the status of the care team.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-team-status|4.0.1"
            }
          },
          {
            "id": "CareTeam.category",
            "path": "CareTeam.category",
            "comment": "There may be multiple axis of categorization and one team may serve multiple purposes.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CareTeam.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamCategory"
                }
              ],
              "strength": "example",
              "description": "Indicates the type of care team.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-team-category"
            }
          },
          {
            "id": "CareTeam.name",
            "path": "CareTeam.name",
            "comment": "The meaning/purpose of the team is conveyed in CareTeam.category.  This element may also convey semantics of the team (e.g. \"Red trauma team\"), but its primary purpose is to distinguish between identical teams in a human-friendly way.  (\"Team 18735\" isn't as friendly.).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CareTeam.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CareTeam.subject",
            "path": "CareTeam.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CareTeam.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CareTeam.encounter",
            "path": "CareTeam.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CareTeam.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CareTeam.period",
            "path": "CareTeam.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CareTeam.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CareTeam.participant",
            "path": "CareTeam.participant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CareTeam.participant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "ctm-1"
            ],
            "constraint": [
              {
                "key": "ctm-1",
                "severity": "error",
                "human": "CareTeam.participant.onBehalfOf can only be populated when CareTeam.participant.member is a Practitioner",
                "expression": "onBehalfOf.exists() implies (member.resolve().iif(empty(), true, ofType(Practitioner).exists()))",
                "xpath": "starts-with(f:member/f:reference/@value, 'Practitioner/') or contains(f:member/f:reference/@value, '/Practitioner/') or exists(ancestor::*/f:contains/f:Practitioner/f:id[@value=substring-after(current()/f:member/f:reference/@value, '#')]) or not(exists(f:onBehalfOf))"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CareTeam.participant.id",
            "path": "CareTeam.participant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CareTeam.participant.extension",
            "path": "CareTeam.participant.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CareTeam.participant.modifierExtension",
            "path": "CareTeam.participant.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CareTeam.participant.role",
            "path": "CareTeam.participant.role",
            "comment": "Roles may sometimes be inferred by type of Practitioner.  These are relationships that hold only within the context of the care team.  General relationships should be handled as properties of the Patient resource directly.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CareTeam.participant.role",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamParticipantRole"
                }
              ],
              "strength": "example",
              "description": "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participant-role"
            }
          },
          {
            "id": "CareTeam.participant.member",
            "path": "CareTeam.participant.member",
            "comment": "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",
            "base": {
              "path": "CareTeam.participant.member",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CareTeam.participant.onBehalfOf",
            "path": "CareTeam.participant.onBehalfOf",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CareTeam.participant.onBehalfOf",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CareTeam.participant.period",
            "path": "CareTeam.participant.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CareTeam.participant.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CareTeam.reasonCode",
            "path": "CareTeam.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CareTeam.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamReason"
                }
              ],
              "strength": "example",
              "description": "Indicates the reason for the care team.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "CareTeam.reasonReference",
            "path": "CareTeam.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CareTeam.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CareTeam.managingOrganization",
            "path": "CareTeam.managingOrganization",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CareTeam.managingOrganization",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CareTeam.telecom",
            "path": "CareTeam.telecom",
            "comment": "The ContactPoint.use code of home is not appropriate to use. These contacts are not the contact details of individual care team members.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CareTeam.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CareTeam.note",
            "path": "CareTeam.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CareTeam.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "CareTeam",
            "path": "CareTeam",
            "min": 0,
            "max": "*"
          },
          {
            "id": "CareTeam.identifier",
            "path": "CareTeam.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CareTeam.status",
            "path": "CareTeam.status",
            "comment": "This element is labeled as a modifier because the status contains the code entered-in-error that marks the care team as not currently valid.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates the status of the care team.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-team-status|4.0.1"
            }
          },
          {
            "id": "CareTeam.category",
            "path": "CareTeam.category",
            "comment": "There may be multiple axis of categorization and one team may serve multiple purposes.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamCategory"
                }
              ],
              "strength": "example",
              "description": "Indicates the type of care team.",
              "valueSet": "http://hl7.org/fhir/ValueSet/care-team-category"
            }
          },
          {
            "id": "CareTeam.name",
            "path": "CareTeam.name",
            "comment": "The meaning/purpose of the team is conveyed in CareTeam.category.  This element may also convey semantics of the team (e.g. \"Red trauma team\"), but its primary purpose is to distinguish between identical teams in a human-friendly way.  (\"Team 18735\" isn't as friendly.).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CareTeam.subject",
            "path": "CareTeam.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CareTeam.encounter",
            "path": "CareTeam.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CareTeam.period",
            "path": "CareTeam.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CareTeam.participant",
            "path": "CareTeam.participant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "ctm-1"
            ],
            "constraint": [
              {
                "key": "ctm-1",
                "severity": "error",
                "human": "CareTeam.participant.onBehalfOf can only be populated when CareTeam.participant.member is a Practitioner",
                "expression": "onBehalfOf.exists() implies (member.resolve().iif(empty(), true, ofType(Practitioner).exists()))",
                "xpath": "starts-with(f:member/f:reference/@value, 'Practitioner/') or contains(f:member/f:reference/@value, '/Practitioner/') or exists(ancestor::*/f:contains/f:Practitioner/f:id[@value=substring-after(current()/f:member/f:reference/@value, '#')]) or not(exists(f:onBehalfOf))"
              }
            ]
          },
          {
            "id": "CareTeam.participant.role",
            "path": "CareTeam.participant.role",
            "comment": "Roles may sometimes be inferred by type of Practitioner.  These are relationships that hold only within the context of the care team.  General relationships should be handled as properties of the Patient resource directly.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamParticipantRole"
                }
              ],
              "strength": "example",
              "description": "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participant-role"
            }
          },
          {
            "id": "CareTeam.participant.member",
            "path": "CareTeam.participant.member",
            "comment": "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",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CareTeam.participant.onBehalfOf",
            "path": "CareTeam.participant.onBehalfOf",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CareTeam.participant.period",
            "path": "CareTeam.participant.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "CareTeam.reasonCode",
            "path": "CareTeam.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamReason"
                }
              ],
              "strength": "example",
              "description": "Indicates the reason for the care team.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "CareTeam.reasonReference",
            "path": "CareTeam.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ]
          },
          {
            "id": "CareTeam.managingOrganization",
            "path": "CareTeam.managingOrganization",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CareTeam.telecom",
            "path": "CareTeam.telecom",
            "comment": "The ContactPoint.use code of home is not appropriate to use. These contacts are not the contact details of individual care team members.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ]
          },
          {
            "id": "CareTeam.note",
            "path": "CareTeam.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/CatalogEntry",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "CatalogEntry",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Documents"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/CatalogEntry",
      "version": "4.0.1",
      "name": "CatalogEntry",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "CatalogEntry",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "CatalogEntry",
            "path": "CatalogEntry",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CatalogEntry",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.id",
            "path": "CatalogEntry.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CatalogEntry.meta",
            "path": "CatalogEntry.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CatalogEntry.implicitRules",
            "path": "CatalogEntry.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "CatalogEntry.language",
            "path": "CatalogEntry.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CatalogEntry.text",
            "path": "CatalogEntry.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.contained",
            "path": "CatalogEntry.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.extension",
            "path": "CatalogEntry.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.modifierExtension",
            "path": "CatalogEntry.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "CatalogEntry.identifier",
            "path": "CatalogEntry.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CatalogEntry.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CatalogEntry.type",
            "path": "CatalogEntry.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CatalogEntry.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.orderable",
            "path": "CatalogEntry.orderable",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CatalogEntry.orderable",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CatalogEntry.referencedItem",
            "path": "CatalogEntry.referencedItem",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CatalogEntry.referencedItem",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/SpecimenDefinition",
                  "http://hl7.org/fhir/StructureDefinition/ObservationDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Binary"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CatalogEntry.additionalIdentifier",
            "path": "CatalogEntry.additionalIdentifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CatalogEntry.additionalIdentifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.classification",
            "path": "CatalogEntry.classification",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CatalogEntry.classification",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.status",
            "path": "CatalogEntry.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CatalogEntry.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "CatalogEntry.validityPeriod",
            "path": "CatalogEntry.validityPeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CatalogEntry.validityPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.validTo",
            "path": "CatalogEntry.validTo",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CatalogEntry.validTo",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.lastUpdated",
            "path": "CatalogEntry.lastUpdated",
            "comment": "Perhaps not needed - if we use fhir resource metadata.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CatalogEntry.lastUpdated",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.additionalCharacteristic",
            "path": "CatalogEntry.additionalCharacteristic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CatalogEntry.additionalCharacteristic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.additionalClassification",
            "path": "CatalogEntry.additionalClassification",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CatalogEntry.additionalClassification",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.relatedEntry",
            "path": "CatalogEntry.relatedEntry",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CatalogEntry.relatedEntry",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.relatedEntry.id",
            "path": "CatalogEntry.relatedEntry.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.relatedEntry.extension",
            "path": "CatalogEntry.relatedEntry.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CatalogEntry.relatedEntry.modifierExtension",
            "path": "CatalogEntry.relatedEntry.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CatalogEntry.relatedEntry.relationtype",
            "path": "CatalogEntry.relatedEntry.relationtype",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CatalogEntry.relatedEntry.relationtype",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CatalogEntryRelationType"
                }
              ],
              "strength": "required",
              "description": "The type of relations between entries.",
              "valueSet": "http://hl7.org/fhir/ValueSet/relation-type|4.0.1"
            }
          },
          {
            "id": "CatalogEntry.relatedEntry.item",
            "path": "CatalogEntry.relatedEntry.item",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CatalogEntry.relatedEntry.item",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CatalogEntry"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "CatalogEntry",
            "path": "CatalogEntry",
            "min": 0,
            "max": "*"
          },
          {
            "id": "CatalogEntry.identifier",
            "path": "CatalogEntry.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CatalogEntry.type",
            "path": "CatalogEntry.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "CatalogEntry.orderable",
            "path": "CatalogEntry.orderable",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CatalogEntry.referencedItem",
            "path": "CatalogEntry.referencedItem",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/SpecimenDefinition",
                  "http://hl7.org/fhir/StructureDefinition/ObservationDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Binary"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CatalogEntry.additionalIdentifier",
            "path": "CatalogEntry.additionalIdentifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "CatalogEntry.classification",
            "path": "CatalogEntry.classification",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "CatalogEntry.status",
            "path": "CatalogEntry.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "CatalogEntry.validityPeriod",
            "path": "CatalogEntry.validityPeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "CatalogEntry.validTo",
            "path": "CatalogEntry.validTo",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "CatalogEntry.lastUpdated",
            "path": "CatalogEntry.lastUpdated",
            "comment": "Perhaps not needed - if we use fhir resource metadata.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "CatalogEntry.additionalCharacteristic",
            "path": "CatalogEntry.additionalCharacteristic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "CatalogEntry.additionalClassification",
            "path": "CatalogEntry.additionalClassification",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "CatalogEntry.relatedEntry",
            "path": "CatalogEntry.relatedEntry",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CatalogEntry.relatedEntry.relationtype",
            "path": "CatalogEntry.relatedEntry.relationtype",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CatalogEntryRelationType"
                }
              ],
              "strength": "required",
              "description": "The type of relations between entries.",
              "valueSet": "http://hl7.org/fhir/ValueSet/relation-type|4.0.1"
            }
          },
          {
            "id": "CatalogEntry.relatedEntry.item",
            "path": "CatalogEntry.relatedEntry.item",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CatalogEntry"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ChargeItem",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ChargeItem",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.General"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ChargeItem",
      "version": "4.0.1",
      "name": "ChargeItem",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ChargeItem",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ChargeItem",
            "path": "ChargeItem",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.id",
            "path": "ChargeItem.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItem.meta",
            "path": "ChargeItem.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItem.implicitRules",
            "path": "ChargeItem.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ChargeItem.language",
            "path": "ChargeItem.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ChargeItem.text",
            "path": "ChargeItem.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.contained",
            "path": "ChargeItem.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.extension",
            "path": "ChargeItem.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.modifierExtension",
            "path": "ChargeItem.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ChargeItem.identifier",
            "path": "ChargeItem.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItem.definitionUri",
            "path": "ChargeItem.definitionUri",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.definitionUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.definitionCanonical",
            "path": "ChargeItem.definitionCanonical",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.definitionCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.status",
            "path": "ChargeItem.status",
            "comment": "Unknown does not represent \"other\" - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that marks the charge item as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ChargeItem.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemStatus"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the lifecycle stage of a ChargeItem.",
              "valueSet": "http://hl7.org/fhir/ValueSet/chargeitem-status|4.0.1"
            }
          },
          {
            "id": "ChargeItem.partOf",
            "path": "ChargeItem.partOf",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ChargeItem"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.code",
            "path": "ChargeItem.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ChargeItem.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemCode"
                }
              ],
              "strength": "example",
              "description": "Example set of codes that can be used for billing purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/chargeitem-billingcodes"
            }
          },
          {
            "id": "ChargeItem.subject",
            "path": "ChargeItem.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ChargeItem.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItem.context",
            "path": "ChargeItem.context",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.context",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItem.occurrence[x]",
            "path": "ChargeItem.occurrence[x]",
            "comment": "The list of types may be constrained as appropriate for the type of charge item.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.occurrence[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItem.performer",
            "path": "ChargeItem.performer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.performer.id",
            "path": "ChargeItem.performer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.performer.extension",
            "path": "ChargeItem.performer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.performer.modifierExtension",
            "path": "ChargeItem.performer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ChargeItem.performer.function",
            "path": "ChargeItem.performer.function",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.performer.function",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemPerformerFunction"
                }
              ],
              "strength": "example",
              "description": "Codes describing the types of functional roles performers can take on when performing events.",
              "valueSet": "http://hl7.org/fhir/ValueSet/performer-role"
            }
          },
          {
            "id": "ChargeItem.performer.actor",
            "path": "ChargeItem.performer.actor",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ChargeItem.performer.actor",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.performingOrganization",
            "path": "ChargeItem.performingOrganization",
            "comment": "Practitioners and Devices can be associated with multiple organizations. It has to be made clear, on behalf of which Organization the services have been rendered.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.performingOrganization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.requestingOrganization",
            "path": "ChargeItem.requestingOrganization",
            "comment": "The rendered Service might not be associated with a Request. This property indicates which Organization requested the services to be rendered. (In many cases, this may just be the Department associated with the Encounter.location).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.requestingOrganization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.costCenter",
            "path": "ChargeItem.costCenter",
            "comment": "The costCenter could either be given as a reference to an Organization(Role) resource or as the identifier of the cost center determined by Reference.identifier.value and Reference.identifier.system, depending on use case requirements.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.costCenter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.quantity",
            "path": "ChargeItem.quantity",
            "comment": "In many cases this may just be a value, if the underlying units are implicit in the definition of the charge item code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItem.bodysite",
            "path": "ChargeItem.bodysite",
            "comment": "Only used if not implicit in code found in Condition.code. If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html).  May be a summary code, or a reference to a very precise definition of the location, or both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.bodysite",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "ChargeItem.factorOverride",
            "path": "ChargeItem.factorOverride",
            "comment": "There is no reason to carry the factor in the instance of a ChargeItem unless special circumstances require a manual override. The factors are usually defined by a set of rules in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.factorOverride",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.priceOverride",
            "path": "ChargeItem.priceOverride",
            "comment": "There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.priceOverride",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.overrideReason",
            "path": "ChargeItem.overrideReason",
            "comment": "Derived Profiles may choose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.overrideReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.enterer",
            "path": "ChargeItem.enterer",
            "comment": "The enterer is also the person considered responsible for factor/price overrides if applicable.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.enterer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItem.enteredDate",
            "path": "ChargeItem.enteredDate",
            "comment": "The actual date when the service associated with the charge has been rendered is captured in occurrence[x].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.enteredDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItem.reason",
            "path": "ChargeItem.reason",
            "comment": "If the application of the charge item requires a reason to be given, it can be captured here. Textual reasons can be captured using reasonCode.text.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.reason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemReason"
                }
              ],
              "strength": "example",
              "description": "Example binding for reason.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10"
            }
          },
          {
            "id": "ChargeItem.service",
            "path": "ChargeItem.service",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.service",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
                  "http://hl7.org/fhir/StructureDefinition/Immunization",
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
                  "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/SupplyDelivery"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.product[x]",
            "path": "ChargeItem.product[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItem.product[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemProduct"
                }
              ],
              "strength": "example",
              "description": "Example binding for product type.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-kind"
            }
          },
          {
            "id": "ChargeItem.account",
            "path": "ChargeItem.account",
            "comment": "Systems posting the ChargeItems might not always be able to determine, which accounts the Items need to be places into. It is up to the postprocessing Financial System to apply internal rules to decide based on the Encounter/EpisodeOfCare/Patient/Coverage context and the type of ChargeItem, which Account is appropriate.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.account",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Account"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItem.note",
            "path": "ChargeItem.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItem.supportingInformation",
            "path": "ChargeItem.supportingInformation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItem.supportingInformation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ChargeItem",
            "path": "ChargeItem",
            "min": 0,
            "max": "*"
          },
          {
            "id": "ChargeItem.identifier",
            "path": "ChargeItem.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItem.definitionUri",
            "path": "ChargeItem.definitionUri",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.definitionCanonical",
            "path": "ChargeItem.definitionCanonical",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition"
                ]
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.status",
            "path": "ChargeItem.status",
            "comment": "Unknown does not represent \"other\" - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that marks the charge item as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemStatus"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the lifecycle stage of a ChargeItem.",
              "valueSet": "http://hl7.org/fhir/ValueSet/chargeitem-status|4.0.1"
            }
          },
          {
            "id": "ChargeItem.partOf",
            "path": "ChargeItem.partOf",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ChargeItem"
                ]
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.code",
            "path": "ChargeItem.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemCode"
                }
              ],
              "strength": "example",
              "description": "Example set of codes that can be used for billing purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/chargeitem-billingcodes"
            }
          },
          {
            "id": "ChargeItem.subject",
            "path": "ChargeItem.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItem.context",
            "path": "ChargeItem.context",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItem.occurrence[x]",
            "path": "ChargeItem.occurrence[x]",
            "comment": "The list of types may be constrained as appropriate for the type of charge item.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItem.performer",
            "path": "ChargeItem.performer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.performer.function",
            "path": "ChargeItem.performer.function",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemPerformerFunction"
                }
              ],
              "strength": "example",
              "description": "Codes describing the types of functional roles performers can take on when performing events.",
              "valueSet": "http://hl7.org/fhir/ValueSet/performer-role"
            }
          },
          {
            "id": "ChargeItem.performer.actor",
            "path": "ChargeItem.performer.actor",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.performingOrganization",
            "path": "ChargeItem.performingOrganization",
            "comment": "Practitioners and Devices can be associated with multiple organizations. It has to be made clear, on behalf of which Organization the services have been rendered.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.requestingOrganization",
            "path": "ChargeItem.requestingOrganization",
            "comment": "The rendered Service might not be associated with a Request. This property indicates which Organization requested the services to be rendered. (In many cases, this may just be the Department associated with the Encounter.location).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.costCenter",
            "path": "ChargeItem.costCenter",
            "comment": "The costCenter could either be given as a reference to an Organization(Role) resource or as the identifier of the cost center determined by Reference.identifier.value and Reference.identifier.system, depending on use case requirements.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.quantity",
            "path": "ChargeItem.quantity",
            "comment": "In many cases this may just be a value, if the underlying units are implicit in the definition of the charge item code.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItem.bodysite",
            "path": "ChargeItem.bodysite",
            "comment": "Only used if not implicit in code found in Condition.code. If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html).  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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "ChargeItem.factorOverride",
            "path": "ChargeItem.factorOverride",
            "comment": "There is no reason to carry the factor in the instance of a ChargeItem unless special circumstances require a manual override. The factors are usually defined by a set of rules in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.priceOverride",
            "path": "ChargeItem.priceOverride",
            "comment": "There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.overrideReason",
            "path": "ChargeItem.overrideReason",
            "comment": "Derived Profiles may choose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.enterer",
            "path": "ChargeItem.enterer",
            "comment": "The enterer is also the person considered responsible for factor/price overrides if applicable.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItem.enteredDate",
            "path": "ChargeItem.enteredDate",
            "comment": "The actual date when the service associated with the charge has been rendered is captured in occurrence[x].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItem.reason",
            "path": "ChargeItem.reason",
            "comment": "If the application of the charge item requires a reason to be given, it can be captured here. Textual reasons can be captured using reasonCode.text.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemReason"
                }
              ],
              "strength": "example",
              "description": "Example binding for reason.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10"
            }
          },
          {
            "id": "ChargeItem.service",
            "path": "ChargeItem.service",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
                  "http://hl7.org/fhir/StructureDefinition/Immunization",
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
                  "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/SupplyDelivery"
                ]
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.product[x]",
            "path": "ChargeItem.product[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemProduct"
                }
              ],
              "strength": "example",
              "description": "Example binding for product type.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-kind"
            }
          },
          {
            "id": "ChargeItem.account",
            "path": "ChargeItem.account",
            "comment": "Systems posting the ChargeItems might not always be able to determine, which accounts the Items need to be places into. It is up to the postprocessing Financial System to apply internal rules to decide based on the Encounter/EpisodeOfCare/Patient/Coverage context and the type of ChargeItem, which Account is appropriate.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Account"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItem.note",
            "path": "ChargeItem.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "isSummary": false
          },
          {
            "id": "ChargeItem.supportingInformation",
            "path": "ChargeItem.supportingInformation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": false
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ChargeItemDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.General"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition",
      "version": "4.0.1",
      "name": "ChargeItemDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ChargeItemDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ChargeItemDefinition",
            "path": "ChargeItemDefinition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "cid-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.id",
            "path": "ChargeItemDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.meta",
            "path": "ChargeItemDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.implicitRules",
            "path": "ChargeItemDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.language",
            "path": "ChargeItemDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ChargeItemDefinition.text",
            "path": "ChargeItemDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.contained",
            "path": "ChargeItemDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.extension",
            "path": "ChargeItemDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.modifierExtension",
            "path": "ChargeItemDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.url",
            "path": "ChargeItemDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.identifier",
            "path": "ChargeItemDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this charge item definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.version",
            "path": "ChargeItemDefinition.version",
            "comment": "There may be different charge item definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the charge item definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.title",
            "path": "ChargeItemDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.derivedFromUri",
            "path": "ChargeItemDefinition.derivedFromUri",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.derivedFromUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.partOf",
            "path": "ChargeItemDefinition.partOf",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.replaces",
            "path": "ChargeItemDefinition.replaces",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.replaces",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.status",
            "path": "ChargeItemDefinition.status",
            "comment": "Allows filtering of charge item definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ChargeItemDefinition.experimental",
            "path": "ChargeItemDefinition.experimental",
            "comment": "Allows filtering of charge item definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.date",
            "path": "ChargeItemDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the charge item definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.publisher",
            "path": "ChargeItemDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the charge item definition is the organization or individual primarily responsible for the maintenance and upkeep of the charge item definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the charge item definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.contact",
            "path": "ChargeItemDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.description",
            "path": "ChargeItemDefinition.description",
            "comment": "This description can be used to capture details such as why the charge item definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the charge item definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the charge item definition is presumed to be the predominant language in the place the charge item definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.useContext",
            "path": "ChargeItemDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.jurisdiction",
            "path": "ChargeItemDefinition.jurisdiction",
            "comment": "It may be possible for the charge item definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ChargeItemDefinition.copyright",
            "path": "ChargeItemDefinition.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.approvalDate",
            "path": "ChargeItemDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.lastReviewDate",
            "path": "ChargeItemDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.effectivePeriod",
            "path": "ChargeItemDefinition.effectivePeriod",
            "comment": "The effective period for a charge item definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.code",
            "path": "ChargeItemDefinition.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemDefinitionCode"
                }
              ],
              "strength": "example",
              "description": "Billing Code defined by this ChargeItemDefinition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/chargeitem-billingcodes"
            }
          },
          {
            "id": "ChargeItemDefinition.instance",
            "path": "ChargeItemDefinition.instance",
            "comment": "In case of highly customized, individually produced or fitted devices/substances, the pricing information may be different for each instance of the product. This reference links pricing details to specific product instances.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.instance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.applicability",
            "path": "ChargeItemDefinition.applicability",
            "comment": "The applicability conditions can be used to ascertain whether a billing item is allowed in a specific context. E.g. some billing codes may only be applicable in out-patient settings, only to male/female patients or only to children.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.applicability",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.applicability.id",
            "path": "ChargeItemDefinition.applicability.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.applicability.extension",
            "path": "ChargeItemDefinition.applicability.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.applicability.modifierExtension",
            "path": "ChargeItemDefinition.applicability.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.applicability.description",
            "path": "ChargeItemDefinition.applicability.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.applicability.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.applicability.language",
            "path": "ChargeItemDefinition.applicability.language",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.applicability.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.applicability.expression",
            "path": "ChargeItemDefinition.applicability.expression",
            "comment": "Please note that FHIRPath Expressions can only be evaluated in the scope of the current ChargeItem resource to which this definition is being applied.\nFHIRPath expressions can traverse into other resources linked from the ChargeItem resource, however, testing rules such as that a billing code may be billed only once per encounter need a wider scope. In such scenarios, CQL may be the appropriate choice.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.applicability.expression",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.propertyGroup",
            "path": "ChargeItemDefinition.propertyGroup",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.propertyGroup",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.id",
            "path": "ChargeItemDefinition.propertyGroup.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.extension",
            "path": "ChargeItemDefinition.propertyGroup.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.modifierExtension",
            "path": "ChargeItemDefinition.propertyGroup.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.applicability",
            "path": "ChargeItemDefinition.propertyGroup.applicability",
            "comment": "The applicability conditions can be used to ascertain whether a billing item is allowed in a specific context. E.g. some billing codes may only be applicable in out-patient settings, only to male/female patients or only to children.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.propertyGroup.applicability",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ChargeItemDefinition.applicability",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ChargeItemDefinition.propertyGroup.priceComponent",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.id",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.extension",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.modifierExtension",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.type",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.propertyGroup.priceComponent.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemDefinitionPriceComponentType"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the kind of the price component.",
              "valueSet": "http://hl7.org/fhir/ValueSet/invoice-priceComponentType|4.0.1"
            }
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.code",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.propertyGroup.priceComponent.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.factor",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.factor",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.propertyGroup.priceComponent.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.amount",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.amount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ChargeItemDefinition.propertyGroup.priceComponent.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ChargeItemDefinition",
            "path": "ChargeItemDefinition",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "cid-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.url",
            "path": "ChargeItemDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.identifier",
            "path": "ChargeItemDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this charge item definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.version",
            "path": "ChargeItemDefinition.version",
            "comment": "There may be different charge item definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the charge item definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.title",
            "path": "ChargeItemDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.derivedFromUri",
            "path": "ChargeItemDefinition.derivedFromUri",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.partOf",
            "path": "ChargeItemDefinition.partOf",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.replaces",
            "path": "ChargeItemDefinition.replaces",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.status",
            "path": "ChargeItemDefinition.status",
            "comment": "Allows filtering of charge item definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ChargeItemDefinition.experimental",
            "path": "ChargeItemDefinition.experimental",
            "comment": "Allows filtering of charge item definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.date",
            "path": "ChargeItemDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the charge item definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.publisher",
            "path": "ChargeItemDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the charge item definition is the organization or individual primarily responsible for the maintenance and upkeep of the charge item definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the charge item definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.contact",
            "path": "ChargeItemDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.description",
            "path": "ChargeItemDefinition.description",
            "comment": "This description can be used to capture details such as why the charge item definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the charge item definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the charge item definition is presumed to be the predominant language in the place the charge item definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.useContext",
            "path": "ChargeItemDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.jurisdiction",
            "path": "ChargeItemDefinition.jurisdiction",
            "comment": "It may be possible for the charge item definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ChargeItemDefinition.copyright",
            "path": "ChargeItemDefinition.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.approvalDate",
            "path": "ChargeItemDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.lastReviewDate",
            "path": "ChargeItemDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.effectivePeriod",
            "path": "ChargeItemDefinition.effectivePeriod",
            "comment": "The effective period for a charge item definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ChargeItemDefinition.code",
            "path": "ChargeItemDefinition.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemDefinitionCode"
                }
              ],
              "strength": "example",
              "description": "Billing Code defined by this ChargeItemDefinition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/chargeitem-billingcodes"
            }
          },
          {
            "id": "ChargeItemDefinition.instance",
            "path": "ChargeItemDefinition.instance",
            "comment": "In case of highly customized, individually produced or fitted devices/substances, the pricing information may be different for each instance of the product. This reference links pricing details to specific product instances.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.applicability",
            "path": "ChargeItemDefinition.applicability",
            "comment": "The applicability conditions can be used to ascertain whether a billing item is allowed in a specific context. E.g. some billing codes may only be applicable in out-patient settings, only to male/female patients or only to children.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.applicability.description",
            "path": "ChargeItemDefinition.applicability.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.applicability.language",
            "path": "ChargeItemDefinition.applicability.language",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.applicability.expression",
            "path": "ChargeItemDefinition.applicability.expression",
            "comment": "Please note that FHIRPath Expressions can only be evaluated in the scope of the current ChargeItem resource to which this definition is being applied.\nFHIRPath expressions can traverse into other resources linked from the ChargeItem resource, however, testing rules such as that a billing code may be billed only once per encounter need a wider scope. In such scenarios, CQL may be the appropriate choice.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.propertyGroup",
            "path": "ChargeItemDefinition.propertyGroup",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.applicability",
            "path": "ChargeItemDefinition.propertyGroup.applicability",
            "comment": "The applicability conditions can be used to ascertain whether a billing item is allowed in a specific context. E.g. some billing codes may only be applicable in out-patient settings, only to male/female patients or only to children.",
            "min": 0,
            "max": "*",
            "contentReference": "#ChargeItemDefinition.applicability"
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.type",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ChargeItemDefinitionPriceComponentType"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the kind of the price component.",
              "valueSet": "http://hl7.org/fhir/ValueSet/invoice-priceComponentType|4.0.1"
            }
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.code",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.factor",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.factor",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ChargeItemDefinition.propertyGroup.priceComponent.amount",
            "path": "ChargeItemDefinition.propertyGroup.priceComponent.amount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Claim",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Claim",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.Billing"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Claim",
      "version": "4.0.1",
      "name": "Claim",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "The Claim resource is used by providers to exchange services and products rendered to patients or planned to be rendered with insurers for reimbuserment. It is also used by insurers to exchange claims information with statutory reporting and data analytics firms.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Claim",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Claim",
            "path": "Claim",
            "comment": "The Claim resource fulfills three information request requirements: Claim - a request for adjudication for reimbursement for products and/or services provided; Preauthorization - a request to authorize the future provision of products and/or services including an anticipated adjudication; and, Predetermination - a request for a non-bind adjudication of possible future products and/or services.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.id",
            "path": "Claim.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.meta",
            "path": "Claim.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.implicitRules",
            "path": "Claim.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Claim.language",
            "path": "Claim.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Claim.text",
            "path": "Claim.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.contained",
            "path": "Claim.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.extension",
            "path": "Claim.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.modifierExtension",
            "path": "Claim.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Claim.identifier",
            "path": "Claim.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.status",
            "path": "Claim.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "Claim.type",
            "path": "Claim.type",
            "comment": "The majority of jurisdictions use: oral, pharmacy, vision, professional and institutional, or variants on those terms, as the general styles of claims. The valueset is extensible to accommodate other jurisdictional requirements.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimType"
                }
              ],
              "strength": "extensible",
              "description": "The type or discipline-style of the claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-type"
            }
          },
          {
            "id": "Claim.subType",
            "path": "Claim.subType",
            "comment": "This may contain the local bill type codes, for example the US UB-04 bill type code or the CMS bill type.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.subType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimSubType"
                }
              ],
              "strength": "example",
              "description": "A more granular claim typecode.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-subtype"
            }
          },
          {
            "id": "Claim.use",
            "path": "Claim.use",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.use",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Use"
                }
              ],
              "strength": "required",
              "description": "The purpose of the Claim: predetermination, preauthorization, claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-use|4.0.1"
            }
          },
          {
            "id": "Claim.patient",
            "path": "Claim.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.billablePeriod",
            "path": "Claim.billablePeriod",
            "comment": "Typically this would be today or in the past for a claim, and today or in the future for preauthorizations and predeterminations. Typically line item dates of service should fall within the billing period if one is specified.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.billablePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.created",
            "path": "Claim.created",
            "comment": "This field is independent of the date of creation of the resource as it may reflect the creation date of a source document prior to digitization. Typically for claims all services must be completed as of this date.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.created",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.enterer",
            "path": "Claim.enterer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.enterer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.insurer",
            "path": "Claim.insurer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.insurer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.provider",
            "path": "Claim.provider",
            "comment": "Typically this field would be 1..1 where this party is responsible for the claim but not necessarily professionally responsible for the provision of the individual products and services listed below.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.provider",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.priority",
            "path": "Claim.priority",
            "comment": "If a claim processor is unable to complete the processing as per the priority then they should generate and error and not process the request.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.priority",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcessPriority"
                }
              ],
              "strength": "example",
              "description": "The timeliness with which processing is required: stat, normal, deferred.",
              "valueSet": "http://hl7.org/fhir/ValueSet/process-priority"
            }
          },
          {
            "id": "Claim.fundsReserve",
            "path": "Claim.fundsReserve",
            "comment": "This field is only used for preauthorizations.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.fundsReserve",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FundsReserve"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "For whom funds are to be reserved: (Patient, Provider, None).",
              "valueSet": "http://hl7.org/fhir/ValueSet/fundsreserve"
            }
          },
          {
            "id": "Claim.related",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "RelatedClaim"
              }
            ],
            "path": "Claim.related",
            "comment": "For example,  for the original treatment and follow-up exams.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.related",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.related.id",
            "path": "Claim.related.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.related.extension",
            "path": "Claim.related.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.related.modifierExtension",
            "path": "Claim.related.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.related.claim",
            "path": "Claim.related.claim",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.related.claim",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Claim"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.related.relationship",
            "path": "Claim.related.relationship",
            "comment": "For example, prior claim or umbrella.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.related.relationship",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RelatedClaimRelationship"
                }
              ],
              "strength": "example",
              "description": "Relationship of this claim to a related Claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/related-claim-relationship"
            }
          },
          {
            "id": "Claim.related.reference",
            "path": "Claim.related.reference",
            "comment": "For example, Property/Casualty insurer claim # or Workers Compensation case # .",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.related.reference",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.prescription",
            "path": "Claim.prescription",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.prescription",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.originalPrescription",
            "path": "Claim.originalPrescription",
            "comment": "For example, a physician may prescribe a medication which the pharmacy determines is contraindicated, or for which the patient has an intolerance, and therefore issues a new prescription for an alternate medication which has the same therapeutic intent. The prescription from the pharmacy becomes the 'prescription' and that from the physician becomes the 'original prescription'.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.originalPrescription",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.payee",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Payee"
              }
            ],
            "path": "Claim.payee",
            "comment": "Often providers agree to receive the benefits payable to reduce the near-term costs to the patient. The insurer may decline to pay the provider and choose to pay the subscriber instead.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.payee",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.payee.id",
            "path": "Claim.payee.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.payee.extension",
            "path": "Claim.payee.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.payee.modifierExtension",
            "path": "Claim.payee.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.payee.type",
            "path": "Claim.payee.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.payee.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PayeeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "A code for the party to be reimbursed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payeetype"
            }
          },
          {
            "id": "Claim.payee.party",
            "path": "Claim.payee.party",
            "comment": "Not required if the payee is 'subscriber' or 'provider'.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.payee.party",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.referral",
            "path": "Claim.referral",
            "comment": "The referral resource which lists the date, practitioner, reason and other supporting information.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.referral",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.facility",
            "path": "Claim.facility",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.facility",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.careTeam",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "CareTeam"
              }
            ],
            "path": "Claim.careTeam",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.careTeam",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.careTeam.id",
            "path": "Claim.careTeam.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.careTeam.extension",
            "path": "Claim.careTeam.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.careTeam.modifierExtension",
            "path": "Claim.careTeam.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.careTeam.sequence",
            "path": "Claim.careTeam.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.careTeam.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.careTeam.provider",
            "path": "Claim.careTeam.provider",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.careTeam.provider",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.careTeam.responsible",
            "path": "Claim.careTeam.responsible",
            "comment": "Responsible might not be required when there is only a single provider listed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.careTeam.responsible",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.careTeam.role",
            "path": "Claim.careTeam.role",
            "comment": "Role might not be required when there is only a single provider listed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.careTeam.role",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamRole"
                }
              ],
              "strength": "example",
              "description": "The role codes for the care team members.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-careteamrole"
            }
          },
          {
            "id": "Claim.careTeam.qualification",
            "path": "Claim.careTeam.qualification",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.careTeam.qualification",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProviderQualification"
                }
              ],
              "strength": "example",
              "description": "Provider professional qualifications.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provider-qualification"
            }
          },
          {
            "id": "Claim.supportingInfo",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SupportingInformation"
              }
            ],
            "path": "Claim.supportingInfo",
            "comment": "Often there are multiple jurisdiction specific valuesets which are required.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.supportingInfo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.supportingInfo.id",
            "path": "Claim.supportingInfo.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.supportingInfo.extension",
            "path": "Claim.supportingInfo.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.supportingInfo.modifierExtension",
            "path": "Claim.supportingInfo.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.supportingInfo.sequence",
            "path": "Claim.supportingInfo.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.supportingInfo.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.supportingInfo.category",
            "path": "Claim.supportingInfo.category",
            "comment": "This may contain a category for the local bill type codes.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.supportingInfo.category",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InformationCategory"
                }
              ],
              "strength": "example",
              "description": "The valuset used for additional information category codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-informationcategory"
            }
          },
          {
            "id": "Claim.supportingInfo.code",
            "path": "Claim.supportingInfo.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.supportingInfo.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InformationCode"
                }
              ],
              "strength": "example",
              "description": "The valuset used for additional information codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-exception"
            }
          },
          {
            "id": "Claim.supportingInfo.timing[x]",
            "path": "Claim.supportingInfo.timing[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.supportingInfo.timing[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.supportingInfo.value[x]",
            "path": "Claim.supportingInfo.value[x]",
            "comment": "Could be used to provide references to other resources, document. For example could contain a PDF in an Attachment of the Police Report for an Accident.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.supportingInfo.value[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "string"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.supportingInfo.reason",
            "path": "Claim.supportingInfo.reason",
            "comment": "For example: the reason for the additional stay, or why a tooth is  missing.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.supportingInfo.reason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MissingReason"
                }
              ],
              "strength": "example",
              "description": "Reason codes for the missing teeth.",
              "valueSet": "http://hl7.org/fhir/ValueSet/missing-tooth-reason"
            }
          },
          {
            "id": "Claim.diagnosis",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Diagnosis"
              }
            ],
            "path": "Claim.diagnosis",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.diagnosis",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.diagnosis.id",
            "path": "Claim.diagnosis.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.diagnosis.extension",
            "path": "Claim.diagnosis.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.diagnosis.modifierExtension",
            "path": "Claim.diagnosis.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.diagnosis.sequence",
            "path": "Claim.diagnosis.sequence",
            "comment": "Diagnosis are presented in list order to their expected importance: primary, secondary, etc.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.diagnosis.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.diagnosis.diagnosis[x]",
            "path": "Claim.diagnosis.diagnosis[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.diagnosis.diagnosis[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ICD10"
                }
              ],
              "strength": "example",
              "description": "Example ICD10 Diagnostic codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10"
            }
          },
          {
            "id": "Claim.diagnosis.type",
            "path": "Claim.diagnosis.type",
            "comment": "For example: admitting, primary, secondary, discharge.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.diagnosis.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisType"
                }
              ],
              "strength": "example",
              "description": "The type of the diagnosis: admitting, principal, discharge.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosistype"
            }
          },
          {
            "id": "Claim.diagnosis.onAdmission",
            "path": "Claim.diagnosis.onAdmission",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.diagnosis.onAdmission",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisOnAdmission"
                }
              ],
              "strength": "example",
              "description": "Present on admission.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosis-on-admission"
            }
          },
          {
            "id": "Claim.diagnosis.packageCode",
            "path": "Claim.diagnosis.packageCode",
            "comment": "For example DRG (Diagnosis Related Group) or a bundled billing code. A patient may have a diagnosis of a Myocardial Infarction and a DRG for HeartAttack would be assigned. The Claim item (and possible subsequent claims) would refer to the DRG for those line items that were for services related to the heart attack event.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.diagnosis.packageCode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisRelatedGroup"
                }
              ],
              "strength": "example",
              "description": "The DRG codes associated with the diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosisrelatedgroup"
            }
          },
          {
            "id": "Claim.procedure",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Procedure"
              }
            ],
            "path": "Claim.procedure",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.procedure",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.procedure.id",
            "path": "Claim.procedure.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.procedure.extension",
            "path": "Claim.procedure.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.procedure.modifierExtension",
            "path": "Claim.procedure.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.procedure.sequence",
            "path": "Claim.procedure.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.procedure.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.procedure.type",
            "path": "Claim.procedure.type",
            "comment": "For example: primary, secondary.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.procedure.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureType"
                }
              ],
              "strength": "example",
              "description": "Example procedure type codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-procedure-type"
            }
          },
          {
            "id": "Claim.procedure.date",
            "path": "Claim.procedure.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.procedure.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.procedure.procedure[x]",
            "path": "Claim.procedure.procedure[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.procedure.procedure[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ICD10_Procedures"
                }
              ],
              "strength": "example",
              "description": "Example ICD10 Procedure codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10-procedures"
            }
          },
          {
            "id": "Claim.procedure.udi",
            "path": "Claim.procedure.udi",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.procedure.udi",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.insurance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Insurance"
              }
            ],
            "path": "Claim.insurance",
            "comment": "All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'Coverage.subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Claim.insurance",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.insurance.id",
            "path": "Claim.insurance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.insurance.extension",
            "path": "Claim.insurance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.insurance.modifierExtension",
            "path": "Claim.insurance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.insurance.sequence",
            "path": "Claim.insurance.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.insurance.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.insurance.focal",
            "path": "Claim.insurance.focal",
            "comment": "A patient may (will) have multiple insurance policies which provide reimbursement for healthcare services and products. For example a person may also be covered by their spouse's policy and both appear in the list (and may be from the same insurer). This flag will be set to true for only one of the listed policies and that policy will be used for adjudicating this claim. Other claims would be created to request adjudication against the other listed policies.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.insurance.focal",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.insurance.identifier",
            "path": "Claim.insurance.identifier",
            "comment": "Only required in jurisdictions where insurers, rather than the provider, are required to send claims to  insurers that appear after them in the list. This element is not required when 'subrogation=true'.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.insurance.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.insurance.coverage",
            "path": "Claim.insurance.coverage",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.insurance.coverage",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Claim.insurance.businessArrangement",
            "path": "Claim.insurance.businessArrangement",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.insurance.businessArrangement",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.insurance.preAuthRef",
            "path": "Claim.insurance.preAuthRef",
            "comment": "This value is an alphanumeric string that may be provided over the phone, via text, via paper, or within a ClaimResponse resource and is not a FHIR Identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.insurance.preAuthRef",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.insurance.claimResponse",
            "path": "Claim.insurance.claimResponse",
            "comment": "Must not be specified when 'focal=true' for this insurance.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.insurance.claimResponse",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.accident",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Accident"
              }
            ],
            "path": "Claim.accident",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.accident",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.accident.id",
            "path": "Claim.accident.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.accident.extension",
            "path": "Claim.accident.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.accident.modifierExtension",
            "path": "Claim.accident.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.accident.date",
            "path": "Claim.accident.date",
            "comment": "The date of the accident has to precede the dates of the products and services but within a reasonable timeframe.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.accident.date",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.accident.type",
            "path": "Claim.accident.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.accident.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AccidentType"
                }
              ],
              "strength": "extensible",
              "description": "Type of accident: work place, auto, etc.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActIncidentCode"
            }
          },
          {
            "id": "Claim.accident.location[x]",
            "path": "Claim.accident.location[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.accident.location[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Item"
              }
            ],
            "path": "Claim.item",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.id",
            "path": "Claim.item.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.extension",
            "path": "Claim.item.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.modifierExtension",
            "path": "Claim.item.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.item.sequence",
            "path": "Claim.item.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.item.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.careTeamSequence",
            "path": "Claim.item.careTeamSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.careTeamSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.diagnosisSequence",
            "path": "Claim.item.diagnosisSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.diagnosisSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.procedureSequence",
            "path": "Claim.item.procedureSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.procedureSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.informationSequence",
            "path": "Claim.item.informationSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.informationSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.revenue",
            "path": "Claim.item.revenue",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.revenue",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "Claim.item.category",
            "path": "Claim.item.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral-basic, major, glasses.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "Claim.item.productOrService",
            "path": "Claim.item.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.item.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "Claim.item.modifier",
            "path": "Claim.item.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "Claim.item.programCode",
            "path": "Claim.item.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.programCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "Claim.item.serviced[x]",
            "path": "Claim.item.serviced[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.serviced[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.location[x]",
            "path": "Claim.item.location[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.location[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServicePlace"
                }
              ],
              "strength": "example",
              "description": "Place of service: pharmacy, school, prison, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-place"
            }
          },
          {
            "id": "Claim.item.quantity",
            "path": "Claim.item.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.unitPrice",
            "path": "Claim.item.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.factor",
            "path": "Claim.item.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.net",
            "path": "Claim.item.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.udi",
            "path": "Claim.item.udi",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.udi",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.bodySite",
            "path": "Claim.item.bodySite",
            "comment": "For example: Providing a tooth code, allows an insurer to identify a provider performing a filling on a tooth that was previously removed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.bodySite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OralSites"
                }
              ],
              "strength": "example",
              "description": "The code for the teeth, quadrant, sextant and arch.",
              "valueSet": "http://hl7.org/fhir/ValueSet/tooth"
            }
          },
          {
            "id": "Claim.item.subSite",
            "path": "Claim.item.subSite",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.subSite",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Surface"
                }
              ],
              "strength": "example",
              "description": "The code for the tooth surface and surface combinations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/surface"
            }
          },
          {
            "id": "Claim.item.encounter",
            "path": "Claim.item.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.encounter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Detail"
              }
            ],
            "path": "Claim.item.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.id",
            "path": "Claim.item.detail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.extension",
            "path": "Claim.item.detail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.modifierExtension",
            "path": "Claim.item.detail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.item.detail.sequence",
            "path": "Claim.item.detail.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.revenue",
            "path": "Claim.item.detail.revenue",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.revenue",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "Claim.item.detail.category",
            "path": "Claim.item.detail.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral-basic, major, glasses.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "Claim.item.detail.productOrService",
            "path": "Claim.item.detail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "Claim.item.detail.modifier",
            "path": "Claim.item.detail.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.detail.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "Claim.item.detail.programCode",
            "path": "Claim.item.detail.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.detail.programCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "Claim.item.detail.quantity",
            "path": "Claim.item.detail.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.unitPrice",
            "path": "Claim.item.detail.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.factor",
            "path": "Claim.item.detail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.net",
            "path": "Claim.item.detail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.udi",
            "path": "Claim.item.detail.udi",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.detail.udi",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.subDetail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SubDetail"
              }
            ],
            "path": "Claim.item.detail.subDetail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.detail.subDetail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.subDetail.id",
            "path": "Claim.item.detail.subDetail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.subDetail.extension",
            "path": "Claim.item.detail.subDetail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.subDetail.modifierExtension",
            "path": "Claim.item.detail.subDetail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Claim.item.detail.subDetail.sequence",
            "path": "Claim.item.detail.subDetail.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.subDetail.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.subDetail.revenue",
            "path": "Claim.item.detail.subDetail.revenue",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.subDetail.revenue",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "Claim.item.detail.subDetail.category",
            "path": "Claim.item.detail.subDetail.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.subDetail.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral-basic, major, glasses.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "Claim.item.detail.subDetail.productOrService",
            "path": "Claim.item.detail.subDetail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.subDetail.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "Claim.item.detail.subDetail.modifier",
            "path": "Claim.item.detail.subDetail.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.detail.subDetail.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "Claim.item.detail.subDetail.programCode",
            "path": "Claim.item.detail.subDetail.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.detail.subDetail.programCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "Claim.item.detail.subDetail.quantity",
            "path": "Claim.item.detail.subDetail.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.subDetail.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.subDetail.unitPrice",
            "path": "Claim.item.detail.subDetail.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.subDetail.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.subDetail.factor",
            "path": "Claim.item.detail.subDetail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.subDetail.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.subDetail.net",
            "path": "Claim.item.detail.subDetail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.item.detail.subDetail.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.item.detail.subDetail.udi",
            "path": "Claim.item.detail.subDetail.udi",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Claim.item.detail.subDetail.udi",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Claim.total",
            "path": "Claim.total",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Claim.total",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Claim",
            "path": "Claim",
            "comment": "The Claim resource fulfills three information request requirements: Claim - a request for adjudication for reimbursement for products and/or services provided; Preauthorization - a request to authorize the future provision of products and/or services including an anticipated adjudication; and, Predetermination - a request for a non-bind adjudication of possible future products and/or services.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Claim.identifier",
            "path": "Claim.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Claim.status",
            "path": "Claim.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "Claim.type",
            "path": "Claim.type",
            "comment": "The majority of jurisdictions use: oral, pharmacy, vision, professional and institutional, or variants on those terms, as the general styles of claims. The valueset is extensible to accommodate other jurisdictional requirements.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimType"
                }
              ],
              "strength": "extensible",
              "description": "The type or discipline-style of the claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-type"
            }
          },
          {
            "id": "Claim.subType",
            "path": "Claim.subType",
            "comment": "This may contain the local bill type codes, for example the US UB-04 bill type code or the CMS bill type.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimSubType"
                }
              ],
              "strength": "example",
              "description": "A more granular claim typecode.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-subtype"
            }
          },
          {
            "id": "Claim.use",
            "path": "Claim.use",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Use"
                }
              ],
              "strength": "required",
              "description": "The purpose of the Claim: predetermination, preauthorization, claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-use|4.0.1"
            }
          },
          {
            "id": "Claim.patient",
            "path": "Claim.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Claim.billablePeriod",
            "path": "Claim.billablePeriod",
            "comment": "Typically this would be today or in the past for a claim, and today or in the future for preauthorizations and predeterminations. Typically line item dates of service should fall within the billing period if one is specified.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Claim.created",
            "path": "Claim.created",
            "comment": "This field is independent of the date of creation of the resource as it may reflect the creation date of a source document prior to digitization. Typically for claims all services must be completed as of this date.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Claim.enterer",
            "path": "Claim.enterer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "Claim.insurer",
            "path": "Claim.insurer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Claim.provider",
            "path": "Claim.provider",
            "comment": "Typically this field would be 1..1 where this party is responsible for the claim but not necessarily professionally responsible for the provision of the individual products and services listed below.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Claim.priority",
            "path": "Claim.priority",
            "comment": "If a claim processor is unable to complete the processing as per the priority then they should generate and error and not process the request.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcessPriority"
                }
              ],
              "strength": "example",
              "description": "The timeliness with which processing is required: stat, normal, deferred.",
              "valueSet": "http://hl7.org/fhir/ValueSet/process-priority"
            }
          },
          {
            "id": "Claim.fundsReserve",
            "path": "Claim.fundsReserve",
            "comment": "This field is only used for preauthorizations.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FundsReserve"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "For whom funds are to be reserved: (Patient, Provider, None).",
              "valueSet": "http://hl7.org/fhir/ValueSet/fundsreserve"
            }
          },
          {
            "id": "Claim.related",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "RelatedClaim"
              }
            ],
            "path": "Claim.related",
            "comment": "For example,  for the original treatment and follow-up exams.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Claim.related.claim",
            "path": "Claim.related.claim",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Claim"
                ]
              }
            ]
          },
          {
            "id": "Claim.related.relationship",
            "path": "Claim.related.relationship",
            "comment": "For example, prior claim or umbrella.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RelatedClaimRelationship"
                }
              ],
              "strength": "example",
              "description": "Relationship of this claim to a related Claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/related-claim-relationship"
            }
          },
          {
            "id": "Claim.related.reference",
            "path": "Claim.related.reference",
            "comment": "For example, Property/Casualty insurer claim # or Workers Compensation case # .",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Claim.prescription",
            "path": "Claim.prescription",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                ]
              }
            ]
          },
          {
            "id": "Claim.originalPrescription",
            "path": "Claim.originalPrescription",
            "comment": "For example, a physician may prescribe a medication which the pharmacy determines is contraindicated, or for which the patient has an intolerance, and therefore issues a new prescription for an alternate medication which has the same therapeutic intent. The prescription from the pharmacy becomes the 'prescription' and that from the physician becomes the 'original prescription'.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                ]
              }
            ]
          },
          {
            "id": "Claim.payee",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Payee"
              }
            ],
            "path": "Claim.payee",
            "comment": "Often providers agree to receive the benefits payable to reduce the near-term costs to the patient. The insurer may decline to pay the provider and choose to pay the subscriber instead.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Claim.payee.type",
            "path": "Claim.payee.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PayeeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "A code for the party to be reimbursed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payeetype"
            }
          },
          {
            "id": "Claim.payee.party",
            "path": "Claim.payee.party",
            "comment": "Not required if the payee is 'subscriber' or 'provider'.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ]
          },
          {
            "id": "Claim.referral",
            "path": "Claim.referral",
            "comment": "The referral resource which lists the date, practitioner, reason and other supporting information.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ]
          },
          {
            "id": "Claim.facility",
            "path": "Claim.facility",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "Claim.careTeam",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "CareTeam"
              }
            ],
            "path": "Claim.careTeam",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Claim.careTeam.sequence",
            "path": "Claim.careTeam.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.careTeam.provider",
            "path": "Claim.careTeam.provider",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Claim.careTeam.responsible",
            "path": "Claim.careTeam.responsible",
            "comment": "Responsible might not be required when there is only a single provider listed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "Claim.careTeam.role",
            "path": "Claim.careTeam.role",
            "comment": "Role might not be required when there is only a single provider listed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamRole"
                }
              ],
              "strength": "example",
              "description": "The role codes for the care team members.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-careteamrole"
            }
          },
          {
            "id": "Claim.careTeam.qualification",
            "path": "Claim.careTeam.qualification",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProviderQualification"
                }
              ],
              "strength": "example",
              "description": "Provider professional qualifications.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provider-qualification"
            }
          },
          {
            "id": "Claim.supportingInfo",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SupportingInformation"
              }
            ],
            "path": "Claim.supportingInfo",
            "comment": "Often there are multiple jurisdiction specific valuesets which are required.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Claim.supportingInfo.sequence",
            "path": "Claim.supportingInfo.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.supportingInfo.category",
            "path": "Claim.supportingInfo.category",
            "comment": "This may contain a category for the local bill type codes.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InformationCategory"
                }
              ],
              "strength": "example",
              "description": "The valuset used for additional information category codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-informationcategory"
            }
          },
          {
            "id": "Claim.supportingInfo.code",
            "path": "Claim.supportingInfo.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InformationCode"
                }
              ],
              "strength": "example",
              "description": "The valuset used for additional information codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-exception"
            }
          },
          {
            "id": "Claim.supportingInfo.timing[x]",
            "path": "Claim.supportingInfo.timing[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Claim.supportingInfo.value[x]",
            "path": "Claim.supportingInfo.value[x]",
            "comment": "Could be used to provide references to other resources, document. For example could contain a PDF in an Attachment of the Police Report for an Accident.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "string"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Claim.supportingInfo.reason",
            "path": "Claim.supportingInfo.reason",
            "comment": "For example: the reason for the additional stay, or why a tooth is  missing.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MissingReason"
                }
              ],
              "strength": "example",
              "description": "Reason codes for the missing teeth.",
              "valueSet": "http://hl7.org/fhir/ValueSet/missing-tooth-reason"
            }
          },
          {
            "id": "Claim.diagnosis",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Diagnosis"
              }
            ],
            "path": "Claim.diagnosis",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Claim.diagnosis.sequence",
            "path": "Claim.diagnosis.sequence",
            "comment": "Diagnosis are presented in list order to their expected importance: primary, secondary, etc.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.diagnosis.diagnosis[x]",
            "path": "Claim.diagnosis.diagnosis[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ICD10"
                }
              ],
              "strength": "example",
              "description": "Example ICD10 Diagnostic codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10"
            }
          },
          {
            "id": "Claim.diagnosis.type",
            "path": "Claim.diagnosis.type",
            "comment": "For example: admitting, primary, secondary, discharge.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisType"
                }
              ],
              "strength": "example",
              "description": "The type of the diagnosis: admitting, principal, discharge.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosistype"
            }
          },
          {
            "id": "Claim.diagnosis.onAdmission",
            "path": "Claim.diagnosis.onAdmission",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisOnAdmission"
                }
              ],
              "strength": "example",
              "description": "Present on admission.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosis-on-admission"
            }
          },
          {
            "id": "Claim.diagnosis.packageCode",
            "path": "Claim.diagnosis.packageCode",
            "comment": "For example DRG (Diagnosis Related Group) or a bundled billing code. A patient may have a diagnosis of a Myocardial Infarction and a DRG for HeartAttack would be assigned. The Claim item (and possible subsequent claims) would refer to the DRG for those line items that were for services related to the heart attack event.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisRelatedGroup"
                }
              ],
              "strength": "example",
              "description": "The DRG codes associated with the diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosisrelatedgroup"
            }
          },
          {
            "id": "Claim.procedure",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Procedure"
              }
            ],
            "path": "Claim.procedure",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Claim.procedure.sequence",
            "path": "Claim.procedure.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.procedure.type",
            "path": "Claim.procedure.type",
            "comment": "For example: primary, secondary.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureType"
                }
              ],
              "strength": "example",
              "description": "Example procedure type codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-procedure-type"
            }
          },
          {
            "id": "Claim.procedure.date",
            "path": "Claim.procedure.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Claim.procedure.procedure[x]",
            "path": "Claim.procedure.procedure[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ICD10_Procedures"
                }
              ],
              "strength": "example",
              "description": "Example ICD10 Procedure codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10-procedures"
            }
          },
          {
            "id": "Claim.procedure.udi",
            "path": "Claim.procedure.udi",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "Claim.insurance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Insurance"
              }
            ],
            "path": "Claim.insurance",
            "comment": "All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'Coverage.subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Claim.insurance.sequence",
            "path": "Claim.insurance.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Claim.insurance.focal",
            "path": "Claim.insurance.focal",
            "comment": "A patient may (will) have multiple insurance policies which provide reimbursement for healthcare services and products. For example a person may also be covered by their spouse's policy and both appear in the list (and may be from the same insurer). This flag will be set to true for only one of the listed policies and that policy will be used for adjudicating this claim. Other claims would be created to request adjudication against the other listed policies.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Claim.insurance.identifier",
            "path": "Claim.insurance.identifier",
            "comment": "Only required in jurisdictions where insurers, rather than the provider, are required to send claims to  insurers that appear after them in the list. This element is not required when 'subrogation=true'.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Claim.insurance.coverage",
            "path": "Claim.insurance.coverage",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Claim.insurance.businessArrangement",
            "path": "Claim.insurance.businessArrangement",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Claim.insurance.preAuthRef",
            "path": "Claim.insurance.preAuthRef",
            "comment": "This value is an alphanumeric string that may be provided over the phone, via text, via paper, or within a ClaimResponse resource and is not a FHIR Identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Claim.insurance.claimResponse",
            "path": "Claim.insurance.claimResponse",
            "comment": "Must not be specified when 'focal=true' for this insurance.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ]
          },
          {
            "id": "Claim.accident",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Accident"
              }
            ],
            "path": "Claim.accident",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Claim.accident.date",
            "path": "Claim.accident.date",
            "comment": "The date of the accident has to precede the dates of the products and services but within a reasonable timeframe.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "Claim.accident.type",
            "path": "Claim.accident.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AccidentType"
                }
              ],
              "strength": "extensible",
              "description": "Type of accident: work place, auto, etc.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActIncidentCode"
            }
          },
          {
            "id": "Claim.accident.location[x]",
            "path": "Claim.accident.location[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "Claim.item",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Item"
              }
            ],
            "path": "Claim.item",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Claim.item.sequence",
            "path": "Claim.item.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.item.careTeamSequence",
            "path": "Claim.item.careTeamSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.item.diagnosisSequence",
            "path": "Claim.item.diagnosisSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.item.procedureSequence",
            "path": "Claim.item.procedureSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.item.informationSequence",
            "path": "Claim.item.informationSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.item.revenue",
            "path": "Claim.item.revenue",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "Claim.item.category",
            "path": "Claim.item.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral-basic, major, glasses.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "Claim.item.productOrService",
            "path": "Claim.item.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "Claim.item.modifier",
            "path": "Claim.item.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "Claim.item.programCode",
            "path": "Claim.item.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "Claim.item.serviced[x]",
            "path": "Claim.item.serviced[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Claim.item.location[x]",
            "path": "Claim.item.location[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServicePlace"
                }
              ],
              "strength": "example",
              "description": "Place of service: pharmacy, school, prison, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-place"
            }
          },
          {
            "id": "Claim.item.quantity",
            "path": "Claim.item.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "Claim.item.unitPrice",
            "path": "Claim.item.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "Claim.item.factor",
            "path": "Claim.item.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "Claim.item.net",
            "path": "Claim.item.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "Claim.item.udi",
            "path": "Claim.item.udi",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "Claim.item.bodySite",
            "path": "Claim.item.bodySite",
            "comment": "For example: Providing a tooth code, allows an insurer to identify a provider performing a filling on a tooth that was previously removed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OralSites"
                }
              ],
              "strength": "example",
              "description": "The code for the teeth, quadrant, sextant and arch.",
              "valueSet": "http://hl7.org/fhir/ValueSet/tooth"
            }
          },
          {
            "id": "Claim.item.subSite",
            "path": "Claim.item.subSite",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Surface"
                }
              ],
              "strength": "example",
              "description": "The code for the tooth surface and surface combinations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/surface"
            }
          },
          {
            "id": "Claim.item.encounter",
            "path": "Claim.item.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          },
          {
            "id": "Claim.item.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Detail"
              }
            ],
            "path": "Claim.item.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Claim.item.detail.sequence",
            "path": "Claim.item.detail.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.item.detail.revenue",
            "path": "Claim.item.detail.revenue",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "Claim.item.detail.category",
            "path": "Claim.item.detail.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral-basic, major, glasses.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "Claim.item.detail.productOrService",
            "path": "Claim.item.detail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "Claim.item.detail.modifier",
            "path": "Claim.item.detail.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "Claim.item.detail.programCode",
            "path": "Claim.item.detail.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "Claim.item.detail.quantity",
            "path": "Claim.item.detail.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "Claim.item.detail.unitPrice",
            "path": "Claim.item.detail.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "Claim.item.detail.factor",
            "path": "Claim.item.detail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "Claim.item.detail.net",
            "path": "Claim.item.detail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "Claim.item.detail.udi",
            "path": "Claim.item.detail.udi",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "Claim.item.detail.subDetail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SubDetail"
              }
            ],
            "path": "Claim.item.detail.subDetail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Claim.item.detail.subDetail.sequence",
            "path": "Claim.item.detail.subDetail.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Claim.item.detail.subDetail.revenue",
            "path": "Claim.item.detail.subDetail.revenue",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "Claim.item.detail.subDetail.category",
            "path": "Claim.item.detail.subDetail.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral-basic, major, glasses.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "Claim.item.detail.subDetail.productOrService",
            "path": "Claim.item.detail.subDetail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "Claim.item.detail.subDetail.modifier",
            "path": "Claim.item.detail.subDetail.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "Claim.item.detail.subDetail.programCode",
            "path": "Claim.item.detail.subDetail.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "Claim.item.detail.subDetail.quantity",
            "path": "Claim.item.detail.subDetail.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "Claim.item.detail.subDetail.unitPrice",
            "path": "Claim.item.detail.subDetail.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "Claim.item.detail.subDetail.factor",
            "path": "Claim.item.detail.subDetail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "Claim.item.detail.subDetail.net",
            "path": "Claim.item.detail.subDetail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "Claim.item.detail.subDetail.udi",
            "path": "Claim.item.detail.subDetail.udi",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "Claim.total",
            "path": "Claim.total",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ClaimResponse",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ClaimResponse",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.Billing"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ClaimResponse",
      "version": "4.0.1",
      "name": "ClaimResponse",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ClaimResponse",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ClaimResponse",
            "path": "ClaimResponse",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.id",
            "path": "ClaimResponse.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClaimResponse.meta",
            "path": "ClaimResponse.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClaimResponse.implicitRules",
            "path": "ClaimResponse.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.language",
            "path": "ClaimResponse.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ClaimResponse.text",
            "path": "ClaimResponse.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.contained",
            "path": "ClaimResponse.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.extension",
            "path": "ClaimResponse.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.modifierExtension",
            "path": "ClaimResponse.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ClaimResponse.identifier",
            "path": "ClaimResponse.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.status",
            "path": "ClaimResponse.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimResponseStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "ClaimResponse.type",
            "path": "ClaimResponse.type",
            "comment": "This may contain the local bill type codes, for example the US UB-04 bill type code or the CMS bill type.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimType"
                }
              ],
              "strength": "extensible",
              "description": "The type or discipline-style of the claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-type"
            }
          },
          {
            "id": "ClaimResponse.subType",
            "path": "ClaimResponse.subType",
            "comment": "This may contain the local bill type codes, for example the US UB-04 bill type code or the CMS bill type.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.subType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimSubType"
                }
              ],
              "strength": "example",
              "description": "A more granular claim typecode.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-subtype"
            }
          },
          {
            "id": "ClaimResponse.use",
            "path": "ClaimResponse.use",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.use",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Use"
                }
              ],
              "strength": "required",
              "description": "Claim, preauthorization, predetermination.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-use|4.0.1"
            }
          },
          {
            "id": "ClaimResponse.patient",
            "path": "ClaimResponse.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClaimResponse.created",
            "path": "ClaimResponse.created",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.created",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClaimResponse.insurer",
            "path": "ClaimResponse.insurer",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.insurer",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClaimResponse.requestor",
            "path": "ClaimResponse.requestor",
            "comment": "Typically this field would be 1..1 where this party is responsible for the claim but not necessarily professionally responsible for the provision of the individual products and services listed below.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.requestor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.request",
            "path": "ClaimResponse.request",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.request",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Claim"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClaimResponse.outcome",
            "path": "ClaimResponse.outcome",
            "comment": "The resource may be used to indicate that: the request has been held (queued) for processing; that it has been processed and errors found (error); that no errors were found and that some of the adjudication has been undertaken (partial) or that all of the adjudication has been undertaken (complete).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.outcome",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RemittanceOutcome"
                }
              ],
              "strength": "required",
              "description": "The result of the claim processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1"
            }
          },
          {
            "id": "ClaimResponse.disposition",
            "path": "ClaimResponse.disposition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.disposition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.preAuthRef",
            "path": "ClaimResponse.preAuthRef",
            "comment": "This value is only present on preauthorization adjudications.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.preAuthRef",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.preAuthPeriod",
            "path": "ClaimResponse.preAuthPeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.preAuthPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.payeeType",
            "path": "ClaimResponse.payeeType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.payeeType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PayeeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "A code for the party to be reimbursed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payeetype"
            }
          },
          {
            "id": "ClaimResponse.item",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Item"
              }
            ],
            "path": "ClaimResponse.item",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.item",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.id",
            "path": "ClaimResponse.item.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.extension",
            "path": "ClaimResponse.item.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.modifierExtension",
            "path": "ClaimResponse.item.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.item.itemSequence",
            "path": "ClaimResponse.item.itemSequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.item.itemSequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.noteNumber",
            "path": "ClaimResponse.item.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.item.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.adjudication",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Adjudication"
              }
            ],
            "path": "ClaimResponse.item.adjudication",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ClaimResponse.item.adjudication",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.adjudication.id",
            "path": "ClaimResponse.item.adjudication.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.adjudication.extension",
            "path": "ClaimResponse.item.adjudication.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.adjudication.modifierExtension",
            "path": "ClaimResponse.item.adjudication.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.item.adjudication.category",
            "path": "ClaimResponse.item.adjudication.category",
            "comment": "For example codes indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.item.adjudication.category",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Adjudication"
                }
              ],
              "strength": "example",
              "description": "The adjudication codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication"
            }
          },
          {
            "id": "ClaimResponse.item.adjudication.reason",
            "path": "ClaimResponse.item.adjudication.reason",
            "comment": "For example may indicate that the funds for this benefit type have been exhausted.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.item.adjudication.reason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdjudicationReason"
                }
              ],
              "strength": "example",
              "description": "The adjudication reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication-reason"
            }
          },
          {
            "id": "ClaimResponse.item.adjudication.amount",
            "path": "ClaimResponse.item.adjudication.amount",
            "comment": "For example: amount submitted, eligible amount, co-payment, and benefit payable.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.item.adjudication.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.adjudication.value",
            "path": "ClaimResponse.item.adjudication.value",
            "comment": "For example: eligible percentage or co-payment percentage.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.item.adjudication.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ItemDetail"
              }
            ],
            "path": "ClaimResponse.item.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.item.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.id",
            "path": "ClaimResponse.item.detail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.extension",
            "path": "ClaimResponse.item.detail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.modifierExtension",
            "path": "ClaimResponse.item.detail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.item.detail.detailSequence",
            "path": "ClaimResponse.item.detail.detailSequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.item.detail.detailSequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.noteNumber",
            "path": "ClaimResponse.item.detail.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.item.detail.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.adjudication",
            "path": "ClaimResponse.item.detail.adjudication",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ClaimResponse.item.detail.adjudication",
              "min": 1,
              "max": "*"
            },
            "contentReference": "#ClaimResponse.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.subDetail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SubDetail"
              }
            ],
            "path": "ClaimResponse.item.detail.subDetail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.item.detail.subDetail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.subDetail.id",
            "path": "ClaimResponse.item.detail.subDetail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.subDetail.extension",
            "path": "ClaimResponse.item.detail.subDetail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.subDetail.modifierExtension",
            "path": "ClaimResponse.item.detail.subDetail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.item.detail.subDetail.subDetailSequence",
            "path": "ClaimResponse.item.detail.subDetail.subDetailSequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.item.detail.subDetail.subDetailSequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.subDetail.noteNumber",
            "path": "ClaimResponse.item.detail.subDetail.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.item.detail.subDetail.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.item.detail.subDetail.adjudication",
            "path": "ClaimResponse.item.detail.subDetail.adjudication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.item.detail.subDetail.adjudication",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ClaimResponse.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItem"
              }
            ],
            "path": "ClaimResponse.addItem",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.id",
            "path": "ClaimResponse.addItem.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.extension",
            "path": "ClaimResponse.addItem.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.modifierExtension",
            "path": "ClaimResponse.addItem.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.addItem.itemSequence",
            "path": "ClaimResponse.addItem.itemSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.itemSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detailSequence",
            "path": "ClaimResponse.addItem.detailSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.detailSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.subdetailSequence",
            "path": "ClaimResponse.addItem.subdetailSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.subdetailSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.provider",
            "path": "ClaimResponse.addItem.provider",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.provider",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.productOrService",
            "path": "ClaimResponse.addItem.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ClaimResponse.addItem.modifier",
            "path": "ClaimResponse.addItem.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ClaimResponse.addItem.programCode",
            "path": "ClaimResponse.addItem.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.programCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "ClaimResponse.addItem.serviced[x]",
            "path": "ClaimResponse.addItem.serviced[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.serviced[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.location[x]",
            "path": "ClaimResponse.addItem.location[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.location[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServicePlace"
                }
              ],
              "strength": "example",
              "description": "Place of service: pharmacy, school, prison, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-place"
            }
          },
          {
            "id": "ClaimResponse.addItem.quantity",
            "path": "ClaimResponse.addItem.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.unitPrice",
            "path": "ClaimResponse.addItem.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.factor",
            "path": "ClaimResponse.addItem.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.net",
            "path": "ClaimResponse.addItem.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.bodySite",
            "path": "ClaimResponse.addItem.bodySite",
            "comment": "For example: Providing a tooth code allows an insurer to identify a provider performing a filling on a tooth that was previously removed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.bodySite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OralSites"
                }
              ],
              "strength": "example",
              "description": "The code for the teeth, quadrant, sextant and arch.",
              "valueSet": "http://hl7.org/fhir/ValueSet/tooth"
            }
          },
          {
            "id": "ClaimResponse.addItem.subSite",
            "path": "ClaimResponse.addItem.subSite",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.subSite",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Surface"
                }
              ],
              "strength": "example",
              "description": "The code for the tooth surface and surface combinations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/surface"
            }
          },
          {
            "id": "ClaimResponse.addItem.noteNumber",
            "path": "ClaimResponse.addItem.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.adjudication",
            "path": "ClaimResponse.addItem.adjudication",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.adjudication",
              "min": 1,
              "max": "*"
            },
            "contentReference": "#ClaimResponse.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItemDetail"
              }
            ],
            "path": "ClaimResponse.addItem.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.id",
            "path": "ClaimResponse.addItem.detail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.extension",
            "path": "ClaimResponse.addItem.detail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.modifierExtension",
            "path": "ClaimResponse.addItem.detail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.addItem.detail.productOrService",
            "path": "ClaimResponse.addItem.detail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.detail.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ClaimResponse.addItem.detail.modifier",
            "path": "ClaimResponse.addItem.detail.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.detail.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ClaimResponse.addItem.detail.quantity",
            "path": "ClaimResponse.addItem.detail.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.detail.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.unitPrice",
            "path": "ClaimResponse.addItem.detail.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.detail.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.factor",
            "path": "ClaimResponse.addItem.detail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.detail.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.net",
            "path": "ClaimResponse.addItem.detail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.detail.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.noteNumber",
            "path": "ClaimResponse.addItem.detail.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.detail.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.adjudication",
            "path": "ClaimResponse.addItem.detail.adjudication",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.detail.adjudication",
              "min": 1,
              "max": "*"
            },
            "contentReference": "#ClaimResponse.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItemSubDetail"
              }
            ],
            "path": "ClaimResponse.addItem.detail.subDetail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.detail.subDetail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.id",
            "path": "ClaimResponse.addItem.detail.subDetail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.extension",
            "path": "ClaimResponse.addItem.detail.subDetail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.modifierExtension",
            "path": "ClaimResponse.addItem.detail.subDetail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.productOrService",
            "path": "ClaimResponse.addItem.detail.subDetail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.detail.subDetail.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.modifier",
            "path": "ClaimResponse.addItem.detail.subDetail.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.detail.subDetail.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.quantity",
            "path": "ClaimResponse.addItem.detail.subDetail.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.detail.subDetail.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.unitPrice",
            "path": "ClaimResponse.addItem.detail.subDetail.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.detail.subDetail.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.factor",
            "path": "ClaimResponse.addItem.detail.subDetail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.detail.subDetail.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.net",
            "path": "ClaimResponse.addItem.detail.subDetail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.addItem.detail.subDetail.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.noteNumber",
            "path": "ClaimResponse.addItem.detail.subDetail.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.detail.subDetail.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.adjudication",
            "path": "ClaimResponse.addItem.detail.subDetail.adjudication",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ClaimResponse.addItem.detail.subDetail.adjudication",
              "min": 1,
              "max": "*"
            },
            "contentReference": "#ClaimResponse.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.adjudication",
            "path": "ClaimResponse.adjudication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.adjudication",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ClaimResponse.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.total",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Total"
              }
            ],
            "path": "ClaimResponse.total",
            "comment": "Totals for amounts submitted, co-pays, benefits payable etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.total",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClaimResponse.total.id",
            "path": "ClaimResponse.total.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.total.extension",
            "path": "ClaimResponse.total.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.total.modifierExtension",
            "path": "ClaimResponse.total.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.total.category",
            "path": "ClaimResponse.total.category",
            "comment": "For example codes indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.total.category",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Adjudication"
                }
              ],
              "strength": "example",
              "description": "The adjudication codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication"
            }
          },
          {
            "id": "ClaimResponse.total.amount",
            "path": "ClaimResponse.total.amount",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.total.amount",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClaimResponse.payment",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Payment"
              }
            ],
            "path": "ClaimResponse.payment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.payment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.payment.id",
            "path": "ClaimResponse.payment.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.payment.extension",
            "path": "ClaimResponse.payment.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.payment.modifierExtension",
            "path": "ClaimResponse.payment.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.payment.type",
            "path": "ClaimResponse.payment.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.payment.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentType"
                }
              ],
              "strength": "example",
              "description": "The type (partial, complete) of the payment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-paymenttype"
            }
          },
          {
            "id": "ClaimResponse.payment.adjustment",
            "path": "ClaimResponse.payment.adjustment",
            "comment": "Insurers will deduct amounts owing from the provider (adjustment), such as a prior overpayment, from the amount owing to the provider (benefits payable) when payment is made to the provider.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.payment.adjustment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.payment.adjustmentReason",
            "path": "ClaimResponse.payment.adjustmentReason",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.payment.adjustmentReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentAdjustmentReason"
                }
              ],
              "strength": "example",
              "description": "Payment Adjustment reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payment-adjustment-reason"
            }
          },
          {
            "id": "ClaimResponse.payment.date",
            "path": "ClaimResponse.payment.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.payment.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.payment.amount",
            "path": "ClaimResponse.payment.amount",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.payment.amount",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.payment.identifier",
            "path": "ClaimResponse.payment.identifier",
            "comment": "For example: EFT number or check number.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.payment.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.fundsReserve",
            "path": "ClaimResponse.fundsReserve",
            "comment": "Fund would be release by a future claim quoting the preAuthRef of this response. Examples of values include: provider, patient, none.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.fundsReserve",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FundsReserve"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "For whom funds are to be reserved: (Patient, Provider, None).",
              "valueSet": "http://hl7.org/fhir/ValueSet/fundsreserve"
            }
          },
          {
            "id": "ClaimResponse.formCode",
            "path": "ClaimResponse.formCode",
            "comment": "May be needed to identify specific jurisdictional forms.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.formCode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Forms"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "The forms codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/forms"
            }
          },
          {
            "id": "ClaimResponse.form",
            "path": "ClaimResponse.form",
            "comment": "Needed to permit insurers to include the actual form.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.form",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.processNote",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Note"
              }
            ],
            "path": "ClaimResponse.processNote",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.processNote",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.processNote.id",
            "path": "ClaimResponse.processNote.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.processNote.extension",
            "path": "ClaimResponse.processNote.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.processNote.modifierExtension",
            "path": "ClaimResponse.processNote.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.processNote.number",
            "path": "ClaimResponse.processNote.number",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.processNote.number",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.processNote.type",
            "path": "ClaimResponse.processNote.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.processNote.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NoteType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The presentation types of notes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/note-type|4.0.1"
            }
          },
          {
            "id": "ClaimResponse.processNote.text",
            "path": "ClaimResponse.processNote.text",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.processNote.text",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.processNote.language",
            "path": "ClaimResponse.processNote.language",
            "comment": "Only required if the language is different from the resource language.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.processNote.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ClaimResponse.communicationRequest",
            "path": "ClaimResponse.communicationRequest",
            "comment": "For example: professional reports, documents, images, clinical resources, or accident reports.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.communicationRequest",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.insurance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Insurance"
              }
            ],
            "path": "ClaimResponse.insurance",
            "comment": "All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.insurance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.insurance.id",
            "path": "ClaimResponse.insurance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.insurance.extension",
            "path": "ClaimResponse.insurance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.insurance.modifierExtension",
            "path": "ClaimResponse.insurance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.insurance.sequence",
            "path": "ClaimResponse.insurance.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.insurance.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.insurance.focal",
            "path": "ClaimResponse.insurance.focal",
            "comment": "A patient may (will) have multiple insurance policies which provide reimbursement for healthcare services and products. For example a person may also be covered by their spouse's policy and both appear in the list (and may be from the same insurer). This flag will be set to true for only one of the listed policies and that policy will be used for adjudicating this claim. Other claims would be created to request adjudication against the other listed policies.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.insurance.focal",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.insurance.coverage",
            "path": "ClaimResponse.insurance.coverage",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.insurance.coverage",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.insurance.businessArrangement",
            "path": "ClaimResponse.insurance.businessArrangement",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.insurance.businessArrangement",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.insurance.claimResponse",
            "path": "ClaimResponse.insurance.claimResponse",
            "comment": "Must not be specified when 'focal=true' for this insurance.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.insurance.claimResponse",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.error",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Error"
              }
            ],
            "path": "ClaimResponse.error",
            "comment": "If the request contains errors then an error element should be provided and no adjudication related sections (item, addItem, or payment) should be present.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClaimResponse.error",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.error.id",
            "path": "ClaimResponse.error.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.error.extension",
            "path": "ClaimResponse.error.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.error.modifierExtension",
            "path": "ClaimResponse.error.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClaimResponse.error.itemSequence",
            "path": "ClaimResponse.error.itemSequence",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.error.itemSequence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.error.detailSequence",
            "path": "ClaimResponse.error.detailSequence",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.error.detailSequence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.error.subDetailSequence",
            "path": "ClaimResponse.error.subDetailSequence",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClaimResponse.error.subDetailSequence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClaimResponse.error.code",
            "path": "ClaimResponse.error.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClaimResponse.error.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdjudicationError"
                }
              ],
              "strength": "example",
              "description": "The adjudication error codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication-error"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ClaimResponse",
            "path": "ClaimResponse",
            "min": 0,
            "max": "*"
          },
          {
            "id": "ClaimResponse.identifier",
            "path": "ClaimResponse.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "ClaimResponse.status",
            "path": "ClaimResponse.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimResponseStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "ClaimResponse.type",
            "path": "ClaimResponse.type",
            "comment": "This may contain the local bill type codes, for example the US UB-04 bill type code or the CMS bill type.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimType"
                }
              ],
              "strength": "extensible",
              "description": "The type or discipline-style of the claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-type"
            }
          },
          {
            "id": "ClaimResponse.subType",
            "path": "ClaimResponse.subType",
            "comment": "This may contain the local bill type codes, for example the US UB-04 bill type code or the CMS bill type.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimSubType"
                }
              ],
              "strength": "example",
              "description": "A more granular claim typecode.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-subtype"
            }
          },
          {
            "id": "ClaimResponse.use",
            "path": "ClaimResponse.use",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Use"
                }
              ],
              "strength": "required",
              "description": "Claim, preauthorization, predetermination.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-use|4.0.1"
            }
          },
          {
            "id": "ClaimResponse.patient",
            "path": "ClaimResponse.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClaimResponse.created",
            "path": "ClaimResponse.created",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClaimResponse.insurer",
            "path": "ClaimResponse.insurer",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClaimResponse.requestor",
            "path": "ClaimResponse.requestor",
            "comment": "Typically this field would be 1..1 where this party is responsible for the claim but not necessarily professionally responsible for the provision of the individual products and services listed below.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "ClaimResponse.request",
            "path": "ClaimResponse.request",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Claim"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClaimResponse.outcome",
            "path": "ClaimResponse.outcome",
            "comment": "The resource may be used to indicate that: the request has been held (queued) for processing; that it has been processed and errors found (error); that no errors were found and that some of the adjudication has been undertaken (partial) or that all of the adjudication has been undertaken (complete).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RemittanceOutcome"
                }
              ],
              "strength": "required",
              "description": "The result of the claim processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1"
            }
          },
          {
            "id": "ClaimResponse.disposition",
            "path": "ClaimResponse.disposition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ClaimResponse.preAuthRef",
            "path": "ClaimResponse.preAuthRef",
            "comment": "This value is only present on preauthorization adjudications.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ClaimResponse.preAuthPeriod",
            "path": "ClaimResponse.preAuthPeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "ClaimResponse.payeeType",
            "path": "ClaimResponse.payeeType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PayeeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "A code for the party to be reimbursed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payeetype"
            }
          },
          {
            "id": "ClaimResponse.item",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Item"
              }
            ],
            "path": "ClaimResponse.item",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.itemSequence",
            "path": "ClaimResponse.item.itemSequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.noteNumber",
            "path": "ClaimResponse.item.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.adjudication",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Adjudication"
              }
            ],
            "path": "ClaimResponse.item.adjudication",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.adjudication.category",
            "path": "ClaimResponse.item.adjudication.category",
            "comment": "For example codes indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Adjudication"
                }
              ],
              "strength": "example",
              "description": "The adjudication codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication"
            }
          },
          {
            "id": "ClaimResponse.item.adjudication.reason",
            "path": "ClaimResponse.item.adjudication.reason",
            "comment": "For example may indicate that the funds for this benefit type have been exhausted.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdjudicationReason"
                }
              ],
              "strength": "example",
              "description": "The adjudication reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication-reason"
            }
          },
          {
            "id": "ClaimResponse.item.adjudication.amount",
            "path": "ClaimResponse.item.adjudication.amount",
            "comment": "For example: amount submitted, eligible amount, co-payment, and benefit payable.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.adjudication.value",
            "path": "ClaimResponse.item.adjudication.value",
            "comment": "For example: eligible percentage or co-payment percentage.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ItemDetail"
              }
            ],
            "path": "ClaimResponse.item.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.detail.detailSequence",
            "path": "ClaimResponse.item.detail.detailSequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.detail.noteNumber",
            "path": "ClaimResponse.item.detail.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.detail.adjudication",
            "path": "ClaimResponse.item.detail.adjudication",
            "min": 1,
            "max": "*",
            "contentReference": "#ClaimResponse.item.adjudication"
          },
          {
            "id": "ClaimResponse.item.detail.subDetail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SubDetail"
              }
            ],
            "path": "ClaimResponse.item.detail.subDetail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.detail.subDetail.subDetailSequence",
            "path": "ClaimResponse.item.detail.subDetail.subDetailSequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.detail.subDetail.noteNumber",
            "path": "ClaimResponse.item.detail.subDetail.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.item.detail.subDetail.adjudication",
            "path": "ClaimResponse.item.detail.subDetail.adjudication",
            "min": 0,
            "max": "*",
            "contentReference": "#ClaimResponse.item.adjudication"
          },
          {
            "id": "ClaimResponse.addItem",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItem"
              }
            ],
            "path": "ClaimResponse.addItem",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.itemSequence",
            "path": "ClaimResponse.addItem.itemSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detailSequence",
            "path": "ClaimResponse.addItem.detailSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.subdetailSequence",
            "path": "ClaimResponse.addItem.subdetailSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.provider",
            "path": "ClaimResponse.addItem.provider",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.productOrService",
            "path": "ClaimResponse.addItem.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ClaimResponse.addItem.modifier",
            "path": "ClaimResponse.addItem.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ClaimResponse.addItem.programCode",
            "path": "ClaimResponse.addItem.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "ClaimResponse.addItem.serviced[x]",
            "path": "ClaimResponse.addItem.serviced[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.location[x]",
            "path": "ClaimResponse.addItem.location[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServicePlace"
                }
              ],
              "strength": "example",
              "description": "Place of service: pharmacy, school, prison, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-place"
            }
          },
          {
            "id": "ClaimResponse.addItem.quantity",
            "path": "ClaimResponse.addItem.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.unitPrice",
            "path": "ClaimResponse.addItem.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.factor",
            "path": "ClaimResponse.addItem.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.net",
            "path": "ClaimResponse.addItem.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.bodySite",
            "path": "ClaimResponse.addItem.bodySite",
            "comment": "For example: Providing a tooth code allows an insurer to identify a provider performing a filling on a tooth that was previously removed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OralSites"
                }
              ],
              "strength": "example",
              "description": "The code for the teeth, quadrant, sextant and arch.",
              "valueSet": "http://hl7.org/fhir/ValueSet/tooth"
            }
          },
          {
            "id": "ClaimResponse.addItem.subSite",
            "path": "ClaimResponse.addItem.subSite",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Surface"
                }
              ],
              "strength": "example",
              "description": "The code for the tooth surface and surface combinations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/surface"
            }
          },
          {
            "id": "ClaimResponse.addItem.noteNumber",
            "path": "ClaimResponse.addItem.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.adjudication",
            "path": "ClaimResponse.addItem.adjudication",
            "min": 1,
            "max": "*",
            "contentReference": "#ClaimResponse.item.adjudication"
          },
          {
            "id": "ClaimResponse.addItem.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItemDetail"
              }
            ],
            "path": "ClaimResponse.addItem.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.productOrService",
            "path": "ClaimResponse.addItem.detail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ClaimResponse.addItem.detail.modifier",
            "path": "ClaimResponse.addItem.detail.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ClaimResponse.addItem.detail.quantity",
            "path": "ClaimResponse.addItem.detail.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.unitPrice",
            "path": "ClaimResponse.addItem.detail.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.factor",
            "path": "ClaimResponse.addItem.detail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.net",
            "path": "ClaimResponse.addItem.detail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.noteNumber",
            "path": "ClaimResponse.addItem.detail.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.adjudication",
            "path": "ClaimResponse.addItem.detail.adjudication",
            "min": 1,
            "max": "*",
            "contentReference": "#ClaimResponse.item.adjudication"
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItemSubDetail"
              }
            ],
            "path": "ClaimResponse.addItem.detail.subDetail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.productOrService",
            "path": "ClaimResponse.addItem.detail.subDetail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.modifier",
            "path": "ClaimResponse.addItem.detail.subDetail.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.quantity",
            "path": "ClaimResponse.addItem.detail.subDetail.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.unitPrice",
            "path": "ClaimResponse.addItem.detail.subDetail.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.factor",
            "path": "ClaimResponse.addItem.detail.subDetail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.net",
            "path": "ClaimResponse.addItem.detail.subDetail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.noteNumber",
            "path": "ClaimResponse.addItem.detail.subDetail.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.addItem.detail.subDetail.adjudication",
            "path": "ClaimResponse.addItem.detail.subDetail.adjudication",
            "min": 1,
            "max": "*",
            "contentReference": "#ClaimResponse.item.adjudication"
          },
          {
            "id": "ClaimResponse.adjudication",
            "path": "ClaimResponse.adjudication",
            "min": 0,
            "max": "*",
            "contentReference": "#ClaimResponse.item.adjudication"
          },
          {
            "id": "ClaimResponse.total",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Total"
              }
            ],
            "path": "ClaimResponse.total",
            "comment": "Totals for amounts submitted, co-pays, benefits payable etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClaimResponse.total.category",
            "path": "ClaimResponse.total.category",
            "comment": "For example codes indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Adjudication"
                }
              ],
              "strength": "example",
              "description": "The adjudication codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication"
            }
          },
          {
            "id": "ClaimResponse.total.amount",
            "path": "ClaimResponse.total.amount",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClaimResponse.payment",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Payment"
              }
            ],
            "path": "ClaimResponse.payment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.payment.type",
            "path": "ClaimResponse.payment.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentType"
                }
              ],
              "strength": "example",
              "description": "The type (partial, complete) of the payment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-paymenttype"
            }
          },
          {
            "id": "ClaimResponse.payment.adjustment",
            "path": "ClaimResponse.payment.adjustment",
            "comment": "Insurers will deduct amounts owing from the provider (adjustment), such as a prior overpayment, from the amount owing to the provider (benefits payable) when payment is made to the provider.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ClaimResponse.payment.adjustmentReason",
            "path": "ClaimResponse.payment.adjustmentReason",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentAdjustmentReason"
                }
              ],
              "strength": "example",
              "description": "Payment Adjustment reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payment-adjustment-reason"
            }
          },
          {
            "id": "ClaimResponse.payment.date",
            "path": "ClaimResponse.payment.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ClaimResponse.payment.amount",
            "path": "ClaimResponse.payment.amount",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ClaimResponse.payment.identifier",
            "path": "ClaimResponse.payment.identifier",
            "comment": "For example: EFT number or check number.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "ClaimResponse.fundsReserve",
            "path": "ClaimResponse.fundsReserve",
            "comment": "Fund would be release by a future claim quoting the preAuthRef of this response. Examples of values include: provider, patient, none.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FundsReserve"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "For whom funds are to be reserved: (Patient, Provider, None).",
              "valueSet": "http://hl7.org/fhir/ValueSet/fundsreserve"
            }
          },
          {
            "id": "ClaimResponse.formCode",
            "path": "ClaimResponse.formCode",
            "comment": "May be needed to identify specific jurisdictional forms.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Forms"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "The forms codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/forms"
            }
          },
          {
            "id": "ClaimResponse.form",
            "path": "ClaimResponse.form",
            "comment": "Needed to permit insurers to include the actual form.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              }
            ]
          },
          {
            "id": "ClaimResponse.processNote",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Note"
              }
            ],
            "path": "ClaimResponse.processNote",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.processNote.number",
            "path": "ClaimResponse.processNote.number",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.processNote.type",
            "path": "ClaimResponse.processNote.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NoteType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The presentation types of notes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/note-type|4.0.1"
            }
          },
          {
            "id": "ClaimResponse.processNote.text",
            "path": "ClaimResponse.processNote.text",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ClaimResponse.processNote.language",
            "path": "ClaimResponse.processNote.language",
            "comment": "Only required if the language is different from the resource language.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ClaimResponse.communicationRequest",
            "path": "ClaimResponse.communicationRequest",
            "comment": "For example: professional reports, documents, images, clinical resources, or accident reports.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                ]
              }
            ]
          },
          {
            "id": "ClaimResponse.insurance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Insurance"
              }
            ],
            "path": "ClaimResponse.insurance",
            "comment": "All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.insurance.sequence",
            "path": "ClaimResponse.insurance.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.insurance.focal",
            "path": "ClaimResponse.insurance.focal",
            "comment": "A patient may (will) have multiple insurance policies which provide reimbursement for healthcare services and products. For example a person may also be covered by their spouse's policy and both appear in the list (and may be from the same insurer). This flag will be set to true for only one of the listed policies and that policy will be used for adjudicating this claim. Other claims would be created to request adjudication against the other listed policies.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "ClaimResponse.insurance.coverage",
            "path": "ClaimResponse.insurance.coverage",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ]
          },
          {
            "id": "ClaimResponse.insurance.businessArrangement",
            "path": "ClaimResponse.insurance.businessArrangement",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ClaimResponse.insurance.claimResponse",
            "path": "ClaimResponse.insurance.claimResponse",
            "comment": "Must not be specified when 'focal=true' for this insurance.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ]
          },
          {
            "id": "ClaimResponse.error",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Error"
              }
            ],
            "path": "ClaimResponse.error",
            "comment": "If the request contains errors then an error element should be provided and no adjudication related sections (item, addItem, or payment) should be present.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClaimResponse.error.itemSequence",
            "path": "ClaimResponse.error.itemSequence",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.error.detailSequence",
            "path": "ClaimResponse.error.detailSequence",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.error.subDetailSequence",
            "path": "ClaimResponse.error.subDetailSequence",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ClaimResponse.error.code",
            "path": "ClaimResponse.error.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdjudicationError"
                }
              ],
              "strength": "example",
              "description": "The adjudication error codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication-error"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ClinicalImpression",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ClinicalImpression",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Summary"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ClinicalImpression",
      "version": "4.0.1",
      "name": "ClinicalImpression",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ClinicalImpression",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ClinicalImpression",
            "path": "ClinicalImpression",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.id",
            "path": "ClinicalImpression.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.meta",
            "path": "ClinicalImpression.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.implicitRules",
            "path": "ClinicalImpression.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.language",
            "path": "ClinicalImpression.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ClinicalImpression.text",
            "path": "ClinicalImpression.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.contained",
            "path": "ClinicalImpression.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.extension",
            "path": "ClinicalImpression.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.modifierExtension",
            "path": "ClinicalImpression.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.identifier",
            "path": "ClinicalImpression.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.status",
            "path": "ClinicalImpression.status",
            "comment": "This element is labeled as a modifier because the status contains the code entered-in-error that marks the clinical impression as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClinicalImpressionStatus"
                }
              ],
              "strength": "required",
              "description": "The workflow state of a clinical impression.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinicalimpression-status|4.0.1"
            }
          },
          {
            "id": "ClinicalImpression.statusReason",
            "path": "ClinicalImpression.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"cancelled\".\n\n[distinct reason codes for different statuses can be enforced using invariants if they are universal bindings].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.statusReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClinicalImpressionStatusReason"
                }
              ],
              "strength": "example",
              "description": "Codes identifying the reason for the current state of a clinical impression."
            }
          },
          {
            "id": "ClinicalImpression.code",
            "path": "ClinicalImpression.code",
            "comment": "This is present as a place-holder only and may be removed based on feedback/work group opinion.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClinicalImpressionCode"
                }
              ],
              "strength": "example",
              "description": "Identifies categories of clinical impressions.  This is a place-holder only.  It may be removed."
            }
          },
          {
            "id": "ClinicalImpression.description",
            "path": "ClinicalImpression.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.subject",
            "path": "ClinicalImpression.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.encounter",
            "path": "ClinicalImpression.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.effective[x]",
            "path": "ClinicalImpression.effective[x]",
            "comment": "This SHOULD be accurate to at least the minute, though some assessments only have a known date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.effective[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.date",
            "path": "ClinicalImpression.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.assessor",
            "path": "ClinicalImpression.assessor",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.assessor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.previous",
            "path": "ClinicalImpression.previous",
            "comment": "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",
            "base": {
              "path": "ClinicalImpression.previous",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ClinicalImpression"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.problem",
            "path": "ClinicalImpression.problem",
            "comment": "e.g. The patient is a pregnant, has congestive heart failure, has an ‎Adenocarcinoma, and is allergic to penicillin.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression.problem",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.investigation",
            "path": "ClinicalImpression.investigation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression.investigation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.investigation.id",
            "path": "ClinicalImpression.investigation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.investigation.extension",
            "path": "ClinicalImpression.investigation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.investigation.modifierExtension",
            "path": "ClinicalImpression.investigation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.investigation.code",
            "path": "ClinicalImpression.investigation.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.investigation.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InvestigationGroupType"
                }
              ],
              "strength": "example",
              "description": "A name/code for a set of investigations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/investigation-sets"
            }
          },
          {
            "id": "ClinicalImpression.investigation.item",
            "path": "ClinicalImpression.investigation.item",
            "comment": "Most investigations are observations of one kind or another but some other specific types of data collection resources can also be used.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression.investigation.item",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/RiskAssessment",
                  "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
                  "http://hl7.org/fhir/StructureDefinition/Media"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.protocol",
            "path": "ClinicalImpression.protocol",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression.protocol",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.summary",
            "path": "ClinicalImpression.summary",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.summary",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.finding",
            "path": "ClinicalImpression.finding",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression.finding",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.finding.id",
            "path": "ClinicalImpression.finding.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.finding.extension",
            "path": "ClinicalImpression.finding.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.finding.modifierExtension",
            "path": "ClinicalImpression.finding.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.finding.itemCodeableConcept",
            "path": "ClinicalImpression.finding.itemCodeableConcept",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.finding.itemCodeableConcept",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionKind"
                }
              ],
              "strength": "example",
              "description": "Identification of the Condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "ClinicalImpression.finding.itemReference",
            "path": "ClinicalImpression.finding.itemReference",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.finding.itemReference",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/Media"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.finding.basis",
            "path": "ClinicalImpression.finding.basis",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ClinicalImpression.finding.basis",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.prognosisCodeableConcept",
            "path": "ClinicalImpression.prognosisCodeableConcept",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression.prognosisCodeableConcept",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClinicalImpressionPrognosis"
                }
              ],
              "strength": "example",
              "description": "Prognosis or outlook findings.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis"
            }
          },
          {
            "id": "ClinicalImpression.prognosisReference",
            "path": "ClinicalImpression.prognosisReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression.prognosisReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/RiskAssessment"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.supportingInfo",
            "path": "ClinicalImpression.supportingInfo",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression.supportingInfo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ClinicalImpression.note",
            "path": "ClinicalImpression.note",
            "comment": "Don't use this element for content that should more properly appear as one of the specific elements of the impression.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ClinicalImpression.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ClinicalImpression",
            "path": "ClinicalImpression",
            "min": 0,
            "max": "*"
          },
          {
            "id": "ClinicalImpression.identifier",
            "path": "ClinicalImpression.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.status",
            "path": "ClinicalImpression.status",
            "comment": "This element is labeled as a modifier because the status contains the code entered-in-error that marks the clinical impression as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClinicalImpressionStatus"
                }
              ],
              "strength": "required",
              "description": "The workflow state of a clinical impression.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinicalimpression-status|4.0.1"
            }
          },
          {
            "id": "ClinicalImpression.statusReason",
            "path": "ClinicalImpression.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"cancelled\".\n\n[distinct reason codes for different statuses can be enforced using invariants if they are universal bindings].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClinicalImpressionStatusReason"
                }
              ],
              "strength": "example",
              "description": "Codes identifying the reason for the current state of a clinical impression."
            }
          },
          {
            "id": "ClinicalImpression.code",
            "path": "ClinicalImpression.code",
            "comment": "This is present as a place-holder only and may be removed based on feedback/work group opinion.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClinicalImpressionCode"
                }
              ],
              "strength": "example",
              "description": "Identifies categories of clinical impressions.  This is a place-holder only.  It may be removed."
            }
          },
          {
            "id": "ClinicalImpression.description",
            "path": "ClinicalImpression.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.subject",
            "path": "ClinicalImpression.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.encounter",
            "path": "ClinicalImpression.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.effective[x]",
            "path": "ClinicalImpression.effective[x]",
            "comment": "This SHOULD be accurate to at least the minute, though some assessments only have a known date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.date",
            "path": "ClinicalImpression.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.assessor",
            "path": "ClinicalImpression.assessor",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.previous",
            "path": "ClinicalImpression.previous",
            "comment": "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",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ClinicalImpression"
                ]
              }
            ]
          },
          {
            "id": "ClinicalImpression.problem",
            "path": "ClinicalImpression.problem",
            "comment": "e.g. The patient is a pregnant, has congestive heart failure, has an ‎Adenocarcinoma, and is allergic to penicillin.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ClinicalImpression.investigation",
            "path": "ClinicalImpression.investigation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClinicalImpression.investigation.code",
            "path": "ClinicalImpression.investigation.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InvestigationGroupType"
                }
              ],
              "strength": "example",
              "description": "A name/code for a set of investigations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/investigation-sets"
            }
          },
          {
            "id": "ClinicalImpression.investigation.item",
            "path": "ClinicalImpression.investigation.item",
            "comment": "Most investigations are observations of one kind or another but some other specific types of data collection resources can also be used.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/RiskAssessment",
                  "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
                  "http://hl7.org/fhir/StructureDefinition/Media"
                ]
              }
            ]
          },
          {
            "id": "ClinicalImpression.protocol",
            "path": "ClinicalImpression.protocol",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "ClinicalImpression.summary",
            "path": "ClinicalImpression.summary",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ClinicalImpression.finding",
            "path": "ClinicalImpression.finding",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ClinicalImpression.finding.itemCodeableConcept",
            "path": "ClinicalImpression.finding.itemCodeableConcept",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionKind"
                }
              ],
              "strength": "example",
              "description": "Identification of the Condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "ClinicalImpression.finding.itemReference",
            "path": "ClinicalImpression.finding.itemReference",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/Media"
                ]
              }
            ]
          },
          {
            "id": "ClinicalImpression.finding.basis",
            "path": "ClinicalImpression.finding.basis",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ClinicalImpression.prognosisCodeableConcept",
            "path": "ClinicalImpression.prognosisCodeableConcept",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClinicalImpressionPrognosis"
                }
              ],
              "strength": "example",
              "description": "Prognosis or outlook findings.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis"
            }
          },
          {
            "id": "ClinicalImpression.prognosisReference",
            "path": "ClinicalImpression.prognosisReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/RiskAssessment"
                ]
              }
            ]
          },
          {
            "id": "ClinicalImpression.supportingInfo",
            "path": "ClinicalImpression.supportingInfo",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "ClinicalImpression.note",
            "path": "ClinicalImpression.note",
            "comment": "Don't use this element for content that should more properly appear as one of the specific elements of the impression.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/CodeSystem",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "CodeSystem",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Terminology"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "vocab"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/CodeSystem",
      "version": "4.0.1",
      "name": "CodeSystem",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "CodeSystem",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "CodeSystem",
            "path": "CodeSystem",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "csd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "csd-1",
                "severity": "error",
                "human": "Within a code system definition, all the codes SHALL be unique",
                "expression": "concept.code.combine($this.descendants().concept.code).isDistinct()",
                "xpath": "count(distinct-values(descendant::f:concept/f:code/@value))=count(descendant::f:concept)"
              },
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.id",
            "path": "CodeSystem.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.meta",
            "path": "CodeSystem.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.implicitRules",
            "path": "CodeSystem.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "CodeSystem.language",
            "path": "CodeSystem.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CodeSystem.text",
            "path": "CodeSystem.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.contained",
            "path": "CodeSystem.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.extension",
            "path": "CodeSystem.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.modifierExtension",
            "path": "CodeSystem.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "CodeSystem.url",
            "path": "CodeSystem.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.identifier",
            "path": "CodeSystem.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this code system outside of FHIR, where it is not possible to use the logical URI.  Note that HL7 defines at least three identifiers for many of its code systems - the FHIR canonical URL, the OID and the V2 Table 0396 mnemonic code.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.version",
            "path": "CodeSystem.version",
            "comment": "There may be different code system instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the code system with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.name",
            "path": "CodeSystem.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.title",
            "path": "CodeSystem.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.status",
            "path": "CodeSystem.status",
            "comment": "Allows filtering of code systems that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CodeSystem.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "CodeSystem.experimental",
            "path": "CodeSystem.experimental",
            "comment": "Allows filtering of code systems that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.date",
            "path": "CodeSystem.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the code system. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.publisher",
            "path": "CodeSystem.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the code system is the organization or individual primarily responsible for the maintenance and upkeep of the code system. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the code system. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.contact",
            "path": "CodeSystem.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.description",
            "path": "CodeSystem.description",
            "comment": "This description can be used to capture details such as why the code system was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the code system as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the code system is presumed to be the predominant language in the place the code system was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.useContext",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CodeSystem.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.jurisdiction",
            "path": "CodeSystem.jurisdiction",
            "comment": "It may be possible for the code system to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "CodeSystem.purpose",
            "path": "CodeSystem.purpose",
            "comment": "This element does not describe the usage of the code system. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this code system.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.copyright",
            "path": "CodeSystem.copyright",
            "comment": "... Sometimes, the copyright differs between the code system and the codes that are included. The copyright statement should clearly differentiate between these when required.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.caseSensitive",
            "path": "CodeSystem.caseSensitive",
            "comment": "If this value is missing, then it is not specified whether a code system is case sensitive or not. When the rule is not known, Postel's law should be followed: produce codes with the correct case, and accept codes in any case. This element is primarily provided to support validation software.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.caseSensitive",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.valueSet",
            "path": "CodeSystem.valueSet",
            "comment": "The definition of the value set SHALL include all codes from this code system and only codes from this code system, and it SHALL be immutable.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.valueSet",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.hierarchyMeaning",
            "path": "CodeSystem.hierarchyMeaning",
            "comment": "Note that other representations might have a different hierarchy or none at all, and represent the information using properties.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.hierarchyMeaning",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CodeSystemHierarchyMeaning"
                }
              ],
              "strength": "required",
              "description": "The meaning of the hierarchy of concepts in a code system.",
              "valueSet": "http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning|4.0.1"
            }
          },
          {
            "id": "CodeSystem.compositional",
            "path": "CodeSystem.compositional",
            "comment": "Note that the code system resource does not define what the compositional grammar is, only whether or not there is one.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.compositional",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.versionNeeded",
            "path": "CodeSystem.versionNeeded",
            "comment": "Best practice is that code systems do not redefine concepts, or that if concepts are redefined, a new code system definition is created. But this is not always possible, so some code systems may be defined as 'versionNeeded'.\n\nMost code systems occasionally refine the displays defined for concepts between versions. Contexts in which the concept display values are validated may require that the version be specified for some code systems irrespective of the value of this property.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.versionNeeded",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.content",
            "path": "CodeSystem.content",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CodeSystem.content",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CodeSystemContentMode"
                }
              ],
              "strength": "required",
              "description": "The extent of the content of the code system (the concepts and codes it defines) are represented in a code system resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/codesystem-content-mode|4.0.1"
            }
          },
          {
            "id": "CodeSystem.supplements",
            "path": "CodeSystem.supplements",
            "comment": "The most common use of a code system supplement is to add additional language support.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.supplements",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CodeSystem"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.count",
            "path": "CodeSystem.count",
            "comment": "The count of concepts defined in this resource cannot be more than this value but may be less for several reasons - see the content element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.count",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.filter",
            "path": "CodeSystem.filter",
            "comment": "Note that filters defined in code systems usually require custom code on the part of any terminology engine that will make them available for use in value set filters. For this reason, they are generally only seen in high value published terminologies.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem.filter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.filter.id",
            "path": "CodeSystem.filter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.filter.extension",
            "path": "CodeSystem.filter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.filter.modifierExtension",
            "path": "CodeSystem.filter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CodeSystem.filter.code",
            "path": "CodeSystem.filter.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CodeSystem.filter.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.filter.description",
            "path": "CodeSystem.filter.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.filter.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.filter.operator",
            "path": "CodeSystem.filter.operator",
            "min": 1,
            "max": "*",
            "base": {
              "path": "CodeSystem.filter.operator",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FilterOperator"
                }
              ],
              "strength": "required",
              "description": "The kind of operation to perform as a part of a property based filter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/filter-operator|4.0.1"
            }
          },
          {
            "id": "CodeSystem.filter.value",
            "path": "CodeSystem.filter.value",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CodeSystem.filter.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.property",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Property"
              }
            ],
            "path": "CodeSystem.property",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem.property",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.property.id",
            "path": "CodeSystem.property.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.property.extension",
            "path": "CodeSystem.property.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.property.modifierExtension",
            "path": "CodeSystem.property.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CodeSystem.property.code",
            "path": "CodeSystem.property.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CodeSystem.property.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.property.uri",
            "path": "CodeSystem.property.uri",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.property.uri",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.property.description",
            "path": "CodeSystem.property.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.property.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CodeSystem.property.type",
            "path": "CodeSystem.property.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CodeSystem.property.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PropertyType"
                }
              ],
              "strength": "required",
              "description": "The type of a property value.",
              "valueSet": "http://hl7.org/fhir/ValueSet/concept-property-type|4.0.1"
            }
          },
          {
            "id": "CodeSystem.concept",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ConceptDefinition"
              }
            ],
            "path": "CodeSystem.concept",
            "comment": "If this is empty, it means that the code system resource does not represent the content of the code system.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem.concept",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.id",
            "path": "CodeSystem.concept.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.extension",
            "path": "CodeSystem.concept.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.modifierExtension",
            "path": "CodeSystem.concept.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CodeSystem.concept.code",
            "path": "CodeSystem.concept.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CodeSystem.concept.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.display",
            "path": "CodeSystem.concept.display",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.concept.display",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.definition",
            "path": "CodeSystem.concept.definition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.concept.definition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.designation",
            "path": "CodeSystem.concept.designation",
            "comment": "Concepts have both a ```display``` and an array of ```designation```. The display is equivalent to a special designation with an implied ```designation.use``` of \"primary code\" and a language equal to the [Resource Language](resource.html#language).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem.concept.designation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.designation.id",
            "path": "CodeSystem.concept.designation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.designation.extension",
            "path": "CodeSystem.concept.designation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.designation.modifierExtension",
            "path": "CodeSystem.concept.designation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CodeSystem.concept.designation.language",
            "path": "CodeSystem.concept.designation.language",
            "comment": "In the absence of a language, the resource language applies.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.concept.designation.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CodeSystem.concept.designation.use",
            "path": "CodeSystem.concept.designation.use",
            "comment": "If no use is provided, the designation can be assumed to be suitable for general display to a human user.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CodeSystem.concept.designation.use",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConceptDesignationUse"
                }
              ],
              "strength": "extensible",
              "description": "Details of how a designation would be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/designation-use"
            }
          },
          {
            "id": "CodeSystem.concept.designation.value",
            "path": "CodeSystem.concept.designation.value",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CodeSystem.concept.designation.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.property",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ConceptProperty"
              }
            ],
            "path": "CodeSystem.concept.property",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem.concept.property",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.property.id",
            "path": "CodeSystem.concept.property.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.property.extension",
            "path": "CodeSystem.concept.property.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.property.modifierExtension",
            "path": "CodeSystem.concept.property.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CodeSystem.concept.property.code",
            "path": "CodeSystem.concept.property.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CodeSystem.concept.property.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.property.value[x]",
            "path": "CodeSystem.concept.property.value[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CodeSystem.concept.property.value[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              },
              {
                "code": "Coding"
              },
              {
                "code": "string"
              },
              {
                "code": "integer"
              },
              {
                "code": "boolean"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CodeSystem.concept.concept",
            "path": "CodeSystem.concept.concept",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CodeSystem.concept.concept",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#CodeSystem.concept",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "CodeSystem",
            "path": "CodeSystem",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "csd-1",
                "severity": "error",
                "human": "Within a code system definition, all the codes SHALL be unique",
                "expression": "concept.code.combine($this.descendants().concept.code).isDistinct()",
                "xpath": "count(distinct-values(descendant::f:concept/f:code/@value))=count(descendant::f:concept)"
              },
              {
                "key": "csd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "CodeSystem.url",
            "path": "CodeSystem.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.identifier",
            "path": "CodeSystem.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this code system outside of FHIR, where it is not possible to use the logical URI.  Note that HL7 defines at least three identifiers for many of its code systems - the FHIR canonical URL, the OID and the V2 Table 0396 mnemonic code.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.version",
            "path": "CodeSystem.version",
            "comment": "There may be different code system instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the code system with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.name",
            "path": "CodeSystem.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.title",
            "path": "CodeSystem.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.status",
            "path": "CodeSystem.status",
            "comment": "Allows filtering of code systems that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "CodeSystem.experimental",
            "path": "CodeSystem.experimental",
            "comment": "Allows filtering of code systems that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.date",
            "path": "CodeSystem.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the code system. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.publisher",
            "path": "CodeSystem.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the code system is the organization or individual primarily responsible for the maintenance and upkeep of the code system. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the code system. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.contact",
            "path": "CodeSystem.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.description",
            "path": "CodeSystem.description",
            "comment": "This description can be used to capture details such as why the code system was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the code system as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the code system is presumed to be the predominant language in the place the code system was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CodeSystem.useContext",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "CodeSystem.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.jurisdiction",
            "path": "CodeSystem.jurisdiction",
            "comment": "It may be possible for the code system to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "CodeSystem.purpose",
            "path": "CodeSystem.purpose",
            "comment": "This element does not describe the usage of the code system. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this code system.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CodeSystem.copyright",
            "path": "CodeSystem.copyright",
            "comment": "... Sometimes, the copyright differs between the code system and the codes that are included. The copyright statement should clearly differentiate between these when required.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CodeSystem.caseSensitive",
            "path": "CodeSystem.caseSensitive",
            "comment": "If this value is missing, then it is not specified whether a code system is case sensitive or not. When the rule is not known, Postel's law should be followed: produce codes with the correct case, and accept codes in any case. This element is primarily provided to support validation software.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.valueSet",
            "path": "CodeSystem.valueSet",
            "comment": "The definition of the value set SHALL include all codes from this code system and only codes from this code system, and it SHALL be immutable.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.hierarchyMeaning",
            "path": "CodeSystem.hierarchyMeaning",
            "comment": "Note that other representations might have a different hierarchy or none at all, and represent the information using properties.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CodeSystemHierarchyMeaning"
                }
              ],
              "strength": "required",
              "description": "The meaning of the hierarchy of concepts in a code system.",
              "valueSet": "http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning|4.0.1"
            }
          },
          {
            "id": "CodeSystem.compositional",
            "path": "CodeSystem.compositional",
            "comment": "Note that the code system resource does not define what the compositional grammar is, only whether or not there is one.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.versionNeeded",
            "path": "CodeSystem.versionNeeded",
            "comment": "Best practice is that code systems do not redefine concepts, or that if concepts are redefined, a new code system definition is created. But this is not always possible, so some code systems may be defined as 'versionNeeded'.\n\nMost code systems occasionally refine the displays defined for concepts between versions. Contexts in which the concept display values are validated may require that the version be specified for some code systems irrespective of the value of this property.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.content",
            "path": "CodeSystem.content",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CodeSystemContentMode"
                }
              ],
              "strength": "required",
              "description": "The extent of the content of the code system (the concepts and codes it defines) are represented in a code system resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/codesystem-content-mode|4.0.1"
            }
          },
          {
            "id": "CodeSystem.supplements",
            "path": "CodeSystem.supplements",
            "comment": "The most common use of a code system supplement is to add additional language support.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CodeSystem"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.count",
            "path": "CodeSystem.count",
            "comment": "The count of concepts defined in this resource cannot be more than this value but may be less for several reasons - see the content element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.filter",
            "path": "CodeSystem.filter",
            "comment": "Note that filters defined in code systems usually require custom code on the part of any terminology engine that will make them available for use in value set filters. For this reason, they are generally only seen in high value published terminologies.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.filter.code",
            "path": "CodeSystem.filter.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.filter.description",
            "path": "CodeSystem.filter.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.filter.operator",
            "path": "CodeSystem.filter.operator",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FilterOperator"
                }
              ],
              "strength": "required",
              "description": "The kind of operation to perform as a part of a property based filter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/filter-operator|4.0.1"
            }
          },
          {
            "id": "CodeSystem.filter.value",
            "path": "CodeSystem.filter.value",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.property",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Property"
              }
            ],
            "path": "CodeSystem.property",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.property.code",
            "path": "CodeSystem.property.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.property.uri",
            "path": "CodeSystem.property.uri",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.property.description",
            "path": "CodeSystem.property.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CodeSystem.property.type",
            "path": "CodeSystem.property.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PropertyType"
                }
              ],
              "strength": "required",
              "description": "The type of a property value.",
              "valueSet": "http://hl7.org/fhir/ValueSet/concept-property-type|4.0.1"
            }
          },
          {
            "id": "CodeSystem.concept",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ConceptDefinition"
              }
            ],
            "path": "CodeSystem.concept",
            "comment": "If this is empty, it means that the code system resource does not represent the content of the code system.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CodeSystem.concept.code",
            "path": "CodeSystem.concept.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "CodeSystem.concept.display",
            "path": "CodeSystem.concept.display",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CodeSystem.concept.definition",
            "path": "CodeSystem.concept.definition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CodeSystem.concept.designation",
            "path": "CodeSystem.concept.designation",
            "comment": "Concepts have both a ```display``` and an array of ```designation```. The display is equivalent to a special designation with an implied ```designation.use``` of \"primary code\" and a language equal to the [Resource Language](resource.html#language).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CodeSystem.concept.designation.language",
            "path": "CodeSystem.concept.designation.language",
            "comment": "In the absence of a language, the resource language applies.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CodeSystem.concept.designation.use",
            "path": "CodeSystem.concept.designation.use",
            "comment": "If no use is provided, the designation can be assumed to be suitable for general display to a human user.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConceptDesignationUse"
                }
              ],
              "strength": "extensible",
              "description": "Details of how a designation would be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/designation-use"
            }
          },
          {
            "id": "CodeSystem.concept.designation.value",
            "path": "CodeSystem.concept.designation.value",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CodeSystem.concept.property",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ConceptProperty"
              }
            ],
            "path": "CodeSystem.concept.property",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CodeSystem.concept.property.code",
            "path": "CodeSystem.concept.property.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "CodeSystem.concept.property.value[x]",
            "path": "CodeSystem.concept.property.value[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              },
              {
                "code": "Coding"
              },
              {
                "code": "string"
              },
              {
                "code": "integer"
              },
              {
                "code": "boolean"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "CodeSystem.concept.concept",
            "path": "CodeSystem.concept.concept",
            "min": 0,
            "max": "*",
            "contentReference": "#CodeSystem.concept"
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Communication",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Communication",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Request & Response"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Communication",
      "version": "4.0.1",
      "name": "Communication",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Communication",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Communication",
            "path": "Communication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.id",
            "path": "Communication.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Communication.meta",
            "path": "Communication.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Communication.implicitRules",
            "path": "Communication.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Communication.language",
            "path": "Communication.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Communication.text",
            "path": "Communication.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.contained",
            "path": "Communication.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.extension",
            "path": "Communication.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.modifierExtension",
            "path": "Communication.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Communication.identifier",
            "path": "Communication.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Communication.instantiatesCanonical",
            "path": "Communication.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.instantiatesCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Measure",
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Communication.instantiatesUri",
            "path": "Communication.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.instantiatesUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Communication.basedOn",
            "path": "Communication.basedOn",
            "comment": "This must point to some sort of a 'Request' resource, such as CarePlan, CommunicationRequest, ServiceRequest, MedicationRequest, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Communication.partOf",
            "path": "Communication.partOf",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Communication.inResponseTo",
            "path": "Communication.inResponseTo",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.inResponseTo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Communication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.status",
            "path": "Communication.status",
            "comment": "This element is labeled as a modifier because the status contains the codes aborted and entered-in-error that mark the communication as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Communication.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the communication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/event-status|4.0.1"
            }
          },
          {
            "id": "Communication.statusReason",
            "path": "Communication.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"aborted\". The reason for performing the event at all is captured in reasonCode, not here.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Communication.statusReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationNotDoneReason"
                }
              ],
              "strength": "example",
              "description": "Codes for the reason why a communication did not happen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/communication-not-done-reason"
            }
          },
          {
            "id": "Communication.category",
            "path": "Communication.category",
            "comment": "There may be multiple axes of categorization and one communication may serve multiple purposes.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationCategory"
                }
              ],
              "strength": "example",
              "description": "Codes for general categories of communications such as alerts, instructions, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/communication-category"
            }
          },
          {
            "id": "Communication.priority",
            "path": "Communication.priority",
            "comment": "Used to prioritize workflow (such as which communication to read first) when the communication is planned or in progress.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Communication.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this communication should be treated with normal priority",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationPriority"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the relative importance of a communication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "Communication.medium",
            "path": "Communication.medium",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.medium",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationMedium"
                }
              ],
              "strength": "example",
              "description": "Codes for communication mediums such as phone, fax, email, in person, etc.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ParticipationMode"
            }
          },
          {
            "id": "Communication.subject",
            "path": "Communication.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Communication.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Communication.topic",
            "path": "Communication.topic",
            "comment": "Communication.topic.text can be used without any codings.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Communication.topic",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationTopic"
                }
              ],
              "strength": "example",
              "description": "Codes describing the purpose or content of the communication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/communication-topic"
            }
          },
          {
            "id": "Communication.about",
            "path": "Communication.about",
            "comment": "Don't use Communication.about element when a more specific element exists, such as basedOn or reasonReference.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.about",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.encounter",
            "path": "Communication.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Communication.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Communication.sent",
            "path": "Communication.sent",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Communication.sent",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.received",
            "path": "Communication.received",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Communication.received",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.recipient",
            "path": "Communication.recipient",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.recipient",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.sender",
            "path": "Communication.sender",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Communication.sender",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.reasonCode",
            "path": "Communication.reasonCode",
            "comment": "Textual reasons can be captured using reasonCode.text.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationReason"
                }
              ],
              "strength": "example",
              "description": "Codes for describing reasons for the occurrence of a communication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "Communication.reasonReference",
            "path": "Communication.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Communication.payload",
            "path": "Communication.payload",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.payload",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.payload.id",
            "path": "Communication.payload.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.payload.extension",
            "path": "Communication.payload.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.payload.modifierExtension",
            "path": "Communication.payload.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Communication.payload.content[x]",
            "path": "Communication.payload.content[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Communication.payload.content[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Communication.note",
            "path": "Communication.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Communication.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Communication",
            "path": "Communication",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Communication.identifier",
            "path": "Communication.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Communication.instantiatesCanonical",
            "path": "Communication.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Measure",
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Communication.instantiatesUri",
            "path": "Communication.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Communication.basedOn",
            "path": "Communication.basedOn",
            "comment": "This must point to some sort of a 'Request' resource, such as CarePlan, CommunicationRequest, ServiceRequest, MedicationRequest, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Communication.partOf",
            "path": "Communication.partOf",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Communication.inResponseTo",
            "path": "Communication.inResponseTo",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Communication"
                ]
              }
            ]
          },
          {
            "id": "Communication.status",
            "path": "Communication.status",
            "comment": "This element is labeled as a modifier because the status contains the codes aborted and entered-in-error that mark the communication as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the communication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/event-status|4.0.1"
            }
          },
          {
            "id": "Communication.statusReason",
            "path": "Communication.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"aborted\". The reason for performing the event at all is captured in reasonCode, not here.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationNotDoneReason"
                }
              ],
              "strength": "example",
              "description": "Codes for the reason why a communication did not happen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/communication-not-done-reason"
            }
          },
          {
            "id": "Communication.category",
            "path": "Communication.category",
            "comment": "There may be multiple axes of categorization and one communication may serve multiple purposes.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationCategory"
                }
              ],
              "strength": "example",
              "description": "Codes for general categories of communications such as alerts, instructions, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/communication-category"
            }
          },
          {
            "id": "Communication.priority",
            "path": "Communication.priority",
            "comment": "Used to prioritize workflow (such as which communication to read first) when the communication is planned or in progress.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this communication should be treated with normal priority",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationPriority"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the relative importance of a communication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "Communication.medium",
            "path": "Communication.medium",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationMedium"
                }
              ],
              "strength": "example",
              "description": "Codes for communication mediums such as phone, fax, email, in person, etc.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ParticipationMode"
            }
          },
          {
            "id": "Communication.subject",
            "path": "Communication.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Communication.topic",
            "path": "Communication.topic",
            "comment": "Communication.topic.text can be used without any codings.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationTopic"
                }
              ],
              "strength": "example",
              "description": "Codes describing the purpose or content of the communication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/communication-topic"
            }
          },
          {
            "id": "Communication.about",
            "path": "Communication.about",
            "comment": "Don't use Communication.about element when a more specific element exists, such as basedOn or reasonReference.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Communication.encounter",
            "path": "Communication.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Communication.sent",
            "path": "Communication.sent",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Communication.received",
            "path": "Communication.received",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Communication.recipient",
            "path": "Communication.recipient",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ]
          },
          {
            "id": "Communication.sender",
            "path": "Communication.sender",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ]
          },
          {
            "id": "Communication.reasonCode",
            "path": "Communication.reasonCode",
            "comment": "Textual reasons can be captured using reasonCode.text.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationReason"
                }
              ],
              "strength": "example",
              "description": "Codes for describing reasons for the occurrence of a communication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "Communication.reasonReference",
            "path": "Communication.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Communication.payload",
            "path": "Communication.payload",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Communication.payload.content[x]",
            "path": "Communication.payload.content[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Communication.note",
            "path": "Communication.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "CommunicationRequest",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Request & Response"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
      "version": "4.0.1",
      "name": "CommunicationRequest",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "CommunicationRequest",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "CommunicationRequest",
            "path": "CommunicationRequest",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.id",
            "path": "CommunicationRequest.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.meta",
            "path": "CommunicationRequest.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.implicitRules",
            "path": "CommunicationRequest.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.language",
            "path": "CommunicationRequest.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CommunicationRequest.text",
            "path": "CommunicationRequest.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.contained",
            "path": "CommunicationRequest.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.extension",
            "path": "CommunicationRequest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.modifierExtension",
            "path": "CommunicationRequest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.identifier",
            "path": "CommunicationRequest.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.basedOn",
            "path": "CommunicationRequest.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.replaces",
            "path": "CommunicationRequest.replaces",
            "comment": "The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.replaces",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.groupIdentifier",
            "path": "CommunicationRequest.groupIdentifier",
            "comment": "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition.  Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.groupIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.status",
            "path": "CommunicationRequest.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationRequestStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the communication request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "CommunicationRequest.statusReason",
            "path": "CommunicationRequest.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"suspended\" or \"cancelled\".  The reason why the CommunicationRequest was created at all is captured in reasonCode, not here.  [distinct reason codes for different statuses can be enforced using invariants if they are universal bindings].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.statusReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationRequestStatusReason"
                }
              ],
              "strength": "example",
              "description": "Codes identifying the reason for the current state of a request."
            }
          },
          {
            "id": "CommunicationRequest.category",
            "path": "CommunicationRequest.category",
            "comment": "There may be multiple axes of categorization and one communication request may serve multiple purposes.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationCategory"
                }
              ],
              "strength": "example",
              "description": "Codes for general categories of communications such as alerts, instruction, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/communication-category"
            }
          },
          {
            "id": "CommunicationRequest.priority",
            "path": "CommunicationRequest.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this task should be performed with normal priority",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationPriority"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the relative importance of a communication request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "CommunicationRequest.doNotPerform",
            "path": "CommunicationRequest.doNotPerform",
            "comment": "The attributes provided with the request qualify what is not to be done.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.doNotPerform",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If do not perform is not specified, the request is a positive request e.g. \"do perform\"",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If true this element negates the specified action. For Example,  instead of a request for a communication, it is a request for the communication to not occur.",
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.medium",
            "path": "CommunicationRequest.medium",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.medium",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationMedium"
                }
              ],
              "strength": "example",
              "description": "Codes for communication mediums such as phone, fax, email, in person, etc.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ParticipationMode"
            }
          },
          {
            "id": "CommunicationRequest.subject",
            "path": "CommunicationRequest.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.about",
            "path": "CommunicationRequest.about",
            "comment": "Don't use CommunicationRequest.about element when a more specific element exists, such as basedOn, reasonReference, or replaces.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.about",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.encounter",
            "path": "CommunicationRequest.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.payload",
            "path": "CommunicationRequest.payload",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.payload",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.payload.id",
            "path": "CommunicationRequest.payload.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.payload.extension",
            "path": "CommunicationRequest.payload.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.payload.modifierExtension",
            "path": "CommunicationRequest.payload.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.payload.content[x]",
            "path": "CommunicationRequest.payload.content[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.payload.content[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.occurrence[x]",
            "path": "CommunicationRequest.occurrence[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.occurrence[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.authoredOn",
            "path": "CommunicationRequest.authoredOn",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.authoredOn",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.requester",
            "path": "CommunicationRequest.requester",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.requester",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.recipient",
            "path": "CommunicationRequest.recipient",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.recipient",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CommunicationRequest.sender",
            "path": "CommunicationRequest.sender",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CommunicationRequest.sender",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.reasonCode",
            "path": "CommunicationRequest.reasonCode",
            "comment": "Textual reasons can be captured using reasonCode.text.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationReason"
                }
              ],
              "strength": "example",
              "description": "Codes for describing reasons for the occurrence of a communication.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActReason"
            }
          },
          {
            "id": "CommunicationRequest.reasonReference",
            "path": "CommunicationRequest.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.note",
            "path": "CommunicationRequest.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CommunicationRequest.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "CommunicationRequest",
            "path": "CommunicationRequest",
            "min": 0,
            "max": "*"
          },
          {
            "id": "CommunicationRequest.identifier",
            "path": "CommunicationRequest.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.basedOn",
            "path": "CommunicationRequest.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.replaces",
            "path": "CommunicationRequest.replaces",
            "comment": "The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.groupIdentifier",
            "path": "CommunicationRequest.groupIdentifier",
            "comment": "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition.  Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.status",
            "path": "CommunicationRequest.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationRequestStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the communication request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "CommunicationRequest.statusReason",
            "path": "CommunicationRequest.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"suspended\" or \"cancelled\".  The reason why the CommunicationRequest was created at all is captured in reasonCode, not here.  [distinct reason codes for different statuses can be enforced using invariants if they are universal bindings].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationRequestStatusReason"
                }
              ],
              "strength": "example",
              "description": "Codes identifying the reason for the current state of a request."
            }
          },
          {
            "id": "CommunicationRequest.category",
            "path": "CommunicationRequest.category",
            "comment": "There may be multiple axes of categorization and one communication request may serve multiple purposes.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationCategory"
                }
              ],
              "strength": "example",
              "description": "Codes for general categories of communications such as alerts, instruction, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/communication-category"
            }
          },
          {
            "id": "CommunicationRequest.priority",
            "path": "CommunicationRequest.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this task should be performed with normal priority",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationPriority"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the relative importance of a communication request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "CommunicationRequest.doNotPerform",
            "path": "CommunicationRequest.doNotPerform",
            "comment": "The attributes provided with the request qualify what is not to be done.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If do not perform is not specified, the request is a positive request e.g. \"do perform\"",
            "isModifier": true,
            "isModifierReason": "If true this element negates the specified action. For Example,  instead of a request for a communication, it is a request for the communication to not occur.",
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.medium",
            "path": "CommunicationRequest.medium",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationMedium"
                }
              ],
              "strength": "example",
              "description": "Codes for communication mediums such as phone, fax, email, in person, etc.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ParticipationMode"
            }
          },
          {
            "id": "CommunicationRequest.subject",
            "path": "CommunicationRequest.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ]
          },
          {
            "id": "CommunicationRequest.about",
            "path": "CommunicationRequest.about",
            "comment": "Don't use CommunicationRequest.about element when a more specific element exists, such as basedOn, reasonReference, or replaces.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "CommunicationRequest.encounter",
            "path": "CommunicationRequest.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.payload",
            "path": "CommunicationRequest.payload",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CommunicationRequest.payload.content[x]",
            "path": "CommunicationRequest.payload.content[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "CommunicationRequest.occurrence[x]",
            "path": "CommunicationRequest.occurrence[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.authoredOn",
            "path": "CommunicationRequest.authoredOn",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.requester",
            "path": "CommunicationRequest.requester",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.recipient",
            "path": "CommunicationRequest.recipient",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ]
          },
          {
            "id": "CommunicationRequest.sender",
            "path": "CommunicationRequest.sender",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.reasonCode",
            "path": "CommunicationRequest.reasonCode",
            "comment": "Textual reasons can be captured using reasonCode.text.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CommunicationReason"
                }
              ],
              "strength": "example",
              "description": "Codes for describing reasons for the occurrence of a communication.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActReason"
            }
          },
          {
            "id": "CommunicationRequest.reasonReference",
            "path": "CommunicationRequest.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CommunicationRequest.note",
            "path": "CommunicationRequest.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/CompartmentDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "CompartmentDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Conformance"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/CompartmentDefinition",
      "version": "4.0.1",
      "name": "CompartmentDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "CompartmentDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "CompartmentDefinition",
            "path": "CompartmentDefinition",
            "comment": "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": 0,
            "max": "*",
            "base": {
              "path": "CompartmentDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "cpd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CompartmentDefinition.id",
            "path": "CompartmentDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.meta",
            "path": "CompartmentDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.implicitRules",
            "path": "CompartmentDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.language",
            "path": "CompartmentDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CompartmentDefinition.text",
            "path": "CompartmentDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CompartmentDefinition.contained",
            "path": "CompartmentDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CompartmentDefinition.extension",
            "path": "CompartmentDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CompartmentDefinition.modifierExtension",
            "path": "CompartmentDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "CompartmentDefinition.url",
            "path": "CompartmentDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.version",
            "path": "CompartmentDefinition.version",
            "comment": "There may be different compartment definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the compartment definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.name",
            "path": "CompartmentDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.This is often the same as the code for the parameter, but does not need to be.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.status",
            "path": "CompartmentDefinition.status",
            "comment": "Allows filtering of compartment definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "CompartmentDefinition.experimental",
            "path": "CompartmentDefinition.experimental",
            "comment": "Allows filtering of compartment definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.date",
            "path": "CompartmentDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the compartment definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.publisher",
            "path": "CompartmentDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the compartment definition is the organization or individual primarily responsible for the maintenance and upkeep of the compartment definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the compartment definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.contact",
            "path": "CompartmentDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CompartmentDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.description",
            "path": "CompartmentDefinition.description",
            "comment": "This description can be used to capture details such as why the compartment definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the compartment definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the compartment definition is presumed to be the predominant language in the place the compartment definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CompartmentDefinition.useContext",
            "path": "CompartmentDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CompartmentDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.purpose",
            "path": "CompartmentDefinition.purpose",
            "comment": "This element does not describe the usage of the compartment definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this compartment definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CompartmentDefinition.code",
            "path": "CompartmentDefinition.code",
            "comment": "Only the specification can define the compartments that can exist. Servers can choose to support them.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompartmentType"
                }
              ],
              "strength": "required",
              "description": "Which type a compartment definition describes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/compartment-type|4.0.1"
            }
          },
          {
            "id": "CompartmentDefinition.search",
            "path": "CompartmentDefinition.search",
            "comment": "Servers may define and use compartments to manage logical access without implementing the compartment related syntax.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.search",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.resource",
            "path": "CompartmentDefinition.resource",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CompartmentDefinition.resource",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.resource.id",
            "path": "CompartmentDefinition.resource.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CompartmentDefinition.resource.extension",
            "path": "CompartmentDefinition.resource.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CompartmentDefinition.resource.modifierExtension",
            "path": "CompartmentDefinition.resource.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.resource.code",
            "path": "CompartmentDefinition.resource.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.resource.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "CompartmentDefinition.resource.param",
            "path": "CompartmentDefinition.resource.param",
            "comment": "If no search parameters are listed, then the resource is not linked to the compartment.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CompartmentDefinition.resource.param",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.resource.documentation",
            "path": "CompartmentDefinition.resource.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CompartmentDefinition.resource.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "CompartmentDefinition",
            "path": "CompartmentDefinition",
            "comment": "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": 0,
            "max": "*",
            "constraint": [
              {
                "key": "cpd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "CompartmentDefinition.url",
            "path": "CompartmentDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.version",
            "path": "CompartmentDefinition.version",
            "comment": "There may be different compartment definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the compartment definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.name",
            "path": "CompartmentDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.This is often the same as the code for the parameter, but does not need to be.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.status",
            "path": "CompartmentDefinition.status",
            "comment": "Allows filtering of compartment definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "CompartmentDefinition.experimental",
            "path": "CompartmentDefinition.experimental",
            "comment": "Allows filtering of compartment definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.date",
            "path": "CompartmentDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the compartment definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.publisher",
            "path": "CompartmentDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the compartment definition is the organization or individual primarily responsible for the maintenance and upkeep of the compartment definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the compartment definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.contact",
            "path": "CompartmentDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.description",
            "path": "CompartmentDefinition.description",
            "comment": "This description can be used to capture details such as why the compartment definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the compartment definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the compartment definition is presumed to be the predominant language in the place the compartment definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CompartmentDefinition.useContext",
            "path": "CompartmentDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.purpose",
            "path": "CompartmentDefinition.purpose",
            "comment": "This element does not describe the usage of the compartment definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this compartment definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "CompartmentDefinition.code",
            "path": "CompartmentDefinition.code",
            "comment": "Only the specification can define the compartments that can exist. Servers can choose to support them.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompartmentType"
                }
              ],
              "strength": "required",
              "description": "Which type a compartment definition describes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/compartment-type|4.0.1"
            }
          },
          {
            "id": "CompartmentDefinition.search",
            "path": "CompartmentDefinition.search",
            "comment": "Servers may define and use compartments to manage logical access without implementing the compartment related syntax.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.resource",
            "path": "CompartmentDefinition.resource",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.resource.code",
            "path": "CompartmentDefinition.resource.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "CompartmentDefinition.resource.param",
            "path": "CompartmentDefinition.resource.param",
            "comment": "If no search parameters are listed, then the resource is not linked to the compartment.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CompartmentDefinition.resource.documentation",
            "path": "CompartmentDefinition.resource.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Composition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Composition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Documents"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "sd"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Composition",
      "version": "4.0.1",
      "name": "Composition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "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": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Composition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Composition",
            "path": "Composition",
            "comment": "While the focus of this specification is on patient-specific clinical statements, this resource can also apply to other healthcare-related statements such as study protocol designs, healthcare invoices and other activities that are not necessarily patient-specific or clinical.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.id",
            "path": "Composition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.meta",
            "path": "Composition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.implicitRules",
            "path": "Composition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Composition.language",
            "path": "Composition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Composition.text",
            "path": "Composition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.contained",
            "path": "Composition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.extension",
            "path": "Composition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.modifierExtension",
            "path": "Composition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Composition.identifier",
            "path": "Composition.identifier",
            "comment": "Similar to ClinicalDocument/setId in CDA. See discussion in resource definition for how these relate.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.status",
            "path": "Composition.status",
            "comment": "If a composition is marked as withdrawn, the compositions/documents in the series, or data from the composition or document series, should never be displayed to a user without being clearly marked as untrustworthy. The flag \"entered-in-error\" is why this element is labeled as a modifier of other elements.   \n\nSome reporting work flows require that the original narrative of a final document never be altered; instead, only new narrative can be added. The composition resource has no explicit status for explicitly noting whether this business rule is in effect. This would be handled by an extension if required.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Composition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompositionStatus"
                }
              ],
              "strength": "required",
              "description": "The workflow/clinical status of the composition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/composition-status|4.0.1"
            }
          },
          {
            "id": "Composition.type",
            "path": "Composition.type",
            "comment": "For Composition type, LOINC is ubiquitous and strongly endorsed by HL7. Most implementation guides will require a specific LOINC code, or use LOINC as an extensible binding.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Composition.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentType"
                }
              ],
              "strength": "preferred",
              "description": "Type of a composition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/doc-typecodes"
            }
          },
          {
            "id": "Composition.category",
            "path": "Composition.category",
            "comment": "This is a metadata field from [XDS/MHD](http://wiki.ihe.net/index.php?title=Mobile_access_to_Health_Documents_(MHD)).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentCategory"
                }
              ],
              "strength": "example",
              "description": "High-level kind of a clinical document at a macro level.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-classcodes"
            }
          },
          {
            "id": "Composition.subject",
            "path": "Composition.subject",
            "comment": "For clinical documents, this is usually the patient.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.encounter",
            "path": "Composition.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.date",
            "path": "Composition.date",
            "comment": "The Last Modified Date on the composition may be after the date of the document was attested without being changed.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Composition.date",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.author",
            "path": "Composition.author",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Composition.author",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.title",
            "path": "Composition.title",
            "comment": "For many compositions, the title is the same as the text or a display name of Composition.type (e.g. a \"consultation\" or \"progress note\"). Note that CDA does not make title mandatory, but there are no known cases where it is useful for title to be omitted, so it is mandatory here. Feedback on this requirement is welcome during the trial use period.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Composition.title",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.confidentiality",
            "path": "Composition.confidentiality",
            "comment": "The exact use of this element, and enforcement and issues related to highly sensitive documents are out of scope for the base specification, and delegated to implementation profiles (see security section).  This element is labeled as a modifier because highly confidential documents must not be treated as if they are not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.confidentiality",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentConfidentiality"
                }
              ],
              "strength": "required",
              "description": "Codes specifying the level of confidentiality of the composition.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26"
            }
          },
          {
            "id": "Composition.attester",
            "path": "Composition.attester",
            "comment": "Only list each attester once.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition.attester",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.attester.id",
            "path": "Composition.attester.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.attester.extension",
            "path": "Composition.attester.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.attester.modifierExtension",
            "path": "Composition.attester.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Composition.attester.mode",
            "path": "Composition.attester.mode",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Composition.attester.mode",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompositionAttestationMode"
                }
              ],
              "strength": "required",
              "description": "The way in which a person authenticated a composition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1"
            }
          },
          {
            "id": "Composition.attester.time",
            "path": "Composition.attester.time",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.attester.time",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.attester.party",
            "path": "Composition.attester.party",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.attester.party",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.custodian",
            "path": "Composition.custodian",
            "comment": "This is useful when documents are derived from a composition - provides guidance for how to get the latest version of the document. This is optional because this is sometimes not known by the authoring system, and can be inferred by context. However, it is important that this information be known when working with a derived document, so providing a custodian is encouraged.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.custodian",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.relatesTo",
            "path": "Composition.relatesTo",
            "comment": "A document is a version specific composition.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition.relatesTo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.relatesTo.id",
            "path": "Composition.relatesTo.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.relatesTo.extension",
            "path": "Composition.relatesTo.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.relatesTo.modifierExtension",
            "path": "Composition.relatesTo.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Composition.relatesTo.code",
            "path": "Composition.relatesTo.code",
            "comment": "If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Composition.relatesTo.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentRelationshipType"
                }
              ],
              "strength": "required",
              "description": "The type of relationship between documents.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"
            }
          },
          {
            "id": "Composition.relatesTo.target[x]",
            "path": "Composition.relatesTo.target[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Composition.relatesTo.target[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Composition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.event",
            "path": "Composition.event",
            "comment": "The event needs to be consistent with the type element, though can provide further information if desired.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition.event",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.event.id",
            "path": "Composition.event.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.event.extension",
            "path": "Composition.event.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.event.modifierExtension",
            "path": "Composition.event.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Composition.event.code",
            "path": "Composition.event.code",
            "comment": "An event can further specialize the act inherent in the typeCode, such as where it is simply \"Procedure Report\" and the procedure was a \"colonoscopy\". If one or more eventCodes are included, they SHALL NOT conflict with the values inherent in the classCode, practiceSettingCode or typeCode, as such a conflict would create an ambiguous situation. This short list of codes is provided to be used as key words for certain types of queries.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition.event.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentEventType"
                }
              ],
              "strength": "example",
              "description": "This list of codes represents the main clinical acts being documented.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode"
            }
          },
          {
            "id": "Composition.event.period",
            "path": "Composition.event.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.event.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.event.detail",
            "path": "Composition.event.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition.event.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Composition.section",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Section"
              }
            ],
            "path": "Composition.section",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition.section",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "cmp-1",
                "severity": "error",
                "human": "A section must contain at least one of text, entries, or sub-sections",
                "expression": "text.exists() or entry.exists() or section.exists()",
                "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)"
              },
              {
                "key": "cmp-2",
                "severity": "error",
                "human": "A section can only have an emptyReason if it is empty",
                "expression": "emptyReason.empty() or entry.empty()",
                "xpath": "not(exists(f:emptyReason) and exists(f:entry))"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.section.id",
            "path": "Composition.section.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.section.extension",
            "path": "Composition.section.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.section.modifierExtension",
            "path": "Composition.section.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Composition.section.title",
            "path": "Composition.section.title",
            "comment": "The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title,  or documents that only have a single section. Most Implementation Guides will make section title to be a required element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.section.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.section.code",
            "path": "Composition.section.code",
            "comment": "The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document.   \n\nIf the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.section.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompositionSectionType"
                }
              ],
              "strength": "example",
              "description": "Classification of a section of a composition/document.",
              "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
            }
          },
          {
            "id": "Composition.section.author",
            "path": "Composition.section.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition.section.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.section.focus",
            "path": "Composition.section.focus",
            "comment": "Typically, sections in a doument are about the subject of the document, whether that is a  patient, or group of patients, location, or device, or whatever. For some kind of documents, some sections actually contain data about related entities. Typical examples are  a section in a newborn discharge summary concerning the mother, or family history documents, with a section about each family member, though there are many other examples.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.section.focus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.section.text",
            "path": "Composition.section.text",
            "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.section.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "condition": [
              "cmp-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.section.mode",
            "path": "Composition.section.mode",
            "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.section.mode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SectionMode"
                }
              ],
              "strength": "required",
              "description": "The processing mode that applies to this section.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
            }
          },
          {
            "id": "Composition.section.orderedBy",
            "path": "Composition.section.orderedBy",
            "comment": "Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.section.orderedBy",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SectionEntryOrder"
                }
              ],
              "strength": "preferred",
              "description": "What order applies to the items in the entry.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
            }
          },
          {
            "id": "Composition.section.entry",
            "path": "Composition.section.entry",
            "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition.section.entry",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "condition": [
              "cmp-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Composition.section.emptyReason",
            "path": "Composition.section.emptyReason",
            "comment": "The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Composition.section.emptyReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "cmp-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SectionEmptyReason"
                }
              ],
              "strength": "preferred",
              "description": "If a section is empty, why it is empty.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
            }
          },
          {
            "id": "Composition.section.section",
            "path": "Composition.section.section",
            "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Composition.section.section",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#Composition.section",
            "condition": [
              "cmp-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Composition",
            "path": "Composition",
            "comment": "While the focus of this specification is on patient-specific clinical statements, this resource can also apply to other healthcare-related statements such as study protocol designs, healthcare invoices and other activities that are not necessarily patient-specific or clinical.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Composition.identifier",
            "path": "Composition.identifier",
            "comment": "Similar to ClinicalDocument/setId in CDA. See discussion in resource definition for how these relate.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Composition.status",
            "path": "Composition.status",
            "comment": "If a composition is marked as withdrawn, the compositions/documents in the series, or data from the composition or document series, should never be displayed to a user without being clearly marked as untrustworthy. The flag \"entered-in-error\" is why this element is labeled as a modifier of other elements.   \n\nSome reporting work flows require that the original narrative of a final document never be altered; instead, only new narrative can be added. The composition resource has no explicit status for explicitly noting whether this business rule is in effect. This would be handled by an extension if required.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompositionStatus"
                }
              ],
              "strength": "required",
              "description": "The workflow/clinical status of the composition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/composition-status|4.0.1"
            }
          },
          {
            "id": "Composition.type",
            "path": "Composition.type",
            "comment": "For Composition type, LOINC is ubiquitous and strongly endorsed by HL7. Most implementation guides will require a specific LOINC code, or use LOINC as an extensible binding.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentType"
                }
              ],
              "strength": "preferred",
              "description": "Type of a composition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/doc-typecodes"
            }
          },
          {
            "id": "Composition.category",
            "path": "Composition.category",
            "comment": "This is a metadata field from [XDS/MHD](http://wiki.ihe.net/index.php?title=Mobile_access_to_Health_Documents_(MHD)).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentCategory"
                }
              ],
              "strength": "example",
              "description": "High-level kind of a clinical document at a macro level.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-classcodes"
            }
          },
          {
            "id": "Composition.subject",
            "path": "Composition.subject",
            "comment": "For clinical documents, this is usually the patient.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Composition.encounter",
            "path": "Composition.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Composition.date",
            "path": "Composition.date",
            "comment": "The Last Modified Date on the composition may be after the date of the document was attested without being changed.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Composition.author",
            "path": "Composition.author",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Composition.title",
            "path": "Composition.title",
            "comment": "For many compositions, the title is the same as the text or a display name of Composition.type (e.g. a \"consultation\" or \"progress note\"). Note that CDA does not make title mandatory, but there are no known cases where it is useful for title to be omitted, so it is mandatory here. Feedback on this requirement is welcome during the trial use period.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Composition.confidentiality",
            "path": "Composition.confidentiality",
            "comment": "The exact use of this element, and enforcement and issues related to highly sensitive documents are out of scope for the base specification, and delegated to implementation profiles (see security section).  This element is labeled as a modifier because highly confidential documents must not be treated as if they are not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentConfidentiality"
                }
              ],
              "strength": "required",
              "description": "Codes specifying the level of confidentiality of the composition.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26"
            }
          },
          {
            "id": "Composition.attester",
            "path": "Composition.attester",
            "comment": "Only list each attester once.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Composition.attester.mode",
            "path": "Composition.attester.mode",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompositionAttestationMode"
                }
              ],
              "strength": "required",
              "description": "The way in which a person authenticated a composition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1"
            }
          },
          {
            "id": "Composition.attester.time",
            "path": "Composition.attester.time",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Composition.attester.party",
            "path": "Composition.attester.party",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Composition.custodian",
            "path": "Composition.custodian",
            "comment": "This is useful when documents are derived from a composition - provides guidance for how to get the latest version of the document. This is optional because this is sometimes not known by the authoring system, and can be inferred by context. However, it is important that this information be known when working with a derived document, so providing a custodian is encouraged.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Composition.relatesTo",
            "path": "Composition.relatesTo",
            "comment": "A document is a version specific composition.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Composition.relatesTo.code",
            "path": "Composition.relatesTo.code",
            "comment": "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"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentRelationshipType"
                }
              ],
              "strength": "required",
              "description": "The type of relationship between documents.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"
            }
          },
          {
            "id": "Composition.relatesTo.target[x]",
            "path": "Composition.relatesTo.target[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Composition"
                ]
              }
            ]
          },
          {
            "id": "Composition.event",
            "path": "Composition.event",
            "comment": "The event needs to be consistent with the type element, though can provide further information if desired.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Composition.event.code",
            "path": "Composition.event.code",
            "comment": "An event can further specialize the act inherent in the typeCode, such as where it is simply \"Procedure Report\" and the procedure was a \"colonoscopy\". If one or more eventCodes are included, they SHALL NOT conflict with the values inherent in the classCode, practiceSettingCode or typeCode, as such a conflict would create an ambiguous situation. This short list of codes is provided to be used as key words for certain types of queries.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentEventType"
                }
              ],
              "strength": "example",
              "description": "This list of codes represents the main clinical acts being documented.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode"
            }
          },
          {
            "id": "Composition.event.period",
            "path": "Composition.event.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Composition.event.detail",
            "path": "Composition.event.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Composition.section",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Section"
              }
            ],
            "path": "Composition.section",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "cmp-1",
                "severity": "error",
                "human": "A section must contain at least one of text, entries, or sub-sections",
                "expression": "text.exists() or entry.exists() or section.exists()",
                "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)"
              },
              {
                "key": "cmp-2",
                "severity": "error",
                "human": "A section can only have an emptyReason if it is empty",
                "expression": "emptyReason.empty() or entry.empty()",
                "xpath": "not(exists(f:emptyReason) and exists(f:entry))"
              }
            ]
          },
          {
            "id": "Composition.section.title",
            "path": "Composition.section.title",
            "comment": "The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title,  or documents that only have a single section. Most Implementation Guides will make section title to be a required element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Composition.section.code",
            "path": "Composition.section.code",
            "comment": "The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document.   \n\nIf the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompositionSectionType"
                }
              ],
              "strength": "example",
              "description": "Classification of a section of a composition/document.",
              "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
            }
          },
          {
            "id": "Composition.section.author",
            "path": "Composition.section.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Composition.section.focus",
            "path": "Composition.section.focus",
            "comment": "Typically, sections in a doument are about the subject of the document, whether that is a  patient, or group of patients, location, or device, or whatever. For some kind of documents, some sections actually contain data about related entities. Typical examples are  a section in a newborn discharge summary concerning the mother, or family history documents, with a section about each family member, though there are many other examples.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Composition.section.text",
            "path": "Composition.section.text",
            "comment": "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"
            ]
          },
          {
            "id": "Composition.section.mode",
            "path": "Composition.section.mode",
            "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SectionMode"
                }
              ],
              "strength": "required",
              "description": "The processing mode that applies to this section.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
            }
          },
          {
            "id": "Composition.section.orderedBy",
            "path": "Composition.section.orderedBy",
            "comment": "Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SectionEntryOrder"
                }
              ],
              "strength": "preferred",
              "description": "What order applies to the items in the entry.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
            }
          },
          {
            "id": "Composition.section.entry",
            "path": "Composition.section.entry",
            "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "condition": [
              "cmp-2"
            ]
          },
          {
            "id": "Composition.section.emptyReason",
            "path": "Composition.section.emptyReason",
            "comment": "The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "cmp-2"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SectionEmptyReason"
                }
              ],
              "strength": "preferred",
              "description": "If a section is empty, why it is empty.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
            }
          },
          {
            "id": "Composition.section.section",
            "path": "Composition.section.section",
            "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
            "min": 0,
            "max": "*",
            "contentReference": "#Composition.section",
            "condition": [
              "cmp-1"
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ConceptMap",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ConceptMap",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Terminology"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "vocab"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ConceptMap",
      "version": "4.0.1",
      "name": "ConceptMap",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ConceptMap",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ConceptMap",
            "path": "ConceptMap",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ConceptMap",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "cmd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.id",
            "path": "ConceptMap.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.meta",
            "path": "ConceptMap.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.implicitRules",
            "path": "ConceptMap.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ConceptMap.language",
            "path": "ConceptMap.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ConceptMap.text",
            "path": "ConceptMap.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.contained",
            "path": "ConceptMap.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.extension",
            "path": "ConceptMap.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.modifierExtension",
            "path": "ConceptMap.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ConceptMap.url",
            "path": "ConceptMap.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.identifier",
            "path": "ConceptMap.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this concept map outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.version",
            "path": "ConceptMap.version",
            "comment": "There may be different concept map instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the concept map with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.name",
            "path": "ConceptMap.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.title",
            "path": "ConceptMap.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.status",
            "path": "ConceptMap.status",
            "comment": "Allows filtering of concept maps that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ConceptMap.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ConceptMap.experimental",
            "path": "ConceptMap.experimental",
            "comment": "Allows filtering of concept maps that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.date",
            "path": "ConceptMap.date",
            "comment": "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 or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.publisher",
            "path": "ConceptMap.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the concept map is the organization or individual primarily responsible for the maintenance and upkeep of the concept map. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the concept map. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.contact",
            "path": "ConceptMap.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ConceptMap.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.description",
            "path": "ConceptMap.description",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.useContext",
            "path": "ConceptMap.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ConceptMap.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.jurisdiction",
            "path": "ConceptMap.jurisdiction",
            "comment": "It may be possible for the concept map to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ConceptMap.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ConceptMap.purpose",
            "path": "ConceptMap.purpose",
            "comment": "This element does not describe the usage of the concept map. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this concept map.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.copyright",
            "path": "ConceptMap.copyright",
            "comment": "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",
            "base": {
              "path": "ConceptMap.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.source[x]",
            "path": "ConceptMap.source[x]",
            "comment": "Should be a version specific reference. URIs SHOULD be absolute. If there is no source or target value set, there is no specified context for the map (not recommended).  The source value set may select codes from either an explicit (standard or local) or implicit code system.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.source[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.target[x]",
            "path": "ConceptMap.target[x]",
            "comment": "Should be a version specific reference. URIs SHOULD be absolute. If there is no source or target value set, the is no specified context for the map.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.target[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ConceptMap.group",
            "path": "ConceptMap.group",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ConceptMap.group",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.id",
            "path": "ConceptMap.group.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.extension",
            "path": "ConceptMap.group.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.modifierExtension",
            "path": "ConceptMap.group.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ConceptMap.group.source",
            "path": "ConceptMap.group.source",
            "comment": "This is not needed if the source value set is specified and it contains concepts from only a single system.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.source",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.sourceVersion",
            "path": "ConceptMap.group.sourceVersion",
            "comment": "The specification of a particular code system version may be required for code systems which lack concept permanence.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.sourceVersion",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.target",
            "path": "ConceptMap.group.target",
            "comment": "This is not needed if the target value set is specified and it contains concepts from only a single system. The group target may also be omitted if all of the target element equivalence values are 'unmatched'.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.target",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.targetVersion",
            "path": "ConceptMap.group.targetVersion",
            "comment": "The specification of a particular code system version may be required for code systems which lack concept permanence.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.targetVersion",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SourceElement"
              }
            ],
            "path": "ConceptMap.group.element",
            "comment": "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.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ConceptMap.group.element",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.id",
            "path": "ConceptMap.group.element.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.extension",
            "path": "ConceptMap.group.element.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.modifierExtension",
            "path": "ConceptMap.group.element.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ConceptMap.group.element.code",
            "path": "ConceptMap.group.element.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.element.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.display",
            "path": "ConceptMap.group.element.display",
            "comment": "The display is ignored when processing the map.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.element.display",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TargetElement"
              }
            ],
            "path": "ConceptMap.group.element.target",
            "comment": "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": "*",
            "base": {
              "path": "ConceptMap.group.element.target",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "cmd-1",
                "severity": "error",
                "human": "If the map is narrower or inexact, there SHALL be some comments",
                "expression": "comment.exists() or equivalence.empty() or ((equivalence != 'narrower') and (equivalence != 'inexact'))",
                "xpath": "exists(f:comment) or not(exists(f:equivalence)) or ((f:equivalence/@value != 'narrower') and (f:equivalence/@value != 'inexact'))"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.id",
            "path": "ConceptMap.group.element.target.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.extension",
            "path": "ConceptMap.group.element.target.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.modifierExtension",
            "path": "ConceptMap.group.element.target.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ConceptMap.group.element.target.code",
            "path": "ConceptMap.group.element.target.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.element.target.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.display",
            "path": "ConceptMap.group.element.target.display",
            "comment": "The display is ignored when processing the map.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.element.target.display",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.equivalence",
            "path": "ConceptMap.group.element.target.equivalence",
            "comment": "This element is labeled as a modifier because it may indicate that a target does not apply.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.element.target.equivalence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Some of the values mean that there is no mapping from the source to the target, particularly 'disjoint', and the mapping cannot be interpreted without knowing this value as it could mean the elements are equivalent, totally mismatched or anything in between",
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConceptMapEquivalence"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The degree of equivalence between concepts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/concept-map-equivalence|4.0.1"
            }
          },
          {
            "id": "ConceptMap.group.element.target.comment",
            "path": "ConceptMap.group.element.target.comment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.element.target.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "cmd-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "OtherElement"
              }
            ],
            "path": "ConceptMap.group.element.target.dependsOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ConceptMap.group.element.target.dependsOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.id",
            "path": "ConceptMap.group.element.target.dependsOn.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.extension",
            "path": "ConceptMap.group.element.target.dependsOn.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.modifierExtension",
            "path": "ConceptMap.group.element.target.dependsOn.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.property",
            "path": "ConceptMap.group.element.target.dependsOn.property",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.element.target.dependsOn.property",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.system",
            "path": "ConceptMap.group.element.target.dependsOn.system",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.element.target.dependsOn.system",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CodeSystem"
                ]
              }
            ],
            "meaningWhenMissing": "The code is in the source (dependsOn) or target (product) system",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.value",
            "path": "ConceptMap.group.element.target.dependsOn.value",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.element.target.dependsOn.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.display",
            "path": "ConceptMap.group.element.target.dependsOn.display",
            "comment": "The display is ignored when processing the map.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.element.target.dependsOn.display",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.element.target.product",
            "path": "ConceptMap.group.element.target.product",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ConceptMap.group.element.target.product",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ConceptMap.group.element.target.dependsOn",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.unmapped",
            "path": "ConceptMap.group.unmapped",
            "comment": "This only applies if the source code has a system value that matches the system defined for the group.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.unmapped",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "cmd-2",
                "severity": "error",
                "human": "If the mode is 'fixed', a code must be provided",
                "expression": "(mode = 'fixed') implies code.exists()",
                "xpath": "(f:mode/@value != 'fixed') or exists(f:code)"
              },
              {
                "key": "cmd-3",
                "severity": "error",
                "human": "If the mode is 'other-map', a url must be provided",
                "expression": "(mode = 'other-map') implies url.exists()",
                "xpath": "(f:mode/@value != 'other-map') or exists(f:url)"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.unmapped.id",
            "path": "ConceptMap.group.unmapped.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.unmapped.extension",
            "path": "ConceptMap.group.unmapped.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.unmapped.modifierExtension",
            "path": "ConceptMap.group.unmapped.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ConceptMap.group.unmapped.mode",
            "path": "ConceptMap.group.unmapped.mode",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.unmapped.mode",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConceptMapGroupUnmappedMode"
                }
              ],
              "strength": "required",
              "description": "Defines which action to take if there is no match in the group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/conceptmap-unmapped-mode|4.0.1"
            }
          },
          {
            "id": "ConceptMap.group.unmapped.code",
            "path": "ConceptMap.group.unmapped.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.unmapped.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.unmapped.display",
            "path": "ConceptMap.group.unmapped.display",
            "comment": "The display is ignored when processing the map.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.unmapped.display",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ConceptMap.group.unmapped.url",
            "path": "ConceptMap.group.unmapped.url",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ConceptMap.group.unmapped.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ConceptMap"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ConceptMap",
            "path": "ConceptMap",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "cmd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "ConceptMap.url",
            "path": "ConceptMap.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.identifier",
            "path": "ConceptMap.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this concept map outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.version",
            "path": "ConceptMap.version",
            "comment": "There may be different concept map instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the concept map with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.name",
            "path": "ConceptMap.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.title",
            "path": "ConceptMap.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.status",
            "path": "ConceptMap.status",
            "comment": "Allows filtering of concept maps that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ConceptMap.experimental",
            "path": "ConceptMap.experimental",
            "comment": "Allows filtering of concept maps that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.date",
            "path": "ConceptMap.date",
            "comment": "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 or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.publisher",
            "path": "ConceptMap.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the concept map is the organization or individual primarily responsible for the maintenance and upkeep of the concept map. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the concept map. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.contact",
            "path": "ConceptMap.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.description",
            "path": "ConceptMap.description",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ConceptMap.useContext",
            "path": "ConceptMap.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.jurisdiction",
            "path": "ConceptMap.jurisdiction",
            "comment": "It may be possible for the concept map to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ConceptMap.purpose",
            "path": "ConceptMap.purpose",
            "comment": "This element does not describe the usage of the concept map. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this concept map.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ConceptMap.copyright",
            "path": "ConceptMap.copyright",
            "comment": "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": "markdown"
              }
            ]
          },
          {
            "id": "ConceptMap.source[x]",
            "path": "ConceptMap.source[x]",
            "comment": "Should be a version specific reference. URIs SHOULD be absolute. If there is no source or target value set, there is no specified context for the map (not recommended).  The source value set may select codes from either an explicit (standard or local) or implicit code system.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.target[x]",
            "path": "ConceptMap.target[x]",
            "comment": "Should be a version specific reference. URIs SHOULD be absolute. If there is no source or target value set, the is no specified context for the map.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ConceptMap.group",
            "path": "ConceptMap.group",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ConceptMap.group.source",
            "path": "ConceptMap.group.source",
            "comment": "This is not needed if the source value set is specified and it contains concepts from only a single system.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "ConceptMap.group.sourceVersion",
            "path": "ConceptMap.group.sourceVersion",
            "comment": "The specification of a particular code system version may be required for code systems which lack concept permanence.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ConceptMap.group.target",
            "path": "ConceptMap.group.target",
            "comment": "This is not needed if the target value set is specified and it contains concepts from only a single system. The group target may also be omitted if all of the target element equivalence values are 'unmatched'.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "ConceptMap.group.targetVersion",
            "path": "ConceptMap.group.targetVersion",
            "comment": "The specification of a particular code system version may be required for code systems which lack concept permanence.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SourceElement"
              }
            ],
            "path": "ConceptMap.group.element",
            "comment": "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.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element.code",
            "path": "ConceptMap.group.element.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element.display",
            "path": "ConceptMap.group.element.display",
            "comment": "The display is ignored when processing the map.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element.target",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TargetElement"
              }
            ],
            "path": "ConceptMap.group.element.target",
            "comment": "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": [
              {
                "key": "cmd-1",
                "severity": "error",
                "human": "If the map is narrower or inexact, there SHALL be some comments",
                "expression": "comment.exists() or equivalence.empty() or ((equivalence != 'narrower') and (equivalence != 'inexact'))",
                "xpath": "exists(f:comment) or not(exists(f:equivalence)) or ((f:equivalence/@value != 'narrower') and (f:equivalence/@value != 'inexact'))"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element.target.code",
            "path": "ConceptMap.group.element.target.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element.target.display",
            "path": "ConceptMap.group.element.target.display",
            "comment": "The display is ignored when processing the map.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element.target.equivalence",
            "path": "ConceptMap.group.element.target.equivalence",
            "comment": "This element is labeled as a modifier because it may indicate that a target does not apply.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Some of the values mean that there is no mapping from the source to the target, particularly 'disjoint', and the mapping cannot be interpreted without knowing this value as it could mean the elements are equivalent, totally mismatched or anything in between",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConceptMapEquivalence"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The degree of equivalence between concepts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/concept-map-equivalence|4.0.1"
            }
          },
          {
            "id": "ConceptMap.group.element.target.comment",
            "path": "ConceptMap.group.element.target.comment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "cmd-1"
            ]
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "OtherElement"
              }
            ],
            "path": "ConceptMap.group.element.target.dependsOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.property",
            "path": "ConceptMap.group.element.target.dependsOn.property",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.system",
            "path": "ConceptMap.group.element.target.dependsOn.system",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CodeSystem"
                ]
              }
            ],
            "meaningWhenMissing": "The code is in the source (dependsOn) or target (product) system"
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.value",
            "path": "ConceptMap.group.element.target.dependsOn.value",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element.target.dependsOn.display",
            "path": "ConceptMap.group.element.target.dependsOn.display",
            "comment": "The display is ignored when processing the map.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ConceptMap.group.element.target.product",
            "path": "ConceptMap.group.element.target.product",
            "min": 0,
            "max": "*",
            "contentReference": "#ConceptMap.group.element.target.dependsOn"
          },
          {
            "id": "ConceptMap.group.unmapped",
            "path": "ConceptMap.group.unmapped",
            "comment": "This only applies if the source code has a system value that matches the system defined for the group.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "cmd-3",
                "severity": "error",
                "human": "If the mode is 'other-map', a url must be provided",
                "expression": "(mode = 'other-map') implies url.exists()",
                "xpath": "(f:mode/@value != 'other-map') or exists(f:url)"
              },
              {
                "key": "cmd-2",
                "severity": "error",
                "human": "If the mode is 'fixed', a code must be provided",
                "expression": "(mode = 'fixed') implies code.exists()",
                "xpath": "(f:mode/@value != 'fixed') or exists(f:code)"
              }
            ]
          },
          {
            "id": "ConceptMap.group.unmapped.mode",
            "path": "ConceptMap.group.unmapped.mode",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConceptMapGroupUnmappedMode"
                }
              ],
              "strength": "required",
              "description": "Defines which action to take if there is no match in the group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/conceptmap-unmapped-mode|4.0.1"
            }
          },
          {
            "id": "ConceptMap.group.unmapped.code",
            "path": "ConceptMap.group.unmapped.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "ConceptMap.group.unmapped.display",
            "path": "ConceptMap.group.unmapped.display",
            "comment": "The display is ignored when processing the map.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ConceptMap.group.unmapped.url",
            "path": "ConceptMap.group.unmapped.url",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ConceptMap"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Condition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Condition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Summary"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Condition",
      "version": "4.0.1",
      "name": "Condition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Condition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Condition",
            "path": "Condition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Condition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "Most systems will expect a clinicalStatus to be valued for problem-list-items that are managed over time, but might not need a clinicalStatus for point in time encounter-diagnosis."
                  }
                ],
                "key": "con-3",
                "severity": "warning",
                "human": "Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item",
                "expression": "clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty()",
                "xpath": "exists(f:clinicalStatus) or exists(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(category[@value='problem-list-item']))"
              },
              {
                "key": "con-4",
                "severity": "error",
                "human": "If condition is abated, then clinicalStatus must be either inactive, resolved, or remission",
                "expression": "abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists()",
                "xpath": "not(exists(*[starts-with(local-name(.), 'abatement')])) or exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')])"
              },
              {
                "key": "con-5",
                "severity": "error",
                "human": "Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error",
                "expression": "verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty()",
                "xpath": "not(exists(f:verificationStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-ver-status' and f:code/@value='entered-in-error'])) or not(exists(f:clinicalStatus))"
              },
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.id",
            "path": "Condition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Condition.meta",
            "path": "Condition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Condition.implicitRules",
            "path": "Condition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Condition.language",
            "path": "Condition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Condition.text",
            "path": "Condition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.contained",
            "path": "Condition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.extension",
            "path": "Condition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.modifierExtension",
            "path": "Condition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Condition.identifier",
            "path": "Condition.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Condition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Condition.clinicalStatus",
            "path": "Condition.clinicalStatus",
            "comment": "The data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.clinicalStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "con-3",
              "con-4",
              "con-5"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the status contains codes that mark the condition as no longer active.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionClinicalStatus"
                }
              ],
              "strength": "required",
              "description": "The clinical status of the condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1"
            }
          },
          {
            "id": "Condition.verificationStatus",
            "path": "Condition.verificationStatus",
            "comment": "verificationStatus is not required.  For example, when a patient has abdominal pain in the ED, there is not likely going to be a verification status.\nThe data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.verificationStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "con-3",
              "con-5"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionVerificationStatus"
                }
              ],
              "strength": "required",
              "description": "The verification status to support or decline the clinical status of the condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1"
            }
          },
          {
            "id": "Condition.category",
            "path": "Condition.category",
            "comment": "The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Condition.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionCategory"
                }
              ],
              "strength": "extensible",
              "description": "A category assigned to the condition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-category"
            }
          },
          {
            "id": "Condition.severity",
            "path": "Condition.severity",
            "comment": "Coding of the severity with a terminology is preferred, where possible.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.severity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionSeverity"
                }
              ],
              "strength": "preferred",
              "description": "A subjective assessment of the severity of the condition as evaluated by the clinician.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-severity"
            }
          },
          {
            "id": "Condition.code",
            "path": "Condition.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionKind"
                }
              ],
              "strength": "example",
              "description": "Identification of the condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "Condition.bodySite",
            "path": "Condition.bodySite",
            "comment": "Only used if not implicit in code found in Condition.code. If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html).  May be a summary code, or a reference to a very precise definition of the location, or both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Condition.bodySite",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "Condition.subject",
            "path": "Condition.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Condition.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Condition.encounter",
            "path": "Condition.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. 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",
            "base": {
              "path": "Condition.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Condition.onset[x]",
            "path": "Condition.onset[x]",
            "comment": "Age is generally used when the patient reports an age at which the Condition began to occur.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.onset[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Range"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Condition.abatement[x]",
            "path": "Condition.abatement[x]",
            "comment": "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.  When abatementString exists, it implies the condition is abated.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.abatement[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Range"
              },
              {
                "code": "string"
              }
            ],
            "condition": [
              "con-4"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.recordedDate",
            "path": "Condition.recordedDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.recordedDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Condition.recorder",
            "path": "Condition.recorder",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.recorder",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Condition.asserter",
            "path": "Condition.asserter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.asserter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Condition.stage",
            "path": "Condition.stage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Condition.stage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "con-1",
                "severity": "error",
                "human": "Stage SHALL have summary or assessment",
                "expression": "summary.exists() or assessment.exists()",
                "xpath": "exists(f:summary) or exists(f:assessment)"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.stage.id",
            "path": "Condition.stage.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.stage.extension",
            "path": "Condition.stage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.stage.modifierExtension",
            "path": "Condition.stage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Condition.stage.summary",
            "path": "Condition.stage.summary",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.stage.summary",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "con-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionStage"
                }
              ],
              "strength": "example",
              "description": "Codes describing condition stages (e.g. Cancer stages).",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-stage"
            }
          },
          {
            "id": "Condition.stage.assessment",
            "path": "Condition.stage.assessment",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Condition.stage.assessment",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ClinicalImpression",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ],
            "condition": [
              "con-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.stage.type",
            "path": "Condition.stage.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Condition.stage.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionStageType"
                }
              ],
              "strength": "example",
              "description": "Codes describing the kind of condition staging (e.g. clinical or pathological).",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-stage-type"
            }
          },
          {
            "id": "Condition.evidence",
            "path": "Condition.evidence",
            "comment": "The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Condition.evidence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "con-2",
                "severity": "error",
                "human": "evidence SHALL have code or details",
                "expression": "code.exists() or detail.exists()",
                "xpath": "exists(f:code) or exists(f:detail)"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.evidence.id",
            "path": "Condition.evidence.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.evidence.extension",
            "path": "Condition.evidence.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Condition.evidence.modifierExtension",
            "path": "Condition.evidence.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Condition.evidence.code",
            "path": "Condition.evidence.code",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Condition.evidence.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "con-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ManifestationOrSymptom"
                }
              ],
              "strength": "example",
              "description": "Codes that describe the manifestation or symptoms of a condition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/manifestation-or-symptom"
            }
          },
          {
            "id": "Condition.evidence.detail",
            "path": "Condition.evidence.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Condition.evidence.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "condition": [
              "con-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Condition.note",
            "path": "Condition.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Condition.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Condition",
            "path": "Condition",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "con-5",
                "severity": "error",
                "human": "Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error",
                "expression": "verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty()",
                "xpath": "not(exists(f:verificationStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-ver-status' and f:code/@value='entered-in-error'])) or not(exists(f:clinicalStatus))"
              },
              {
                "key": "con-4",
                "severity": "error",
                "human": "If condition is abated, then clinicalStatus must be either inactive, resolved, or remission",
                "expression": "abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists()",
                "xpath": "not(exists(*[starts-with(local-name(.), 'abatement')])) or exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')])"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "Most systems will expect a clinicalStatus to be valued for problem-list-items that are managed over time, but might not need a clinicalStatus for point in time encounter-diagnosis."
                  }
                ],
                "key": "con-3",
                "severity": "warning",
                "human": "Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item",
                "expression": "clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty()",
                "xpath": "exists(f:clinicalStatus) or exists(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(category[@value='problem-list-item']))"
              }
            ]
          },
          {
            "id": "Condition.identifier",
            "path": "Condition.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Condition.clinicalStatus",
            "path": "Condition.clinicalStatus",
            "comment": "The data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "con-3",
              "con-4",
              "con-5"
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the status contains codes that mark the condition as no longer active.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionClinicalStatus"
                }
              ],
              "strength": "required",
              "description": "The clinical status of the condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1"
            }
          },
          {
            "id": "Condition.verificationStatus",
            "path": "Condition.verificationStatus",
            "comment": "verificationStatus is not required.  For example, when a patient has abdominal pain in the ED, there is not likely going to be a verification status.\nThe data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "con-3",
              "con-5"
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionVerificationStatus"
                }
              ],
              "strength": "required",
              "description": "The verification status to support or decline the clinical status of the condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1"
            }
          },
          {
            "id": "Condition.category",
            "path": "Condition.category",
            "comment": "The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionCategory"
                }
              ],
              "strength": "extensible",
              "description": "A category assigned to the condition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-category"
            }
          },
          {
            "id": "Condition.severity",
            "path": "Condition.severity",
            "comment": "Coding of the severity with a terminology is preferred, where possible.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionSeverity"
                }
              ],
              "strength": "preferred",
              "description": "A subjective assessment of the severity of the condition as evaluated by the clinician.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-severity"
            }
          },
          {
            "id": "Condition.code",
            "path": "Condition.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionKind"
                }
              ],
              "strength": "example",
              "description": "Identification of the condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "Condition.bodySite",
            "path": "Condition.bodySite",
            "comment": "Only used if not implicit in code found in Condition.code. If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html).  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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "Condition.subject",
            "path": "Condition.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Condition.encounter",
            "path": "Condition.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. 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",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Condition.onset[x]",
            "path": "Condition.onset[x]",
            "comment": "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": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Range"
              },
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Condition.abatement[x]",
            "path": "Condition.abatement[x]",
            "comment": "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.  When abatementString exists, it implies the condition is abated.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Range"
              },
              {
                "code": "string"
              }
            ],
            "condition": [
              "con-4"
            ]
          },
          {
            "id": "Condition.recordedDate",
            "path": "Condition.recordedDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Condition.recorder",
            "path": "Condition.recorder",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Condition.asserter",
            "path": "Condition.asserter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Condition.stage",
            "path": "Condition.stage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "con-1",
                "severity": "error",
                "human": "Stage SHALL have summary or assessment",
                "expression": "summary.exists() or assessment.exists()",
                "xpath": "exists(f:summary) or exists(f:assessment)"
              }
            ]
          },
          {
            "id": "Condition.stage.summary",
            "path": "Condition.stage.summary",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "con-1"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionStage"
                }
              ],
              "strength": "example",
              "description": "Codes describing condition stages (e.g. Cancer stages).",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-stage"
            }
          },
          {
            "id": "Condition.stage.assessment",
            "path": "Condition.stage.assessment",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ClinicalImpression",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ],
            "condition": [
              "con-1"
            ]
          },
          {
            "id": "Condition.stage.type",
            "path": "Condition.stage.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionStageType"
                }
              ],
              "strength": "example",
              "description": "Codes describing the kind of condition staging (e.g. clinical or pathological).",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-stage-type"
            }
          },
          {
            "id": "Condition.evidence",
            "path": "Condition.evidence",
            "comment": "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": [
              {
                "key": "con-2",
                "severity": "error",
                "human": "evidence SHALL have code or details",
                "expression": "code.exists() or detail.exists()",
                "xpath": "exists(f:code) or exists(f:detail)"
              }
            ]
          },
          {
            "id": "Condition.evidence.code",
            "path": "Condition.evidence.code",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "con-2"
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ManifestationOrSymptom"
                }
              ],
              "strength": "example",
              "description": "Codes that describe the manifestation or symptoms of a condition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/manifestation-or-symptom"
            }
          },
          {
            "id": "Condition.evidence.detail",
            "path": "Condition.evidence.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "condition": [
              "con-2"
            ],
            "isSummary": true
          },
          {
            "id": "Condition.note",
            "path": "Condition.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Consent",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Consent",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Security"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cbcc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Consent",
      "version": "4.0.1",
      "name": "Consent",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Consent",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Consent",
            "path": "Consent",
            "comment": "Broadly, there are 3 key areas of consent for patients: Consent around sharing information (aka Privacy Consent Directive - Authorization to Collect, Use, or Disclose information), consent for specific treatment, or kinds of treatment, and general advance care directives.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "ppc-1",
                "severity": "error",
                "human": "Either a Policy or PolicyRule",
                "expression": "policy.exists() or policyRule.exists()",
                "xpath": "exists(f:policy) or exists(f:policyRule)"
              },
              {
                "key": "ppc-2",
                "severity": "error",
                "human": "IF Scope=privacy, there must be a patient",
                "expression": "patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()",
                "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='patient-privacy'])))"
              },
              {
                "key": "ppc-3",
                "severity": "error",
                "human": "IF Scope=research, there must be a patient",
                "expression": "patient.exists() or scope.coding.where(system='something' and code='research').exists().not()",
                "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='research'])))"
              },
              {
                "key": "ppc-4",
                "severity": "error",
                "human": "IF Scope=adr, there must be a patient",
                "expression": "patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()",
                "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='adr'])))"
              },
              {
                "key": "ppc-5",
                "severity": "error",
                "human": "IF Scope=treatment, there must be a patient",
                "expression": "patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()",
                "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='treatment'])))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.id",
            "path": "Consent.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.meta",
            "path": "Consent.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.implicitRules",
            "path": "Consent.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Consent.language",
            "path": "Consent.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Consent.text",
            "path": "Consent.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.contained",
            "path": "Consent.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.extension",
            "path": "Consent.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.modifierExtension",
            "path": "Consent.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Consent.identifier",
            "path": "Consent.identifier",
            "comment": "This identifier identifies this copy of the consent. Where this identifier is also used elsewhere as the identifier for a consent record (e.g. a CDA consent document) then the consent details are expected to be the same.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueIdentifier": {
                  "system": "urn:ietf:rfc:3986",
                  "value": "Local eCMS identifier"
                }
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.status",
            "path": "Consent.status",
            "comment": "This element is labeled as a modifier because the status contains the codes rejected and entered-in-error that mark the Consent as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Consent.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentState"
                }
              ],
              "strength": "required",
              "description": "Indicates the state of the consent.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.1"
            }
          },
          {
            "id": "Consent.scope",
            "path": "Consent.scope",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Consent.scope",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Allows changes to codes based on scope selection",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentScope"
                }
              ],
              "strength": "extensible",
              "description": "The four anticipated uses for the Consent Resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-scope"
            }
          },
          {
            "id": "Consent.category",
            "path": "Consent.category",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Consent.category",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentCategory"
                }
              ],
              "strength": "extensible",
              "description": "A classification of the type of consents found in a consent statement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-category"
            }
          },
          {
            "id": "Consent.patient",
            "path": "Consent.patient",
            "comment": "Commonly, the patient the consent pertains to is the author, but for young and old people, it may be some other person.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.patient",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.dateTime",
            "path": "Consent.dateTime",
            "comment": "This is not the time of the original consent, but the time that this statement was made or derived.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.dateTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.performer",
            "path": "Consent.performer",
            "comment": "Commonly, the patient the consent pertains to is the consentor, but particularly for young and old people, it may be some other person - e.g. a legal guardian.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.organization",
            "path": "Consent.organization",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.organization",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.source[x]",
            "path": "Consent.source[x]",
            "comment": "The source can be contained inline (Attachment), referenced directly (Consent), referenced in a consent repository (DocumentReference), or simply by an identifier (Identifier), e.g. a CDA document id.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.source[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Consent",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/Contract",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.policy",
            "path": "Consent.policy",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.policy",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.policy.id",
            "path": "Consent.policy.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.policy.extension",
            "path": "Consent.policy.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.policy.modifierExtension",
            "path": "Consent.policy.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Consent.policy.authority",
            "path": "Consent.policy.authority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.policy.authority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "ppc-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.policy.uri",
            "path": "Consent.policy.uri",
            "comment": "This element is for discoverability / documentation and does not modify or qualify the policy rules.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.policy.uri",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "ppc-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.policyRule",
            "path": "Consent.policyRule",
            "comment": "If the policyRule is absent, computable consent would need to be constructed from the elements of the Consent resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.policyRule",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "ppc-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentPolicyRule"
                }
              ],
              "strength": "extensible",
              "description": "Regulatory policy examples.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-policy"
            }
          },
          {
            "id": "Consent.verification",
            "path": "Consent.verification",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.verification",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.verification.id",
            "path": "Consent.verification.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.verification.extension",
            "path": "Consent.verification.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.verification.modifierExtension",
            "path": "Consent.verification.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Consent.verification.verified",
            "path": "Consent.verification.verified",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Consent.verification.verified",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.verification.verifiedWith",
            "path": "Consent.verification.verifiedWith",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.verification.verifiedWith",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.verification.verificationDate",
            "path": "Consent.verification.verificationDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.verification.verificationDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.provision",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "provision"
              }
            ],
            "path": "Consent.provision",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.provision",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.provision.id",
            "path": "Consent.provision.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.provision.extension",
            "path": "Consent.provision.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.provision.modifierExtension",
            "path": "Consent.provision.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Consent.provision.type",
            "path": "Consent.provision.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.provision.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentProvisionType"
                }
              ],
              "strength": "required",
              "description": "How a rule statement is applied, such as adding additional consent or removing consent.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-provision-type|4.0.1"
            }
          },
          {
            "id": "Consent.provision.period",
            "path": "Consent.provision.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.provision.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.provision.actor",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "provisionActor"
              }
            ],
            "path": "Consent.provision.actor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.provision.actor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "meaningWhenMissing": "There is no specific actor associated with the exception",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.provision.actor.id",
            "path": "Consent.provision.actor.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.provision.actor.extension",
            "path": "Consent.provision.actor.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.provision.actor.modifierExtension",
            "path": "Consent.provision.actor.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Consent.provision.actor.role",
            "path": "Consent.provision.actor.role",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Consent.provision.actor.role",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentActorRole"
                }
              ],
              "strength": "extensible",
              "description": "How an actor is involved in the consent considerations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-role-type"
            }
          },
          {
            "id": "Consent.provision.actor.reference",
            "path": "Consent.provision.actor.reference",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Consent.provision.actor.reference",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.provision.action",
            "path": "Consent.provision.action",
            "comment": "Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is 'read'.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.provision.action",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "meaningWhenMissing": "all actions",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentAction"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the consent action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-action"
            }
          },
          {
            "id": "Consent.provision.securityLabel",
            "path": "Consent.provision.securityLabel",
            "comment": "If the consent specifies a security label of \"R\" then it applies to all resources that are labeled \"R\" or lower. E.g. for Confidentiality, it's a high water mark. For other kinds of security labels, subsumption logic applies. When the purpose of use tag is on the data, access request purpose of use shall not conflict.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.provision.securityLabel",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SecurityLabels"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
            }
          },
          {
            "id": "Consent.provision.purpose",
            "path": "Consent.provision.purpose",
            "comment": "When the purpose of use tag is on the data, access request purpose of use shall not conflict.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.provision.purpose",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PurposeOfUse"
                }
              ],
              "strength": "extensible",
              "description": "What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "Consent.provision.class",
            "path": "Consent.provision.class",
            "comment": "Multiple types are or'ed together. The intention of the contentType element is that the codes refer to profiles or document types defined in a standard or an implementation guide somewhere.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.provision.class",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentContentClass"
                }
              ],
              "strength": "extensible",
              "description": "The class (type) of information a consent rule covers.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-content-class"
            }
          },
          {
            "id": "Consent.provision.code",
            "path": "Consent.provision.code",
            "comment": "Typical use of this is a Document code with class = CDA.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.provision.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentContentCode"
                }
              ],
              "strength": "example",
              "description": "If this code is found in an instance, then the exception applies.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-content-code"
            }
          },
          {
            "id": "Consent.provision.dataPeriod",
            "path": "Consent.provision.dataPeriod",
            "comment": "This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Consent.provision.dataPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.provision.data",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "provisionData"
              }
            ],
            "path": "Consent.provision.data",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.provision.data",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "meaningWhenMissing": "all data",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.provision.data.id",
            "path": "Consent.provision.data.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.provision.data.extension",
            "path": "Consent.provision.data.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Consent.provision.data.modifierExtension",
            "path": "Consent.provision.data.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Consent.provision.data.meaning",
            "path": "Consent.provision.data.meaning",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Consent.provision.data.meaning",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentDataMeaning"
                }
              ],
              "strength": "required",
              "description": "How a resource reference is interpreted when testing consent restrictions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-data-meaning|4.0.1"
            }
          },
          {
            "id": "Consent.provision.data.reference",
            "path": "Consent.provision.data.reference",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Consent.provision.data.reference",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Consent.provision.provision",
            "path": "Consent.provision.provision",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Consent.provision.provision",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#Consent.provision",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Consent",
            "path": "Consent",
            "comment": "Broadly, there are 3 key areas of consent for patients: Consent around sharing information (aka Privacy Consent Directive - Authorization to Collect, Use, or Disclose information), consent for specific treatment, or kinds of treatment, and general advance care directives.",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "ppc-4",
                "severity": "error",
                "human": "IF Scope=adr, there must be a patient",
                "expression": "patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()",
                "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='adr'])))"
              },
              {
                "key": "ppc-5",
                "severity": "error",
                "human": "IF Scope=treatment, there must be a patient",
                "expression": "patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()",
                "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='treatment'])))"
              },
              {
                "key": "ppc-2",
                "severity": "error",
                "human": "IF Scope=privacy, there must be a patient",
                "expression": "patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()",
                "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='patient-privacy'])))"
              },
              {
                "key": "ppc-3",
                "severity": "error",
                "human": "IF Scope=research, there must be a patient",
                "expression": "patient.exists() or scope.coding.where(system='something' and code='research').exists().not()",
                "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='research'])))"
              },
              {
                "key": "ppc-1",
                "severity": "error",
                "human": "Either a Policy or PolicyRule",
                "expression": "policy.exists() or policyRule.exists()",
                "xpath": "exists(f:policy) or exists(f:policyRule)"
              }
            ]
          },
          {
            "id": "Consent.identifier",
            "path": "Consent.identifier",
            "comment": "This identifier identifies this copy of the consent. Where this identifier is also used elsewhere as the identifier for a consent record (e.g. a CDA consent document) then the consent details are expected to be the same.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueIdentifier": {
                  "system": "urn:ietf:rfc:3986",
                  "value": "Local eCMS identifier"
                }
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.status",
            "path": "Consent.status",
            "comment": "This element is labeled as a modifier because the status contains the codes rejected and entered-in-error that mark the Consent as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentState"
                }
              ],
              "strength": "required",
              "description": "Indicates the state of the consent.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.1"
            }
          },
          {
            "id": "Consent.scope",
            "path": "Consent.scope",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Allows changes to codes based on scope selection",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentScope"
                }
              ],
              "strength": "extensible",
              "description": "The four anticipated uses for the Consent Resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-scope"
            }
          },
          {
            "id": "Consent.category",
            "path": "Consent.category",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentCategory"
                }
              ],
              "strength": "extensible",
              "description": "A classification of the type of consents found in a consent statement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-category"
            }
          },
          {
            "id": "Consent.patient",
            "path": "Consent.patient",
            "comment": "Commonly, the patient the consent pertains to is the author, but for young and old people, it may be some other person.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.dateTime",
            "path": "Consent.dateTime",
            "comment": "This is not the time of the original consent, but the time that this statement was made or derived.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.performer",
            "path": "Consent.performer",
            "comment": "Commonly, the patient the consent pertains to is the consentor, but particularly for young and old people, it may be some other person - e.g. a legal guardian.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.organization",
            "path": "Consent.organization",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.source[x]",
            "path": "Consent.source[x]",
            "comment": "The source can be contained inline (Attachment), referenced directly (Consent), referenced in a consent repository (DocumentReference), or simply by an identifier (Identifier), e.g. a CDA document id.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Consent",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/Contract",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.policy",
            "path": "Consent.policy",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Consent.policy.authority",
            "path": "Consent.policy.authority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "ppc-1"
            ]
          },
          {
            "id": "Consent.policy.uri",
            "path": "Consent.policy.uri",
            "comment": "This element is for discoverability / documentation and does not modify or qualify the policy rules.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "ppc-1"
            ]
          },
          {
            "id": "Consent.policyRule",
            "path": "Consent.policyRule",
            "comment": "If the policyRule is absent, computable consent would need to be constructed from the elements of the Consent resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "ppc-1"
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentPolicyRule"
                }
              ],
              "strength": "extensible",
              "description": "Regulatory policy examples.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-policy"
            }
          },
          {
            "id": "Consent.verification",
            "path": "Consent.verification",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.verification.verified",
            "path": "Consent.verification.verified",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.verification.verifiedWith",
            "path": "Consent.verification.verifiedWith",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ]
          },
          {
            "id": "Consent.verification.verificationDate",
            "path": "Consent.verification.verificationDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Consent.provision",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "provision"
              }
            ],
            "path": "Consent.provision",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.provision.type",
            "path": "Consent.provision.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentProvisionType"
                }
              ],
              "strength": "required",
              "description": "How a rule statement is applied, such as adding additional consent or removing consent.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-provision-type|4.0.1"
            }
          },
          {
            "id": "Consent.provision.period",
            "path": "Consent.provision.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.provision.actor",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "provisionActor"
              }
            ],
            "path": "Consent.provision.actor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "meaningWhenMissing": "There is no specific actor associated with the exception"
          },
          {
            "id": "Consent.provision.actor.role",
            "path": "Consent.provision.actor.role",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentActorRole"
                }
              ],
              "strength": "extensible",
              "description": "How an actor is involved in the consent considerations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-role-type"
            }
          },
          {
            "id": "Consent.provision.actor.reference",
            "path": "Consent.provision.actor.reference",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "Consent.provision.action",
            "path": "Consent.provision.action",
            "comment": "Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is 'read'.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "meaningWhenMissing": "all actions",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentAction"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the consent action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-action"
            }
          },
          {
            "id": "Consent.provision.securityLabel",
            "path": "Consent.provision.securityLabel",
            "comment": "If the consent specifies a security label of \"R\" then it applies to all resources that are labeled \"R\" or lower. E.g. for Confidentiality, it's a high water mark. For other kinds of security labels, subsumption logic applies. When the purpose of use tag is on the data, access request purpose of use shall not conflict.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SecurityLabels"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
            }
          },
          {
            "id": "Consent.provision.purpose",
            "path": "Consent.provision.purpose",
            "comment": "When the purpose of use tag is on the data, access request purpose of use shall not conflict.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PurposeOfUse"
                }
              ],
              "strength": "extensible",
              "description": "What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "Consent.provision.class",
            "path": "Consent.provision.class",
            "comment": "Multiple types are or'ed together. The intention of the contentType element is that the codes refer to profiles or document types defined in a standard or an implementation guide somewhere.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentContentClass"
                }
              ],
              "strength": "extensible",
              "description": "The class (type) of information a consent rule covers.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-content-class"
            }
          },
          {
            "id": "Consent.provision.code",
            "path": "Consent.provision.code",
            "comment": "Typical use of this is a Document code with class = CDA.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentContentCode"
                }
              ],
              "strength": "example",
              "description": "If this code is found in an instance, then the exception applies.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-content-code"
            }
          },
          {
            "id": "Consent.provision.dataPeriod",
            "path": "Consent.provision.dataPeriod",
            "comment": "This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.provision.data",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "provisionData"
              }
            ],
            "path": "Consent.provision.data",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "meaningWhenMissing": "all data",
            "isSummary": true
          },
          {
            "id": "Consent.provision.data.meaning",
            "path": "Consent.provision.data.meaning",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentDataMeaning"
                }
              ],
              "strength": "required",
              "description": "How a resource reference is interpreted when testing consent restrictions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-data-meaning|4.0.1"
            }
          },
          {
            "id": "Consent.provision.data.reference",
            "path": "Consent.provision.data.reference",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Consent.provision.provision",
            "path": "Consent.provision.provision",
            "min": 0,
            "max": "*",
            "contentReference": "#Consent.provision"
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Contract",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Contract",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.General"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Contract",
      "version": "4.0.1",
      "name": "Contract",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Contract",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Contract",
            "path": "Contract",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.id",
            "path": "Contract.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.meta",
            "path": "Contract.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.implicitRules",
            "path": "Contract.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Contract.language",
            "path": "Contract.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Contract.text",
            "path": "Contract.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.contained",
            "path": "Contract.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.extension",
            "path": "Contract.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.modifierExtension",
            "path": "Contract.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Contract.identifier",
            "path": "Contract.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.url",
            "path": "Contract.url",
            "comment": "Used in a domain that uses a supplied contract repository.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.version",
            "path": "Contract.version",
            "comment": "Note -  This is a business versionId, not a resource version id (see discussion http://build.fhir.org/resource.html#versions) \rComments - There may be different contract instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the plan definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.status",
            "path": "Contract.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the contract as not currently valid or active.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-status|4.0.1"
            }
          },
          {
            "id": "Contract.legalState",
            "path": "Contract.legalState",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.legalState",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractLegalState"
                }
              ],
              "strength": "extensible",
              "description": "Detailed codes for the legal state of a contract.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-legalstate"
            }
          },
          {
            "id": "Contract.instantiatesCanonical",
            "path": "Contract.instantiatesCanonical",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.instantiatesCanonical",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Contract"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.instantiatesUri",
            "path": "Contract.instantiatesUri",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.instantiatesUri",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.contentDerivative",
            "path": "Contract.contentDerivative",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.contentDerivative",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractContentDerivative"
                }
              ],
              "strength": "example",
              "description": "This is an example set of Content Derivative type codes, which represent the minimal content derived from the basal information source.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-content-derivative"
            }
          },
          {
            "id": "Contract.issued",
            "path": "Contract.issued",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.issued",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.applies",
            "path": "Contract.applies",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.applies",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.expirationType",
            "path": "Contract.expirationType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.expirationType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractExpiration"
                }
              ],
              "strength": "example",
              "description": "Codes for the Cessation of Contracts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-expiration-type"
            }
          },
          {
            "id": "Contract.subject",
            "path": "Contract.subject",
            "comment": "The Contract.subject is an entity that has some role with respect to the Contract.topic and Contract.topic.term, which is of focal interest to the parties to the contract and likely impacted in a significant way by the Contract.action/Contract.action.reason and the Contract.term.action/Contract.action.reason. \rIn many cases, the Contract.subject is a Contract.signer if the subject is an adult; has a legal interest in the contract; and incompetent to participate in the contract agreement.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.subject",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.authority",
            "path": "Contract.authority",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.authority",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.domain",
            "path": "Contract.domain",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.domain",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.site",
            "path": "Contract.site",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.site",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.name",
            "path": "Contract.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.title",
            "path": "Contract.title",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.subtitle",
            "path": "Contract.subtitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.subtitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.alias",
            "path": "Contract.alias",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.alias",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.author",
            "path": "Contract.author",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.scope",
            "path": "Contract.scope",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.scope",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractScope"
                }
              ],
              "strength": "example",
              "description": "Codes for the range of legal concerns.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-scope"
            }
          },
          {
            "id": "Contract.topic[x]",
            "path": "Contract.topic[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.topic[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.type",
            "path": "Contract.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractType"
                }
              ],
              "strength": "example",
              "description": "List of overall contract codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-type"
            }
          },
          {
            "id": "Contract.subType",
            "path": "Contract.subType",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.subType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractSubtype"
                }
              ],
              "strength": "example",
              "description": "Detailed codes within the above.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-subtype"
            }
          },
          {
            "id": "Contract.contentDefinition",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ContentDefinition"
              }
            ],
            "path": "Contract.contentDefinition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.contentDefinition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.contentDefinition.id",
            "path": "Contract.contentDefinition.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.contentDefinition.extension",
            "path": "Contract.contentDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.contentDefinition.modifierExtension",
            "path": "Contract.contentDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.contentDefinition.type",
            "path": "Contract.contentDefinition.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.contentDefinition.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractDefinitionType"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the definition of contracts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-definition-type"
            }
          },
          {
            "id": "Contract.contentDefinition.subType",
            "path": "Contract.contentDefinition.subType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.contentDefinition.subType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractDefinitionSubtype"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the additional definition of contracts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-definition-subtype"
            }
          },
          {
            "id": "Contract.contentDefinition.publisher",
            "path": "Contract.contentDefinition.publisher",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.contentDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.contentDefinition.publicationDate",
            "path": "Contract.contentDefinition.publicationDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.contentDefinition.publicationDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.contentDefinition.publicationStatus",
            "path": "Contract.contentDefinition.publicationStatus",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.contentDefinition.publicationStatus",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractPublicationStatus"
                }
              ],
              "strength": "required",
              "description": "Status of the publication of contract content.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-publicationstatus|4.0.1"
            }
          },
          {
            "id": "Contract.contentDefinition.copyright",
            "path": "Contract.contentDefinition.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.contentDefinition.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Term"
              }
            ],
            "path": "Contract.term",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.id",
            "path": "Contract.term.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.extension",
            "path": "Contract.term.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.modifierExtension",
            "path": "Contract.term.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.term.identifier",
            "path": "Contract.term.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.term.issued",
            "path": "Contract.term.issued",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.issued",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.term.applies",
            "path": "Contract.term.applies",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.applies",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.term.topic[x]",
            "path": "Contract.term.topic[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.topic[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.type",
            "path": "Contract.term.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractTermType"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the types of contract provisions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-term-type"
            }
          },
          {
            "id": "Contract.term.subType",
            "path": "Contract.term.subType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.subType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractTermSubType"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the subtypes of contract provisions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-term-subtype"
            }
          },
          {
            "id": "Contract.term.text",
            "path": "Contract.term.text",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.term.securityLabel",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SecurityLabel"
              }
            ],
            "path": "Contract.term.securityLabel",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.securityLabel",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.securityLabel.id",
            "path": "Contract.term.securityLabel.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.securityLabel.extension",
            "path": "Contract.term.securityLabel.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.securityLabel.modifierExtension",
            "path": "Contract.term.securityLabel.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.term.securityLabel.number",
            "path": "Contract.term.securityLabel.number",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.securityLabel.number",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.securityLabel.classification",
            "path": "Contract.term.securityLabel.classification",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.term.securityLabel.classification",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractSecurityClassification"
                }
              ],
              "strength": "example",
              "description": "Codes for confidentiality protection.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-security-classification"
            }
          },
          {
            "id": "Contract.term.securityLabel.category",
            "path": "Contract.term.securityLabel.category",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.securityLabel.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractSecurityCategory"
                }
              ],
              "strength": "example",
              "description": "Codes for policy category.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-security-category"
            }
          },
          {
            "id": "Contract.term.securityLabel.control",
            "path": "Contract.term.securityLabel.control",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.securityLabel.control",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractSecurityControl"
                }
              ],
              "strength": "example",
              "description": "Codes for handling instructions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-security-control"
            }
          },
          {
            "id": "Contract.term.offer",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ContractOffer"
              }
            ],
            "path": "Contract.term.offer",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.term.offer",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.id",
            "path": "Contract.term.offer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.extension",
            "path": "Contract.term.offer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.modifierExtension",
            "path": "Contract.term.offer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.term.offer.identifier",
            "path": "Contract.term.offer.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.offer.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.party",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ContractParty"
              }
            ],
            "path": "Contract.term.offer.party",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.offer.party",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.party.id",
            "path": "Contract.term.offer.party.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.party.extension",
            "path": "Contract.term.offer.party.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.party.modifierExtension",
            "path": "Contract.term.offer.party.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.term.offer.party.reference",
            "path": "Contract.term.offer.party.reference",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Contract.term.offer.party.reference",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.party.role",
            "path": "Contract.term.offer.party.role",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.term.offer.party.role",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractPartyRole"
                }
              ],
              "strength": "example",
              "description": "Codes for offer participant roles.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-party-role"
            }
          },
          {
            "id": "Contract.term.offer.topic",
            "path": "Contract.term.offer.topic",
            "comment": "The Contract.topic may be an application for or offer of a policy or service (e.g., uri to a consent directive form or a health insurance policy), which becomes the Contract once accepted by both the grantor and grantee. \rThe Contract Resource may function simply as the computable representation of the executed contract, which may be the attached to the Contract Resource as the “binding” or as the “friendly” electronic form.  For example, a Contract Resource may be automatically populated with the values expressed in a related QuestionnaireResponse. \rHowever, the Contract Resource may be considered the legally binding contract if it is the only “executed” form of this contract, and includes the signatures as *The Contract Resource may function as the computable representation of an application or offer in a pre-executed Contract if the grantor has not entered any values.  In this case, it is populated with values in a “legal” form of the application or offer or by the values in an associated Questionnaire.  If the grantor has filled in the legal form or the associated Questionnaire Response, then these values are used to populate a pre-executed Contract Resource.\rIf the Contract.topic is considered an application or offer, then the policy is often required to be attached as the “legal” basis for the application to ensure “informed consent” to the contract, and that any discrepancy between the application and the policy are interpreted against the policy.  Implementers should check organizational and jurisdictional policies to determine the relationship among multiple representations of a contract pre- and post-execution.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.offer.topic",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Contract.term.offer.type",
            "path": "Contract.term.offer.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.offer.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractTermType"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the types of contract provisions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-term-type"
            }
          },
          {
            "id": "Contract.term.offer.decision",
            "path": "Contract.term.offer.decision",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.offer.decision",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractDecisionType"
                }
              ],
              "strength": "extensible",
              "description": "The type of decision made by a grantor with respect to an offer made by a grantee.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActConsentDirective"
            }
          },
          {
            "id": "Contract.term.offer.decisionMode",
            "path": "Contract.term.offer.decisionMode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.offer.decisionMode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractDecisionMode"
                }
              ],
              "strength": "example",
              "description": "Codes for conveying a decision.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-decision-mode"
            }
          },
          {
            "id": "Contract.term.offer.answer",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Answer"
              }
            ],
            "path": "Contract.term.offer.answer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.offer.answer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.answer.id",
            "path": "Contract.term.offer.answer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.answer.extension",
            "path": "Contract.term.offer.answer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.answer.modifierExtension",
            "path": "Contract.term.offer.answer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.term.offer.answer.value[x]",
            "path": "Contract.term.offer.answer.value[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.term.offer.answer.value[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "decimal"
              },
              {
                "code": "integer"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.text",
            "path": "Contract.term.offer.text",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.offer.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.linkId",
            "path": "Contract.term.offer.linkId",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.offer.linkId",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.offer.securityLabelNumber",
            "path": "Contract.term.offer.securityLabelNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.offer.securityLabelNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ContractAsset"
              }
            ],
            "path": "Contract.term.asset",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.id",
            "path": "Contract.term.asset.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.extension",
            "path": "Contract.term.asset.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.modifierExtension",
            "path": "Contract.term.asset.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.term.asset.scope",
            "path": "Contract.term.asset.scope",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.scope",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractAssetScope"
                }
              ],
              "strength": "example",
              "description": "Codes for scoping an asset.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-assetscope"
            }
          },
          {
            "id": "Contract.term.asset.type",
            "path": "Contract.term.asset.type",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractAssetType"
                }
              ],
              "strength": "example",
              "description": "Condes for the type of an asset.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-assettype"
            }
          },
          {
            "id": "Contract.term.asset.typeReference",
            "path": "Contract.term.asset.typeReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.typeReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.subtype",
            "path": "Contract.term.asset.subtype",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.subtype",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractAssetSubtype"
                }
              ],
              "strength": "example",
              "description": "Condes for the sub-type of an asset.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-assetsubtype"
            }
          },
          {
            "id": "Contract.term.asset.relationship",
            "path": "Contract.term.asset.relationship",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.relationship",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentContentClass"
                }
              ],
              "strength": "extensible",
              "description": "The class (type) of information a consent rule covers.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-content-class"
            }
          },
          {
            "id": "Contract.term.asset.context",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AssetContext"
              }
            ],
            "path": "Contract.term.asset.context",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.context",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.context.id",
            "path": "Contract.term.asset.context.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.context.extension",
            "path": "Contract.term.asset.context.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.context.modifierExtension",
            "path": "Contract.term.asset.context.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.term.asset.context.reference",
            "path": "Contract.term.asset.context.reference",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.context.reference",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.context.code",
            "path": "Contract.term.asset.context.code",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.context.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractAssetContext"
                }
              ],
              "strength": "example",
              "description": "Codes for the context of the asset.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-assetcontext"
            }
          },
          {
            "id": "Contract.term.asset.context.text",
            "path": "Contract.term.asset.context.text",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.context.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.condition",
            "path": "Contract.term.asset.condition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.condition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.periodType",
            "path": "Contract.term.asset.periodType",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.periodType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AssetAvailabilityType"
                }
              ],
              "strength": "example",
              "description": "Codes for asset availability.",
              "valueSet": "http://hl7.org/fhir/ValueSet/asset-availability"
            }
          },
          {
            "id": "Contract.term.asset.period",
            "path": "Contract.term.asset.period",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.period",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.usePeriod",
            "path": "Contract.term.asset.usePeriod",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.usePeriod",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.text",
            "path": "Contract.term.asset.text",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.linkId",
            "path": "Contract.term.asset.linkId",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.linkId",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.answer",
            "path": "Contract.term.asset.answer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.answer",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#Contract.term.offer.answer",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.securityLabelNumber",
            "path": "Contract.term.asset.securityLabelNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.securityLabelNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ValuedItem"
              }
            ],
            "path": "Contract.term.asset.valuedItem",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.valuedItem",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.id",
            "path": "Contract.term.asset.valuedItem.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.extension",
            "path": "Contract.term.asset.valuedItem.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.modifierExtension",
            "path": "Contract.term.asset.valuedItem.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.term.asset.valuedItem.entity[x]",
            "path": "Contract.term.asset.valuedItem.entity[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.entity[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.identifier",
            "path": "Contract.term.asset.valuedItem.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.effectiveTime",
            "path": "Contract.term.asset.valuedItem.effectiveTime",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.effectiveTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.quantity",
            "path": "Contract.term.asset.valuedItem.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.unitPrice",
            "path": "Contract.term.asset.valuedItem.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.factor",
            "path": "Contract.term.asset.valuedItem.factor",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.points",
            "path": "Contract.term.asset.valuedItem.points",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.points",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.net",
            "path": "Contract.term.asset.valuedItem.net",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.payment",
            "path": "Contract.term.asset.valuedItem.payment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.payment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.paymentDate",
            "path": "Contract.term.asset.valuedItem.paymentDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.paymentDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.responsible",
            "path": "Contract.term.asset.valuedItem.responsible",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.responsible",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.recipient",
            "path": "Contract.term.asset.valuedItem.recipient",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.asset.valuedItem.recipient",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.linkId",
            "path": "Contract.term.asset.valuedItem.linkId",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.valuedItem.linkId",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.asset.valuedItem.securityLabelNumber",
            "path": "Contract.term.asset.valuedItem.securityLabelNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.asset.valuedItem.securityLabelNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Action"
              }
            ],
            "path": "Contract.term.action",
            "comment": "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.\rFor example, in cases of actions initiated by one user for other users, or in events that involve more than one user, hardware device, software, or system process. However, only one user may be the initiator/requestor for the event.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.id",
            "path": "Contract.term.action.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.extension",
            "path": "Contract.term.action.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.modifierExtension",
            "path": "Contract.term.action.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.term.action.doNotPerform",
            "path": "Contract.term.action.doNotPerform",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.action.doNotPerform",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If true this element negates the specified action. For Example, instead of a dictate to perform an action, it is a dictate not to perform the action.",
            "isSummary": false
          },
          {
            "id": "Contract.term.action.type",
            "path": "Contract.term.action.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.term.action.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractAction"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the contract action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-action"
            }
          },
          {
            "id": "Contract.term.action.subject",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ActionSubject"
              }
            ],
            "path": "Contract.term.action.subject",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.subject",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.subject.id",
            "path": "Contract.term.action.subject.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.subject.extension",
            "path": "Contract.term.action.subject.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.subject.modifierExtension",
            "path": "Contract.term.action.subject.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.term.action.subject.reference",
            "path": "Contract.term.action.subject.reference",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Contract.term.action.subject.reference",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.subject.role",
            "path": "Contract.term.action.subject.role",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.action.subject.role",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActorRole"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the contract actor role.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-actorrole"
            }
          },
          {
            "id": "Contract.term.action.intent",
            "path": "Contract.term.action.intent",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.term.action.intent",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActionReason"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the contract action reason.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "Contract.term.action.linkId",
            "path": "Contract.term.action.linkId",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.linkId",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.status",
            "path": "Contract.term.action.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.term.action.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActionStatus"
                }
              ],
              "strength": "example",
              "description": "Codes for the status of an term action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-actionstatus"
            }
          },
          {
            "id": "Contract.term.action.context",
            "path": "Contract.term.action.context",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.action.context",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.contextLinkId",
            "path": "Contract.term.action.contextLinkId",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.contextLinkId",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.occurrence[x]",
            "path": "Contract.term.action.occurrence[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.action.occurrence[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.requester",
            "path": "Contract.term.action.requester",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.requester",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.requesterLinkId",
            "path": "Contract.term.action.requesterLinkId",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.requesterLinkId",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.performerType",
            "path": "Contract.term.action.performerType",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.performerType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActionPerformerType"
                }
              ],
              "strength": "example",
              "description": "Codes for the types of action perfomer.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provenance-agent-type"
            }
          },
          {
            "id": "Contract.term.action.performerRole",
            "path": "Contract.term.action.performerRole",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.action.performerRole",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActionPerformerRole"
                }
              ],
              "strength": "example",
              "description": "Codes for the role of the action performer.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provenance-agent-role"
            }
          },
          {
            "id": "Contract.term.action.performer",
            "path": "Contract.term.action.performer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.term.action.performer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.performerLinkId",
            "path": "Contract.term.action.performerLinkId",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.performerLinkId",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.reasonCode",
            "path": "Contract.term.action.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActionReason"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the contract action reason.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "Contract.term.action.reasonReference",
            "path": "Contract.term.action.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.reason",
            "path": "Contract.term.action.reason",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.reason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.reasonLinkId",
            "path": "Contract.term.action.reasonLinkId",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.reasonLinkId",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.note",
            "path": "Contract.term.action.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.action.securityLabelNumber",
            "path": "Contract.term.action.securityLabelNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.action.securityLabelNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.term.group",
            "path": "Contract.term.group",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.term.group",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#Contract.term",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.supportingInfo",
            "path": "Contract.supportingInfo",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.supportingInfo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.relevantHistory",
            "path": "Contract.relevantHistory",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.relevantHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.signer",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Signatory"
              }
            ],
            "path": "Contract.signer",
            "comment": "Signers who are principal parties to the contract are bound by the Contract.activity related to the Contract.topic, and the Contract.term(s), which either extend or restrict the overall action on the topic by, for example, stipulating specific policies or obligations constraining actions, action reason, or agents with respect to some or all of the topic.\rFor example, specifying how policies or obligations shall constrain actions and action reasons permitted or denied on all or a subset of the Contract.topic (e.g., all or a portion of property being transferred by the contract), agents (e.g., who can resell, assign interests, or alter the property being transferred by the contract), actions, and action reasons; or with respect to Contract.terms, stipulating, extending, or limiting the Contract.period of applicability or valuation of items under consideration.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.signer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.signer.id",
            "path": "Contract.signer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.signer.extension",
            "path": "Contract.signer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.signer.modifierExtension",
            "path": "Contract.signer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.signer.type",
            "path": "Contract.signer.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.signer.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractSignerType"
                }
              ],
              "strength": "preferred",
              "description": "List of parties who may be signing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-signer-type"
            }
          },
          {
            "id": "Contract.signer.party",
            "path": "Contract.signer.party",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.signer.party",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.signer.signature",
            "path": "Contract.signer.signature",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Contract.signer.signature",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "Signature"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.friendly",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "FriendlyLanguage"
              }
            ],
            "path": "Contract.friendly",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.friendly",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.friendly.id",
            "path": "Contract.friendly.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.friendly.extension",
            "path": "Contract.friendly.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.friendly.modifierExtension",
            "path": "Contract.friendly.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.friendly.content[x]",
            "path": "Contract.friendly.content[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.friendly.content[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Composition",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.legal",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "LegalLanguage"
              }
            ],
            "path": "Contract.legal",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.legal",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.legal.id",
            "path": "Contract.legal.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.legal.extension",
            "path": "Contract.legal.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.legal.modifierExtension",
            "path": "Contract.legal.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.legal.content[x]",
            "path": "Contract.legal.content[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.legal.content[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Composition",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.rule",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ComputableLanguage"
              }
            ],
            "path": "Contract.rule",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Contract.rule",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.rule.id",
            "path": "Contract.rule.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.rule.extension",
            "path": "Contract.rule.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.rule.modifierExtension",
            "path": "Contract.rule.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Contract.rule.content[x]",
            "path": "Contract.rule.content[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Contract.rule.content[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Contract.legallyBinding[x]",
            "path": "Contract.legallyBinding[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Contract.legallyBinding[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Composition",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/Contract"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Contract",
            "path": "Contract",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Contract.identifier",
            "path": "Contract.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.url",
            "path": "Contract.url",
            "comment": "Used in a domain that uses a supplied contract repository.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "Contract.version",
            "path": "Contract.version",
            "comment": "Note -  This is a business versionId, not a resource version id (see discussion http://build.fhir.org/resource.html#versions) \rComments - There may be different contract instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the plan definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.status",
            "path": "Contract.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the contract as not currently valid or active.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-status|4.0.1"
            }
          },
          {
            "id": "Contract.legalState",
            "path": "Contract.legalState",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractLegalState"
                }
              ],
              "strength": "extensible",
              "description": "Detailed codes for the legal state of a contract.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-legalstate"
            }
          },
          {
            "id": "Contract.instantiatesCanonical",
            "path": "Contract.instantiatesCanonical",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Contract"
                ]
              }
            ]
          },
          {
            "id": "Contract.instantiatesUri",
            "path": "Contract.instantiatesUri",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "Contract.contentDerivative",
            "path": "Contract.contentDerivative",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractContentDerivative"
                }
              ],
              "strength": "example",
              "description": "This is an example set of Content Derivative type codes, which represent the minimal content derived from the basal information source.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-content-derivative"
            }
          },
          {
            "id": "Contract.issued",
            "path": "Contract.issued",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.applies",
            "path": "Contract.applies",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.expirationType",
            "path": "Contract.expirationType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractExpiration"
                }
              ],
              "strength": "example",
              "description": "Codes for the Cessation of Contracts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-expiration-type"
            }
          },
          {
            "id": "Contract.subject",
            "path": "Contract.subject",
            "comment": "The Contract.subject is an entity that has some role with respect to the Contract.topic and Contract.topic.term, which is of focal interest to the parties to the contract and likely impacted in a significant way by the Contract.action/Contract.action.reason and the Contract.term.action/Contract.action.reason. \rIn many cases, the Contract.subject is a Contract.signer if the subject is an adult; has a legal interest in the contract; and incompetent to participate in the contract agreement.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.authority",
            "path": "Contract.authority",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Contract.domain",
            "path": "Contract.domain",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "Contract.site",
            "path": "Contract.site",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "Contract.name",
            "path": "Contract.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.title",
            "path": "Contract.title",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.subtitle",
            "path": "Contract.subtitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.alias",
            "path": "Contract.alias",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.author",
            "path": "Contract.author",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Contract.scope",
            "path": "Contract.scope",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractScope"
                }
              ],
              "strength": "example",
              "description": "Codes for the range of legal concerns.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-scope"
            }
          },
          {
            "id": "Contract.topic[x]",
            "path": "Contract.topic[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Contract.type",
            "path": "Contract.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractType"
                }
              ],
              "strength": "example",
              "description": "List of overall contract codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-type"
            }
          },
          {
            "id": "Contract.subType",
            "path": "Contract.subType",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractSubtype"
                }
              ],
              "strength": "example",
              "description": "Detailed codes within the above.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-subtype"
            }
          },
          {
            "id": "Contract.contentDefinition",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ContentDefinition"
              }
            ],
            "path": "Contract.contentDefinition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.contentDefinition.type",
            "path": "Contract.contentDefinition.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractDefinitionType"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the definition of contracts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-definition-type"
            }
          },
          {
            "id": "Contract.contentDefinition.subType",
            "path": "Contract.contentDefinition.subType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractDefinitionSubtype"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the additional definition of contracts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-definition-subtype"
            }
          },
          {
            "id": "Contract.contentDefinition.publisher",
            "path": "Contract.contentDefinition.publisher",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Contract.contentDefinition.publicationDate",
            "path": "Contract.contentDefinition.publicationDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Contract.contentDefinition.publicationStatus",
            "path": "Contract.contentDefinition.publicationStatus",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractPublicationStatus"
                }
              ],
              "strength": "required",
              "description": "Status of the publication of contract content.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-publicationstatus|4.0.1"
            }
          },
          {
            "id": "Contract.contentDefinition.copyright",
            "path": "Contract.contentDefinition.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "Contract.term",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Term"
              }
            ],
            "path": "Contract.term",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.term.identifier",
            "path": "Contract.term.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.term.issued",
            "path": "Contract.term.issued",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.term.applies",
            "path": "Contract.term.applies",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.term.topic[x]",
            "path": "Contract.term.topic[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.type",
            "path": "Contract.term.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractTermType"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the types of contract provisions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-term-type"
            }
          },
          {
            "id": "Contract.term.subType",
            "path": "Contract.term.subType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractTermSubType"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the subtypes of contract provisions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-term-subtype"
            }
          },
          {
            "id": "Contract.term.text",
            "path": "Contract.term.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.term.securityLabel",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SecurityLabel"
              }
            ],
            "path": "Contract.term.securityLabel",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.term.securityLabel.number",
            "path": "Contract.term.securityLabel.number",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "unsignedInt"
              }
            ]
          },
          {
            "id": "Contract.term.securityLabel.classification",
            "path": "Contract.term.securityLabel.classification",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractSecurityClassification"
                }
              ],
              "strength": "example",
              "description": "Codes for confidentiality protection.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-security-classification"
            }
          },
          {
            "id": "Contract.term.securityLabel.category",
            "path": "Contract.term.securityLabel.category",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractSecurityCategory"
                }
              ],
              "strength": "example",
              "description": "Codes for policy category.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-security-category"
            }
          },
          {
            "id": "Contract.term.securityLabel.control",
            "path": "Contract.term.securityLabel.control",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractSecurityControl"
                }
              ],
              "strength": "example",
              "description": "Codes for handling instructions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-security-control"
            }
          },
          {
            "id": "Contract.term.offer",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ContractOffer"
              }
            ],
            "path": "Contract.term.offer",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.term.offer.identifier",
            "path": "Contract.term.offer.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Contract.term.offer.party",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ContractParty"
              }
            ],
            "path": "Contract.term.offer.party",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.term.offer.party.reference",
            "path": "Contract.term.offer.party.reference",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.offer.party.role",
            "path": "Contract.term.offer.party.role",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractPartyRole"
                }
              ],
              "strength": "example",
              "description": "Codes for offer participant roles.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-party-role"
            }
          },
          {
            "id": "Contract.term.offer.topic",
            "path": "Contract.term.offer.topic",
            "comment": "The Contract.topic may be an application for or offer of a policy or service (e.g., uri to a consent directive form or a health insurance policy), which becomes the Contract once accepted by both the grantor and grantee. \rThe Contract Resource may function simply as the computable representation of the executed contract, which may be the attached to the Contract Resource as the “binding” or as the “friendly” electronic form.  For example, a Contract Resource may be automatically populated with the values expressed in a related QuestionnaireResponse. \rHowever, the Contract Resource may be considered the legally binding contract if it is the only “executed” form of this contract, and includes the signatures as *The Contract Resource may function as the computable representation of an application or offer in a pre-executed Contract if the grantor has not entered any values.  In this case, it is populated with values in a “legal” form of the application or offer or by the values in an associated Questionnaire.  If the grantor has filled in the legal form or the associated Questionnaire Response, then these values are used to populate a pre-executed Contract Resource.\rIf the Contract.topic is considered an application or offer, then the policy is often required to be attached as the “legal” basis for the application to ensure “informed consent” to the contract, and that any discrepancy between the application and the policy are interpreted against the policy.  Implementers should check organizational and jurisdictional policies to determine the relationship among multiple representations of a contract pre- and post-execution.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Contract.term.offer.type",
            "path": "Contract.term.offer.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractTermType"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the types of contract provisions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-term-type"
            }
          },
          {
            "id": "Contract.term.offer.decision",
            "path": "Contract.term.offer.decision",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractDecisionType"
                }
              ],
              "strength": "extensible",
              "description": "The type of decision made by a grantor with respect to an offer made by a grantee.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActConsentDirective"
            }
          },
          {
            "id": "Contract.term.offer.decisionMode",
            "path": "Contract.term.offer.decisionMode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractDecisionMode"
                }
              ],
              "strength": "example",
              "description": "Codes for conveying a decision.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-decision-mode"
            }
          },
          {
            "id": "Contract.term.offer.answer",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Answer"
              }
            ],
            "path": "Contract.term.offer.answer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.term.offer.answer.value[x]",
            "path": "Contract.term.offer.answer.value[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "decimal"
              },
              {
                "code": "integer"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.offer.text",
            "path": "Contract.term.offer.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.offer.linkId",
            "path": "Contract.term.offer.linkId",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.offer.securityLabelNumber",
            "path": "Contract.term.offer.securityLabelNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "unsignedInt"
              }
            ]
          },
          {
            "id": "Contract.term.asset",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ContractAsset"
              }
            ],
            "path": "Contract.term.asset",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.term.asset.scope",
            "path": "Contract.term.asset.scope",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractAssetScope"
                }
              ],
              "strength": "example",
              "description": "Codes for scoping an asset.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-assetscope"
            }
          },
          {
            "id": "Contract.term.asset.type",
            "path": "Contract.term.asset.type",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractAssetType"
                }
              ],
              "strength": "example",
              "description": "Condes for the type of an asset.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-assettype"
            }
          },
          {
            "id": "Contract.term.asset.typeReference",
            "path": "Contract.term.asset.typeReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.asset.subtype",
            "path": "Contract.term.asset.subtype",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractAssetSubtype"
                }
              ],
              "strength": "example",
              "description": "Condes for the sub-type of an asset.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-assetsubtype"
            }
          },
          {
            "id": "Contract.term.asset.relationship",
            "path": "Contract.term.asset.relationship",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConsentContentClass"
                }
              ],
              "strength": "extensible",
              "description": "The class (type) of information a consent rule covers.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consent-content-class"
            }
          },
          {
            "id": "Contract.term.asset.context",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AssetContext"
              }
            ],
            "path": "Contract.term.asset.context",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.term.asset.context.reference",
            "path": "Contract.term.asset.context.reference",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.asset.context.code",
            "path": "Contract.term.asset.context.code",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractAssetContext"
                }
              ],
              "strength": "example",
              "description": "Codes for the context of the asset.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-assetcontext"
            }
          },
          {
            "id": "Contract.term.asset.context.text",
            "path": "Contract.term.asset.context.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.asset.condition",
            "path": "Contract.term.asset.condition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.asset.periodType",
            "path": "Contract.term.asset.periodType",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AssetAvailabilityType"
                }
              ],
              "strength": "example",
              "description": "Codes for asset availability.",
              "valueSet": "http://hl7.org/fhir/ValueSet/asset-availability"
            }
          },
          {
            "id": "Contract.term.asset.period",
            "path": "Contract.term.asset.period",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Contract.term.asset.usePeriod",
            "path": "Contract.term.asset.usePeriod",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Contract.term.asset.text",
            "path": "Contract.term.asset.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.asset.linkId",
            "path": "Contract.term.asset.linkId",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.asset.answer",
            "path": "Contract.term.asset.answer",
            "min": 0,
            "max": "*",
            "contentReference": "#Contract.term.offer.answer"
          },
          {
            "id": "Contract.term.asset.securityLabelNumber",
            "path": "Contract.term.asset.securityLabelNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "unsignedInt"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ValuedItem"
              }
            ],
            "path": "Contract.term.asset.valuedItem",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.entity[x]",
            "path": "Contract.term.asset.valuedItem.entity[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.identifier",
            "path": "Contract.term.asset.valuedItem.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.effectiveTime",
            "path": "Contract.term.asset.valuedItem.effectiveTime",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.quantity",
            "path": "Contract.term.asset.valuedItem.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.unitPrice",
            "path": "Contract.term.asset.valuedItem.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.factor",
            "path": "Contract.term.asset.valuedItem.factor",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.points",
            "path": "Contract.term.asset.valuedItem.points",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.net",
            "path": "Contract.term.asset.valuedItem.net",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.payment",
            "path": "Contract.term.asset.valuedItem.payment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.paymentDate",
            "path": "Contract.term.asset.valuedItem.paymentDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.responsible",
            "path": "Contract.term.asset.valuedItem.responsible",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.recipient",
            "path": "Contract.term.asset.valuedItem.recipient",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.linkId",
            "path": "Contract.term.asset.valuedItem.linkId",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.asset.valuedItem.securityLabelNumber",
            "path": "Contract.term.asset.valuedItem.securityLabelNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "unsignedInt"
              }
            ]
          },
          {
            "id": "Contract.term.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Action"
              }
            ],
            "path": "Contract.term.action",
            "comment": "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.\rFor example, in cases of actions initiated by one user for other users, or in events that involve more than one user, hardware device, software, or system process. However, only one user may be the initiator/requestor for the event.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.term.action.doNotPerform",
            "path": "Contract.term.action.doNotPerform",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If true this element negates the specified action. For Example, instead of a dictate to perform an action, it is a dictate not to perform the action."
          },
          {
            "id": "Contract.term.action.type",
            "path": "Contract.term.action.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractAction"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the contract action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-action"
            }
          },
          {
            "id": "Contract.term.action.subject",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ActionSubject"
              }
            ],
            "path": "Contract.term.action.subject",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.term.action.subject.reference",
            "path": "Contract.term.action.subject.reference",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.action.subject.role",
            "path": "Contract.term.action.subject.role",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActorRole"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the contract actor role.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-actorrole"
            }
          },
          {
            "id": "Contract.term.action.intent",
            "path": "Contract.term.action.intent",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActionReason"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the contract action reason.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "Contract.term.action.linkId",
            "path": "Contract.term.action.linkId",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.action.status",
            "path": "Contract.term.action.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActionStatus"
                }
              ],
              "strength": "example",
              "description": "Codes for the status of an term action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-actionstatus"
            }
          },
          {
            "id": "Contract.term.action.context",
            "path": "Contract.term.action.context",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.action.contextLinkId",
            "path": "Contract.term.action.contextLinkId",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.action.occurrence[x]",
            "path": "Contract.term.action.occurrence[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ]
          },
          {
            "id": "Contract.term.action.requester",
            "path": "Contract.term.action.requester",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.action.requesterLinkId",
            "path": "Contract.term.action.requesterLinkId",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.action.performerType",
            "path": "Contract.term.action.performerType",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActionPerformerType"
                }
              ],
              "strength": "example",
              "description": "Codes for the types of action perfomer.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provenance-agent-type"
            }
          },
          {
            "id": "Contract.term.action.performerRole",
            "path": "Contract.term.action.performerRole",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActionPerformerRole"
                }
              ],
              "strength": "example",
              "description": "Codes for the role of the action performer.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provenance-agent-role"
            }
          },
          {
            "id": "Contract.term.action.performer",
            "path": "Contract.term.action.performer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.action.performerLinkId",
            "path": "Contract.term.action.performerLinkId",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.action.reasonCode",
            "path": "Contract.term.action.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractActionReason"
                }
              ],
              "strength": "example",
              "description": "Detailed codes for the contract action reason.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "Contract.term.action.reasonReference",
            "path": "Contract.term.action.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                ]
              }
            ]
          },
          {
            "id": "Contract.term.action.reason",
            "path": "Contract.term.action.reason",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.action.reasonLinkId",
            "path": "Contract.term.action.reasonLinkId",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Contract.term.action.note",
            "path": "Contract.term.action.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "Contract.term.action.securityLabelNumber",
            "path": "Contract.term.action.securityLabelNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "unsignedInt"
              }
            ]
          },
          {
            "id": "Contract.term.group",
            "path": "Contract.term.group",
            "min": 0,
            "max": "*",
            "contentReference": "#Contract.term"
          },
          {
            "id": "Contract.supportingInfo",
            "path": "Contract.supportingInfo",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Contract.relevantHistory",
            "path": "Contract.relevantHistory",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ]
          },
          {
            "id": "Contract.signer",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Signatory"
              }
            ],
            "path": "Contract.signer",
            "comment": "Signers who are principal parties to the contract are bound by the Contract.activity related to the Contract.topic, and the Contract.term(s), which either extend or restrict the overall action on the topic by, for example, stipulating specific policies or obligations constraining actions, action reason, or agents with respect to some or all of the topic.\rFor example, specifying how policies or obligations shall constrain actions and action reasons permitted or denied on all or a subset of the Contract.topic (e.g., all or a portion of property being transferred by the contract), agents (e.g., who can resell, assign interests, or alter the property being transferred by the contract), actions, and action reasons; or with respect to Contract.terms, stipulating, extending, or limiting the Contract.period of applicability or valuation of items under consideration.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.signer.type",
            "path": "Contract.signer.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContractSignerType"
                }
              ],
              "strength": "preferred",
              "description": "List of parties who may be signing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contract-signer-type"
            }
          },
          {
            "id": "Contract.signer.party",
            "path": "Contract.signer.party",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ]
          },
          {
            "id": "Contract.signer.signature",
            "path": "Contract.signer.signature",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "Signature"
              }
            ]
          },
          {
            "id": "Contract.friendly",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "FriendlyLanguage"
              }
            ],
            "path": "Contract.friendly",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.friendly.content[x]",
            "path": "Contract.friendly.content[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Composition",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                ]
              }
            ]
          },
          {
            "id": "Contract.legal",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "LegalLanguage"
              }
            ],
            "path": "Contract.legal",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.legal.content[x]",
            "path": "Contract.legal.content[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Composition",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
                ]
              }
            ]
          },
          {
            "id": "Contract.rule",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ComputableLanguage"
              }
            ],
            "path": "Contract.rule",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Contract.rule.content[x]",
            "path": "Contract.rule.content[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ]
          },
          {
            "id": "Contract.legallyBinding[x]",
            "path": "Contract.legallyBinding[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Composition",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/Contract"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Coverage",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Coverage",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.Support"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Coverage",
      "version": "4.0.1",
      "name": "Coverage",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Coverage provides a link between covered parties (patients) and the payors of their healthcare costs (both insurance and self-pay).",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Coverage",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Coverage",
            "path": "Coverage",
            "comment": "The Coverage resource contains the insurance card level information, which is customary to provide on claims and other communications between providers and insurers.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Coverage",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.id",
            "path": "Coverage.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.meta",
            "path": "Coverage.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.implicitRules",
            "path": "Coverage.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Coverage.language",
            "path": "Coverage.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Coverage.text",
            "path": "Coverage.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.contained",
            "path": "Coverage.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.extension",
            "path": "Coverage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.modifierExtension",
            "path": "Coverage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Coverage.identifier",
            "path": "Coverage.identifier",
            "comment": "The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Certificate number, Personal Health Number or Case ID. May be constructed as the concatenation of the Coverage.SubscriberID and the Coverage.dependant.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Coverage.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.status",
            "path": "Coverage.status",
            "comment": "This element is labeled as a modifier because the status contains the code entered-in-error that marks the coverage as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Coverage.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CoverageStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "Coverage.type",
            "path": "Coverage.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CoverageType"
                }
              ],
              "strength": "preferred",
              "description": "The type of insurance: public health, worker compensation; private accident, auto, private health, etc.) or a direct payment by an individual or organization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/coverage-type"
            }
          },
          {
            "id": "Coverage.policyHolder",
            "path": "Coverage.policyHolder",
            "comment": "For example: may be an individual, corporation or the subscriber's employer.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.policyHolder",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.subscriber",
            "path": "Coverage.subscriber",
            "comment": "May be self or a parent in the case of dependants.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.subscriber",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.subscriberId",
            "path": "Coverage.subscriberId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.subscriberId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.beneficiary",
            "path": "Coverage.beneficiary",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Coverage.beneficiary",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.dependent",
            "path": "Coverage.dependent",
            "comment": "Periodically the member number is constructed from the subscriberId and the dependant number.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.dependent",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.relationship",
            "path": "Coverage.relationship",
            "comment": "Typically, an individual uses policies which are theirs (relationship='self') before policies owned by others.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.relationship",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Relationship"
                }
              ],
              "strength": "extensible",
              "description": "The relationship between the Subscriber and the Beneficiary (insured/covered party/patient).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subscriber-relationship"
            }
          },
          {
            "id": "Coverage.period",
            "path": "Coverage.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.payor",
            "path": "Coverage.payor",
            "comment": "May provide multiple identifiers such as insurance company identifier or business identifier (BIN number).\nFor selfpay it may provide multiple paying persons and/or organizations.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Coverage.payor",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.class",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Class"
              }
            ],
            "path": "Coverage.class",
            "comment": "For example may be used to identify a class of coverage or employer group, Policy, Plan.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Coverage.class",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.class.id",
            "path": "Coverage.class.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.class.extension",
            "path": "Coverage.class.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.class.modifierExtension",
            "path": "Coverage.class.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Coverage.class.type",
            "path": "Coverage.class.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Coverage.class.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CoverageClass"
                }
              ],
              "strength": "extensible",
              "description": "The policy classifications, eg. Group, Plan, Class, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/coverage-class"
            }
          },
          {
            "id": "Coverage.class.value",
            "path": "Coverage.class.value",
            "comment": "For example, the Group or Plan number.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Coverage.class.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.class.name",
            "path": "Coverage.class.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.class.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.order",
            "path": "Coverage.order",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.order",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.network",
            "path": "Coverage.network",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.network",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.costToBeneficiary",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "CostToBeneficiary"
              }
            ],
            "path": "Coverage.costToBeneficiary",
            "comment": "For example by knowing the patient visit co-pay, the provider can collect the amount prior to undertaking treatment.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Coverage.costToBeneficiary",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.costToBeneficiary.id",
            "path": "Coverage.costToBeneficiary.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.costToBeneficiary.extension",
            "path": "Coverage.costToBeneficiary.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.costToBeneficiary.modifierExtension",
            "path": "Coverage.costToBeneficiary.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Coverage.costToBeneficiary.type",
            "path": "Coverage.costToBeneficiary.type",
            "comment": "For example visit, specialist visits, emergency, inpatient care, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.costToBeneficiary.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CopayTypes"
                }
              ],
              "strength": "extensible",
              "description": "The types of services to which patient copayments are specified.",
              "valueSet": "http://hl7.org/fhir/ValueSet/coverage-copay-type"
            }
          },
          {
            "id": "Coverage.costToBeneficiary.value[x]",
            "path": "Coverage.costToBeneficiary.value[x]",
            "comment": "Amount may be expressed as a percentage of the service/product cost or a fixed amount of currency.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Coverage.costToBeneficiary.value[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              },
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.costToBeneficiary.exception",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Exemption"
              }
            ],
            "path": "Coverage.costToBeneficiary.exception",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Coverage.costToBeneficiary.exception",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.costToBeneficiary.exception.id",
            "path": "Coverage.costToBeneficiary.exception.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.costToBeneficiary.exception.extension",
            "path": "Coverage.costToBeneficiary.exception.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.costToBeneficiary.exception.modifierExtension",
            "path": "Coverage.costToBeneficiary.exception.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Coverage.costToBeneficiary.exception.type",
            "path": "Coverage.costToBeneficiary.exception.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Coverage.costToBeneficiary.exception.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CoverageFinancialException"
                }
              ],
              "strength": "example",
              "description": "The types of exceptions from the part or full value of financial obligations such as copays.",
              "valueSet": "http://hl7.org/fhir/ValueSet/coverage-financial-exception"
            }
          },
          {
            "id": "Coverage.costToBeneficiary.exception.period",
            "path": "Coverage.costToBeneficiary.exception.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.costToBeneficiary.exception.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Coverage.subrogation",
            "path": "Coverage.subrogation",
            "comment": "Typically, automotive and worker's compensation policies would be flagged with 'subrogation=true' to enable healthcare payors to collect against accident claims.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Coverage.subrogation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Coverage.contract",
            "path": "Coverage.contract",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Coverage.contract",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Contract"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Coverage",
            "path": "Coverage",
            "comment": "The Coverage resource contains the insurance card level information, which is customary to provide on claims and other communications between providers and insurers.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Coverage.identifier",
            "path": "Coverage.identifier",
            "comment": "The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Certificate number, Personal Health Number or Case ID. May be constructed as the concatenation of the Coverage.SubscriberID and the Coverage.dependant.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.status",
            "path": "Coverage.status",
            "comment": "This element is labeled as a modifier because the status contains the code entered-in-error that marks the coverage as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CoverageStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "Coverage.type",
            "path": "Coverage.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CoverageType"
                }
              ],
              "strength": "preferred",
              "description": "The type of insurance: public health, worker compensation; private accident, auto, private health, etc.) or a direct payment by an individual or organization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/coverage-type"
            }
          },
          {
            "id": "Coverage.policyHolder",
            "path": "Coverage.policyHolder",
            "comment": "For example: may be an individual, corporation or the subscriber's employer.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.subscriber",
            "path": "Coverage.subscriber",
            "comment": "May be self or a parent in the case of dependants.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.subscriberId",
            "path": "Coverage.subscriberId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.beneficiary",
            "path": "Coverage.beneficiary",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.dependent",
            "path": "Coverage.dependent",
            "comment": "Periodically the member number is constructed from the subscriberId and the dependant number.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.relationship",
            "path": "Coverage.relationship",
            "comment": "Typically, an individual uses policies which are theirs (relationship='self') before policies owned by others.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Relationship"
                }
              ],
              "strength": "extensible",
              "description": "The relationship between the Subscriber and the Beneficiary (insured/covered party/patient).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subscriber-relationship"
            }
          },
          {
            "id": "Coverage.period",
            "path": "Coverage.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.payor",
            "path": "Coverage.payor",
            "comment": "May provide multiple identifiers such as insurance company identifier or business identifier (BIN number).\nFor selfpay it may provide multiple paying persons and/or organizations.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.class",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Class"
              }
            ],
            "path": "Coverage.class",
            "comment": "For example may be used to identify a class of coverage or employer group, Policy, Plan.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Coverage.class.type",
            "path": "Coverage.class.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CoverageClass"
                }
              ],
              "strength": "extensible",
              "description": "The policy classifications, eg. Group, Plan, Class, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/coverage-class"
            }
          },
          {
            "id": "Coverage.class.value",
            "path": "Coverage.class.value",
            "comment": "For example, the Group or Plan number.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.class.name",
            "path": "Coverage.class.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.order",
            "path": "Coverage.order",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.network",
            "path": "Coverage.network",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.costToBeneficiary",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "CostToBeneficiary"
              }
            ],
            "path": "Coverage.costToBeneficiary",
            "comment": "For example by knowing the patient visit co-pay, the provider can collect the amount prior to undertaking treatment.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Coverage.costToBeneficiary.type",
            "path": "Coverage.costToBeneficiary.type",
            "comment": "For example visit, specialist visits, emergency, inpatient care, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CopayTypes"
                }
              ],
              "strength": "extensible",
              "description": "The types of services to which patient copayments are specified.",
              "valueSet": "http://hl7.org/fhir/ValueSet/coverage-copay-type"
            }
          },
          {
            "id": "Coverage.costToBeneficiary.value[x]",
            "path": "Coverage.costToBeneficiary.value[x]",
            "comment": "Amount may be expressed as a percentage of the service/product cost or a fixed amount of currency.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              },
              {
                "code": "Money"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.costToBeneficiary.exception",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Exemption"
              }
            ],
            "path": "Coverage.costToBeneficiary.exception",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Coverage.costToBeneficiary.exception.type",
            "path": "Coverage.costToBeneficiary.exception.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CoverageFinancialException"
                }
              ],
              "strength": "example",
              "description": "The types of exceptions from the part or full value of financial obligations such as copays.",
              "valueSet": "http://hl7.org/fhir/ValueSet/coverage-financial-exception"
            }
          },
          {
            "id": "Coverage.costToBeneficiary.exception.period",
            "path": "Coverage.costToBeneficiary.exception.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Coverage.subrogation",
            "path": "Coverage.subrogation",
            "comment": "Typically, automotive and worker's compensation policies would be flagged with 'subrogation=true' to enable healthcare payors to collect against accident claims.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "Coverage.contract",
            "path": "Coverage.contract",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Contract"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "CoverageEligibilityRequest",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.Support"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest",
      "version": "4.0.1",
      "name": "CoverageEligibilityRequest",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "CoverageEligibilityRequest",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "CoverageEligibilityRequest",
            "path": "CoverageEligibilityRequest",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityRequest",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.id",
            "path": "CoverageEligibilityRequest.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.meta",
            "path": "CoverageEligibilityRequest.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.implicitRules",
            "path": "CoverageEligibilityRequest.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.language",
            "path": "CoverageEligibilityRequest.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CoverageEligibilityRequest.text",
            "path": "CoverageEligibilityRequest.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.contained",
            "path": "CoverageEligibilityRequest.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.extension",
            "path": "CoverageEligibilityRequest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.modifierExtension",
            "path": "CoverageEligibilityRequest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.identifier",
            "path": "CoverageEligibilityRequest.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityRequest.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.status",
            "path": "CoverageEligibilityRequest.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EligibilityRequestStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "CoverageEligibilityRequest.priority",
            "path": "CoverageEligibilityRequest.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcessPriority"
                }
              ],
              "strength": "example",
              "description": "The timeliness with which processing is required: STAT, normal, Deferred.",
              "valueSet": "http://hl7.org/fhir/ValueSet/process-priority"
            }
          },
          {
            "id": "CoverageEligibilityRequest.purpose",
            "path": "CoverageEligibilityRequest.purpose",
            "min": 1,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityRequest.purpose",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EligibilityRequestPurpose"
                }
              ],
              "strength": "required",
              "description": "A code specifying the types of information being requested.",
              "valueSet": "http://hl7.org/fhir/ValueSet/eligibilityrequest-purpose|4.0.1"
            }
          },
          {
            "id": "CoverageEligibilityRequest.patient",
            "path": "CoverageEligibilityRequest.patient",
            "comment": "1..1.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.serviced[x]",
            "path": "CoverageEligibilityRequest.serviced[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.serviced[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.created",
            "path": "CoverageEligibilityRequest.created",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.created",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.enterer",
            "path": "CoverageEligibilityRequest.enterer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.enterer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.provider",
            "path": "CoverageEligibilityRequest.provider",
            "comment": "Typically this field would be 1..1 where this party is responsible for the eligibility request but not necessarily professionally responsible for the provision of the individual products and services listed below.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.provider",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.insurer",
            "path": "CoverageEligibilityRequest.insurer",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.insurer",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.facility",
            "path": "CoverageEligibilityRequest.facility",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.facility",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SupportingInformation"
              }
            ],
            "path": "CoverageEligibilityRequest.supportingInfo",
            "comment": "Often there are multiple jurisdiction specific valuesets which are required.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityRequest.supportingInfo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo.id",
            "path": "CoverageEligibilityRequest.supportingInfo.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo.extension",
            "path": "CoverageEligibilityRequest.supportingInfo.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo.modifierExtension",
            "path": "CoverageEligibilityRequest.supportingInfo.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo.sequence",
            "path": "CoverageEligibilityRequest.supportingInfo.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.supportingInfo.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo.information",
            "path": "CoverageEligibilityRequest.supportingInfo.information",
            "comment": "Could be used to provide references to other resources, document. For example could contain a PDF in an Attachment of the Police Report for an Accident.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.supportingInfo.information",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo.appliesToAll",
            "path": "CoverageEligibilityRequest.supportingInfo.appliesToAll",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.supportingInfo.appliesToAll",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.insurance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Insurance"
              }
            ],
            "path": "CoverageEligibilityRequest.insurance",
            "comment": "All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityRequest.insurance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.insurance.id",
            "path": "CoverageEligibilityRequest.insurance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.insurance.extension",
            "path": "CoverageEligibilityRequest.insurance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.insurance.modifierExtension",
            "path": "CoverageEligibilityRequest.insurance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.insurance.focal",
            "path": "CoverageEligibilityRequest.insurance.focal",
            "comment": "A patient may (will) have multiple insurance policies which provide reimburement for healthcare services and products. For example a person may also be covered by their spouse's policy and both appear in the list (and may be from the same insurer). This flag will be set to true for only one of the listed policies and that policy will be used for evaluating this request. Other requests would be created to request evaluation against the other listed policies.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.insurance.focal",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.insurance.coverage",
            "path": "CoverageEligibilityRequest.insurance.coverage",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.insurance.coverage",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.insurance.businessArrangement",
            "path": "CoverageEligibilityRequest.insurance.businessArrangement",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.insurance.businessArrangement",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Details"
              }
            ],
            "path": "CoverageEligibilityRequest.item",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityRequest.item",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.id",
            "path": "CoverageEligibilityRequest.item.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.extension",
            "path": "CoverageEligibilityRequest.item.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.modifierExtension",
            "path": "CoverageEligibilityRequest.item.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.item.supportingInfoSequence",
            "path": "CoverageEligibilityRequest.item.supportingInfoSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityRequest.item.supportingInfoSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.category",
            "path": "CoverageEligibilityRequest.item.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.item.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "CoverageEligibilityRequest.item.productOrService",
            "path": "CoverageEligibilityRequest.item.productOrService",
            "comment": "Code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.item.productOrService",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "CoverageEligibilityRequest.item.modifier",
            "path": "CoverageEligibilityRequest.item.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityRequest.item.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "CoverageEligibilityRequest.item.provider",
            "path": "CoverageEligibilityRequest.item.provider",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.item.provider",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.quantity",
            "path": "CoverageEligibilityRequest.item.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.item.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.unitPrice",
            "path": "CoverageEligibilityRequest.item.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.item.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.facility",
            "path": "CoverageEligibilityRequest.item.facility",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.item.facility",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.diagnosis",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Diagnosis"
              }
            ],
            "path": "CoverageEligibilityRequest.item.diagnosis",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityRequest.item.diagnosis",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.diagnosis.id",
            "path": "CoverageEligibilityRequest.item.diagnosis.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.diagnosis.extension",
            "path": "CoverageEligibilityRequest.item.diagnosis.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityRequest.item.diagnosis.modifierExtension",
            "path": "CoverageEligibilityRequest.item.diagnosis.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.item.diagnosis.diagnosis[x]",
            "path": "CoverageEligibilityRequest.item.diagnosis.diagnosis[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityRequest.item.diagnosis.diagnosis[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ICD10"
                }
              ],
              "strength": "example",
              "description": "ICD10 Diagnostic codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10"
            }
          },
          {
            "id": "CoverageEligibilityRequest.item.detail",
            "path": "CoverageEligibilityRequest.item.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityRequest.item.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "CoverageEligibilityRequest",
            "path": "CoverageEligibilityRequest",
            "min": 0,
            "max": "*"
          },
          {
            "id": "CoverageEligibilityRequest.identifier",
            "path": "CoverageEligibilityRequest.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.status",
            "path": "CoverageEligibilityRequest.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EligibilityRequestStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "CoverageEligibilityRequest.priority",
            "path": "CoverageEligibilityRequest.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcessPriority"
                }
              ],
              "strength": "example",
              "description": "The timeliness with which processing is required: STAT, normal, Deferred.",
              "valueSet": "http://hl7.org/fhir/ValueSet/process-priority"
            }
          },
          {
            "id": "CoverageEligibilityRequest.purpose",
            "path": "CoverageEligibilityRequest.purpose",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EligibilityRequestPurpose"
                }
              ],
              "strength": "required",
              "description": "A code specifying the types of information being requested.",
              "valueSet": "http://hl7.org/fhir/ValueSet/eligibilityrequest-purpose|4.0.1"
            }
          },
          {
            "id": "CoverageEligibilityRequest.patient",
            "path": "CoverageEligibilityRequest.patient",
            "comment": "1..1.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.serviced[x]",
            "path": "CoverageEligibilityRequest.serviced[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.created",
            "path": "CoverageEligibilityRequest.created",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.enterer",
            "path": "CoverageEligibilityRequest.enterer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.provider",
            "path": "CoverageEligibilityRequest.provider",
            "comment": "Typically this field would be 1..1 where this party is responsible for the eligibility request but not necessarily professionally responsible for the provision of the individual products and services listed below.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.insurer",
            "path": "CoverageEligibilityRequest.insurer",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityRequest.facility",
            "path": "CoverageEligibilityRequest.facility",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SupportingInformation"
              }
            ],
            "path": "CoverageEligibilityRequest.supportingInfo",
            "comment": "Often there are multiple jurisdiction specific valuesets which are required.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo.sequence",
            "path": "CoverageEligibilityRequest.supportingInfo.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo.information",
            "path": "CoverageEligibilityRequest.supportingInfo.information",
            "comment": "Could be used to provide references to other resources, document. For example could contain a PDF in an Attachment of the Police Report for an Accident.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.supportingInfo.appliesToAll",
            "path": "CoverageEligibilityRequest.supportingInfo.appliesToAll",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.insurance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Insurance"
              }
            ],
            "path": "CoverageEligibilityRequest.insurance",
            "comment": "All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.insurance.focal",
            "path": "CoverageEligibilityRequest.insurance.focal",
            "comment": "A patient may (will) have multiple insurance policies which provide reimburement for healthcare services and products. For example a person may also be covered by their spouse's policy and both appear in the list (and may be from the same insurer). This flag will be set to true for only one of the listed policies and that policy will be used for evaluating this request. Other requests would be created to request evaluation against the other listed policies.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.insurance.coverage",
            "path": "CoverageEligibilityRequest.insurance.coverage",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.insurance.businessArrangement",
            "path": "CoverageEligibilityRequest.insurance.businessArrangement",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.item",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Details"
              }
            ],
            "path": "CoverageEligibilityRequest.item",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.item.supportingInfoSequence",
            "path": "CoverageEligibilityRequest.item.supportingInfoSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.item.category",
            "path": "CoverageEligibilityRequest.item.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "CoverageEligibilityRequest.item.productOrService",
            "path": "CoverageEligibilityRequest.item.productOrService",
            "comment": "Code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "CoverageEligibilityRequest.item.modifier",
            "path": "CoverageEligibilityRequest.item.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "CoverageEligibilityRequest.item.provider",
            "path": "CoverageEligibilityRequest.item.provider",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.item.quantity",
            "path": "CoverageEligibilityRequest.item.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.item.unitPrice",
            "path": "CoverageEligibilityRequest.item.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.item.facility",
            "path": "CoverageEligibilityRequest.item.facility",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.item.diagnosis",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Diagnosis"
              }
            ],
            "path": "CoverageEligibilityRequest.item.diagnosis",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CoverageEligibilityRequest.item.diagnosis.diagnosis[x]",
            "path": "CoverageEligibilityRequest.item.diagnosis.diagnosis[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ICD10"
                }
              ],
              "strength": "example",
              "description": "ICD10 Diagnostic codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10"
            }
          },
          {
            "id": "CoverageEligibilityRequest.item.detail",
            "path": "CoverageEligibilityRequest.item.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/CoverageEligibilityResponse",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "CoverageEligibilityResponse",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.Support"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/CoverageEligibilityResponse",
      "version": "4.0.1",
      "name": "CoverageEligibilityResponse",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "CoverageEligibilityResponse",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "CoverageEligibilityResponse",
            "path": "CoverageEligibilityResponse",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityResponse",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.id",
            "path": "CoverageEligibilityResponse.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.meta",
            "path": "CoverageEligibilityResponse.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.implicitRules",
            "path": "CoverageEligibilityResponse.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.language",
            "path": "CoverageEligibilityResponse.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "CoverageEligibilityResponse.text",
            "path": "CoverageEligibilityResponse.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.contained",
            "path": "CoverageEligibilityResponse.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.extension",
            "path": "CoverageEligibilityResponse.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.modifierExtension",
            "path": "CoverageEligibilityResponse.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.identifier",
            "path": "CoverageEligibilityResponse.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityResponse.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.status",
            "path": "CoverageEligibilityResponse.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EligibilityResponseStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "CoverageEligibilityResponse.purpose",
            "path": "CoverageEligibilityResponse.purpose",
            "min": 1,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityResponse.purpose",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EligibilityResponsePurpose"
                }
              ],
              "strength": "required",
              "description": "A code specifying the types of information being requested.",
              "valueSet": "http://hl7.org/fhir/ValueSet/eligibilityresponse-purpose|4.0.1"
            }
          },
          {
            "id": "CoverageEligibilityResponse.patient",
            "path": "CoverageEligibilityResponse.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.serviced[x]",
            "path": "CoverageEligibilityResponse.serviced[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.serviced[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.created",
            "path": "CoverageEligibilityResponse.created",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.created",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.requestor",
            "path": "CoverageEligibilityResponse.requestor",
            "comment": "Typically this field would be 1..1 where this party is responsible for the claim but not necessarily professionally responsible for the provision of the individual products and services listed below.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.requestor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.request",
            "path": "CoverageEligibilityResponse.request",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.request",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.outcome",
            "path": "CoverageEligibilityResponse.outcome",
            "comment": "The resource may be used to indicate that: the request has been held (queued) for processing; that it has been processed and errors found (error); that no errors were found and that some of the adjudication has been undertaken (partial) or that all of the adjudication has been undertaken (complete).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.outcome",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RemittanceOutcome"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The outcome of the processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1"
            }
          },
          {
            "id": "CoverageEligibilityResponse.disposition",
            "path": "CoverageEligibilityResponse.disposition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.disposition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurer",
            "path": "CoverageEligibilityResponse.insurer",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurer",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.insurance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "380;0"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Insurance"
              }
            ],
            "path": "CoverageEligibilityResponse.insurance",
            "comment": "All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityResponse.insurance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.id",
            "path": "CoverageEligibilityResponse.insurance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.extension",
            "path": "CoverageEligibilityResponse.insurance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.modifierExtension",
            "path": "CoverageEligibilityResponse.insurance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.insurance.coverage",
            "path": "CoverageEligibilityResponse.insurance.coverage",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.coverage",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.insurance.inforce",
            "path": "CoverageEligibilityResponse.insurance.inforce",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.inforce",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.benefitPeriod",
            "path": "CoverageEligibilityResponse.insurance.benefitPeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.benefitPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "340;120"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Items"
              }
            ],
            "path": "CoverageEligibilityResponse.insurance.item",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ces-1",
                "severity": "error",
                "human": "SHALL contain a category or a billcode but not both.",
                "expression": "category.exists() xor productOrService.exists()",
                "xpath": "exists(f:category) or exists(f:productOrService)"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.id",
            "path": "CoverageEligibilityResponse.insurance.item.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.extension",
            "path": "CoverageEligibilityResponse.insurance.item.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.modifierExtension",
            "path": "CoverageEligibilityResponse.insurance.item.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.category",
            "path": "CoverageEligibilityResponse.insurance.item.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.productOrService",
            "path": "CoverageEligibilityResponse.insurance.item.productOrService",
            "comment": "Code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.productOrService",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.modifier",
            "path": "CoverageEligibilityResponse.insurance.item.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.provider",
            "path": "CoverageEligibilityResponse.insurance.item.provider",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.provider",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.excluded",
            "path": "CoverageEligibilityResponse.insurance.item.excluded",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.excluded",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.name",
            "path": "CoverageEligibilityResponse.insurance.item.name",
            "comment": "For example: MED01, or DENT2.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.description",
            "path": "CoverageEligibilityResponse.insurance.item.description",
            "comment": "For example 'DENT2 covers 100% of basic, 50% of major but excludes Ortho, Implants and Cosmetic services'.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.network",
            "path": "CoverageEligibilityResponse.insurance.item.network",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.network",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitNetwork"
                }
              ],
              "strength": "example",
              "description": "Code to classify in or out of network services.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-network"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.unit",
            "path": "CoverageEligibilityResponse.insurance.item.unit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.unit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitUnit"
                }
              ],
              "strength": "example",
              "description": "Unit covered/serviced - individual or family.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-unit"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.term",
            "path": "CoverageEligibilityResponse.insurance.item.term",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.term",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitTerm"
                }
              ],
              "strength": "example",
              "description": "Coverage unit - annual, lifetime.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-term"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "340;320"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Benefit"
              }
            ],
            "path": "CoverageEligibilityResponse.insurance.item.benefit",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.benefit",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit.id",
            "path": "CoverageEligibilityResponse.insurance.item.benefit.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit.extension",
            "path": "CoverageEligibilityResponse.insurance.item.benefit.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit.modifierExtension",
            "path": "CoverageEligibilityResponse.insurance.item.benefit.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit.type",
            "path": "CoverageEligibilityResponse.insurance.item.benefit.type",
            "comment": "For example: deductible, visits, benefit amount.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.benefit.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitType"
                }
              ],
              "strength": "example",
              "description": "Deductable, visits, co-pay, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-type"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit.allowed[x]",
            "path": "CoverageEligibilityResponse.insurance.item.benefit.allowed[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.benefit.allowed[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              },
              {
                "code": "string"
              },
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit.used[x]",
            "path": "CoverageEligibilityResponse.insurance.item.benefit.used[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.benefit.used[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              },
              {
                "code": "string"
              },
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.authorizationRequired",
            "path": "CoverageEligibilityResponse.insurance.item.authorizationRequired",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.authorizationRequired",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.authorizationSupporting",
            "path": "CoverageEligibilityResponse.insurance.item.authorizationSupporting",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.authorizationSupporting",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuthSupporting"
                }
              ],
              "strength": "example",
              "description": "Type of supporting information to provide with a preauthorization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/coverageeligibilityresponse-ex-auth-support"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.authorizationUrl",
            "path": "CoverageEligibilityResponse.insurance.item.authorizationUrl",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.insurance.item.authorizationUrl",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.preAuthRef",
            "path": "CoverageEligibilityResponse.preAuthRef",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.preAuthRef",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.form",
            "path": "CoverageEligibilityResponse.form",
            "comment": "May be needed to identify specific jurisdictional forms.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.form",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Forms"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "The forms codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/forms"
            }
          },
          {
            "id": "CoverageEligibilityResponse.error",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Errors"
              }
            ],
            "path": "CoverageEligibilityResponse.error",
            "min": 0,
            "max": "*",
            "base": {
              "path": "CoverageEligibilityResponse.error",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.error.id",
            "path": "CoverageEligibilityResponse.error.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.error.extension",
            "path": "CoverageEligibilityResponse.error.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "CoverageEligibilityResponse.error.modifierExtension",
            "path": "CoverageEligibilityResponse.error.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.error.code",
            "path": "CoverageEligibilityResponse.error.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "CoverageEligibilityResponse.error.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdjudicationError"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "The error codes for adjudication processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication-error"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "CoverageEligibilityResponse",
            "path": "CoverageEligibilityResponse",
            "min": 0,
            "max": "*"
          },
          {
            "id": "CoverageEligibilityResponse.identifier",
            "path": "CoverageEligibilityResponse.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.status",
            "path": "CoverageEligibilityResponse.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EligibilityResponseStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "CoverageEligibilityResponse.purpose",
            "path": "CoverageEligibilityResponse.purpose",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EligibilityResponsePurpose"
                }
              ],
              "strength": "required",
              "description": "A code specifying the types of information being requested.",
              "valueSet": "http://hl7.org/fhir/ValueSet/eligibilityresponse-purpose|4.0.1"
            }
          },
          {
            "id": "CoverageEligibilityResponse.patient",
            "path": "CoverageEligibilityResponse.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.serviced[x]",
            "path": "CoverageEligibilityResponse.serviced[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.created",
            "path": "CoverageEligibilityResponse.created",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.requestor",
            "path": "CoverageEligibilityResponse.requestor",
            "comment": "Typically this field would be 1..1 where this party is responsible for the claim but not necessarily professionally responsible for the provision of the individual products and services listed below.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.request",
            "path": "CoverageEligibilityResponse.request",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.outcome",
            "path": "CoverageEligibilityResponse.outcome",
            "comment": "The resource may be used to indicate that: the request has been held (queued) for processing; that it has been processed and errors found (error); that no errors were found and that some of the adjudication has been undertaken (partial) or that all of the adjudication has been undertaken (complete).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RemittanceOutcome"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The outcome of the processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1"
            }
          },
          {
            "id": "CoverageEligibilityResponse.disposition",
            "path": "CoverageEligibilityResponse.disposition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurer",
            "path": "CoverageEligibilityResponse.insurer",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.insurance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "380;0"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Insurance"
              }
            ],
            "path": "CoverageEligibilityResponse.insurance",
            "comment": "All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.coverage",
            "path": "CoverageEligibilityResponse.insurance.coverage",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "CoverageEligibilityResponse.insurance.inforce",
            "path": "CoverageEligibilityResponse.insurance.inforce",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.benefitPeriod",
            "path": "CoverageEligibilityResponse.insurance.benefitPeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "340;120"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Items"
              }
            ],
            "path": "CoverageEligibilityResponse.insurance.item",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ces-1",
                "severity": "error",
                "human": "SHALL contain a category or a billcode but not both.",
                "expression": "category.exists() xor productOrService.exists()",
                "xpath": "exists(f:category) or exists(f:productOrService)"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.category",
            "path": "CoverageEligibilityResponse.insurance.item.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.productOrService",
            "path": "CoverageEligibilityResponse.insurance.item.productOrService",
            "comment": "Code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.modifier",
            "path": "CoverageEligibilityResponse.insurance.item.modifier",
            "comment": "For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.provider",
            "path": "CoverageEligibilityResponse.insurance.item.provider",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.excluded",
            "path": "CoverageEligibilityResponse.insurance.item.excluded",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.name",
            "path": "CoverageEligibilityResponse.insurance.item.name",
            "comment": "For example: MED01, or DENT2.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.description",
            "path": "CoverageEligibilityResponse.insurance.item.description",
            "comment": "For example 'DENT2 covers 100% of basic, 50% of major but excludes Ortho, Implants and Cosmetic services'.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.network",
            "path": "CoverageEligibilityResponse.insurance.item.network",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitNetwork"
                }
              ],
              "strength": "example",
              "description": "Code to classify in or out of network services.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-network"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.unit",
            "path": "CoverageEligibilityResponse.insurance.item.unit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitUnit"
                }
              ],
              "strength": "example",
              "description": "Unit covered/serviced - individual or family.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-unit"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.term",
            "path": "CoverageEligibilityResponse.insurance.item.term",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitTerm"
                }
              ],
              "strength": "example",
              "description": "Coverage unit - annual, lifetime.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-term"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "340;320"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Benefit"
              }
            ],
            "path": "CoverageEligibilityResponse.insurance.item.benefit",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit.type",
            "path": "CoverageEligibilityResponse.insurance.item.benefit.type",
            "comment": "For example: deductible, visits, benefit amount.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitType"
                }
              ],
              "strength": "example",
              "description": "Deductable, visits, co-pay, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-type"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit.allowed[x]",
            "path": "CoverageEligibilityResponse.insurance.item.benefit.allowed[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              },
              {
                "code": "string"
              },
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.benefit.used[x]",
            "path": "CoverageEligibilityResponse.insurance.item.benefit.used[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              },
              {
                "code": "string"
              },
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.authorizationRequired",
            "path": "CoverageEligibilityResponse.insurance.item.authorizationRequired",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.authorizationSupporting",
            "path": "CoverageEligibilityResponse.insurance.item.authorizationSupporting",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AuthSupporting"
                }
              ],
              "strength": "example",
              "description": "Type of supporting information to provide with a preauthorization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/coverageeligibilityresponse-ex-auth-support"
            }
          },
          {
            "id": "CoverageEligibilityResponse.insurance.item.authorizationUrl",
            "path": "CoverageEligibilityResponse.insurance.item.authorizationUrl",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.preAuthRef",
            "path": "CoverageEligibilityResponse.preAuthRef",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.form",
            "path": "CoverageEligibilityResponse.form",
            "comment": "May be needed to identify specific jurisdictional forms.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Forms"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "The forms codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/forms"
            }
          },
          {
            "id": "CoverageEligibilityResponse.error",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Errors"
              }
            ],
            "path": "CoverageEligibilityResponse.error",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "CoverageEligibilityResponse.error.code",
            "path": "CoverageEligibilityResponse.error.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdjudicationError"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "The error codes for adjudication processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication-error"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/DetectedIssue",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "DetectedIssue",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Summary"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/DetectedIssue",
      "version": "4.0.1",
      "name": "DetectedIssue",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "DetectedIssue",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "DetectedIssue",
            "path": "DetectedIssue",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DetectedIssue",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.id",
            "path": "DetectedIssue.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DetectedIssue.meta",
            "path": "DetectedIssue.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DetectedIssue.implicitRules",
            "path": "DetectedIssue.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "DetectedIssue.language",
            "path": "DetectedIssue.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "DetectedIssue.text",
            "path": "DetectedIssue.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.contained",
            "path": "DetectedIssue.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.extension",
            "path": "DetectedIssue.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.modifierExtension",
            "path": "DetectedIssue.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "DetectedIssue.identifier",
            "path": "DetectedIssue.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DetectedIssue.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DetectedIssue.status",
            "path": "DetectedIssue.status",
            "comment": "This element is labeled as a modifier because the status contains the codes cancelled and entered-in-error that mark the issue as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DetectedIssue.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DetectedIssueStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates the status of the identified issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
            }
          },
          {
            "id": "DetectedIssue.code",
            "path": "DetectedIssue.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DetectedIssue.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DetectedIssueCategory"
                }
              ],
              "strength": "preferred",
              "description": "Codes identifying the general type of detected issue; e.g. Drug-drug interaction, Timing issue, Duplicate therapy, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/detectedissue-category"
            }
          },
          {
            "id": "DetectedIssue.severity",
            "path": "DetectedIssue.severity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DetectedIssue.severity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DetectedIssueSeverity"
                }
              ],
              "strength": "required",
              "description": "Indicates the potential degree of impact of the identified issue on the patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/detectedissue-severity|4.0.1"
            }
          },
          {
            "id": "DetectedIssue.patient",
            "path": "DetectedIssue.patient",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DetectedIssue.patient",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DetectedIssue.identified[x]",
            "path": "DetectedIssue.identified[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DetectedIssue.identified[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DetectedIssue.author",
            "path": "DetectedIssue.author",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DetectedIssue.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DetectedIssue.implicated",
            "path": "DetectedIssue.implicated",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DetectedIssue.implicated",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DetectedIssue.evidence",
            "path": "DetectedIssue.evidence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DetectedIssue.evidence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.evidence.id",
            "path": "DetectedIssue.evidence.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.evidence.extension",
            "path": "DetectedIssue.evidence.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.evidence.modifierExtension",
            "path": "DetectedIssue.evidence.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DetectedIssue.evidence.code",
            "path": "DetectedIssue.evidence.code",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DetectedIssue.evidence.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DetectedIssueEvidenceCode"
                }
              ],
              "strength": "example",
              "description": "Codes that describes the types of evidence for a detected issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/manifestation-or-symptom"
            }
          },
          {
            "id": "DetectedIssue.evidence.detail",
            "path": "DetectedIssue.evidence.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DetectedIssue.evidence.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.detail",
            "path": "DetectedIssue.detail",
            "comment": "Should focus on information not covered elsewhere as discrete data - no need to duplicate the narrative.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DetectedIssue.detail",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.reference",
            "path": "DetectedIssue.reference",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DetectedIssue.reference",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.mitigation",
            "path": "DetectedIssue.mitigation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DetectedIssue.mitigation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.mitigation.id",
            "path": "DetectedIssue.mitigation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.mitigation.extension",
            "path": "DetectedIssue.mitigation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.mitigation.modifierExtension",
            "path": "DetectedIssue.mitigation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DetectedIssue.mitigation.action",
            "path": "DetectedIssue.mitigation.action",
            "comment": "The \"text\" component can be used for detail or when no appropriate code exists.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DetectedIssue.mitigation.action",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DetectedIssueMitigationAction"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/detectedissue-mitigation-action"
            }
          },
          {
            "id": "DetectedIssue.mitigation.date",
            "path": "DetectedIssue.mitigation.date",
            "comment": "This might not be the same as when the mitigating step was actually taken.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DetectedIssue.mitigation.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DetectedIssue.mitigation.author",
            "path": "DetectedIssue.mitigation.author",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DetectedIssue.mitigation.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "DetectedIssue",
            "path": "DetectedIssue",
            "min": 0,
            "max": "*"
          },
          {
            "id": "DetectedIssue.identifier",
            "path": "DetectedIssue.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DetectedIssue.status",
            "path": "DetectedIssue.status",
            "comment": "This element is labeled as a modifier because the status contains the codes cancelled and entered-in-error that mark the issue as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DetectedIssueStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates the status of the identified issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
            }
          },
          {
            "id": "DetectedIssue.code",
            "path": "DetectedIssue.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DetectedIssueCategory"
                }
              ],
              "strength": "preferred",
              "description": "Codes identifying the general type of detected issue; e.g. Drug-drug interaction, Timing issue, Duplicate therapy, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/detectedissue-category"
            }
          },
          {
            "id": "DetectedIssue.severity",
            "path": "DetectedIssue.severity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DetectedIssueSeverity"
                }
              ],
              "strength": "required",
              "description": "Indicates the potential degree of impact of the identified issue on the patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/detectedissue-severity|4.0.1"
            }
          },
          {
            "id": "DetectedIssue.patient",
            "path": "DetectedIssue.patient",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DetectedIssue.identified[x]",
            "path": "DetectedIssue.identified[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DetectedIssue.author",
            "path": "DetectedIssue.author",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DetectedIssue.implicated",
            "path": "DetectedIssue.implicated",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DetectedIssue.evidence",
            "path": "DetectedIssue.evidence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "DetectedIssue.evidence.code",
            "path": "DetectedIssue.evidence.code",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DetectedIssueEvidenceCode"
                }
              ],
              "strength": "example",
              "description": "Codes that describes the types of evidence for a detected issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/manifestation-or-symptom"
            }
          },
          {
            "id": "DetectedIssue.evidence.detail",
            "path": "DetectedIssue.evidence.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "DetectedIssue.detail",
            "path": "DetectedIssue.detail",
            "comment": "Should focus on information not covered elsewhere as discrete data - no need to duplicate the narrative.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "DetectedIssue.reference",
            "path": "DetectedIssue.reference",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "DetectedIssue.mitigation",
            "path": "DetectedIssue.mitigation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "DetectedIssue.mitigation.action",
            "path": "DetectedIssue.mitigation.action",
            "comment": "The \"text\" component can be used for detail or when no appropriate code exists.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DetectedIssueMitigationAction"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/detectedissue-mitigation-action"
            }
          },
          {
            "id": "DetectedIssue.mitigation.date",
            "path": "DetectedIssue.mitigation.date",
            "comment": "This might not be the same as when the mitigating step was actually taken.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "DetectedIssue.mitigation.author",
            "path": "DetectedIssue.mitigation.author",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Device",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Device",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Entities"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Device",
      "version": "4.0.1",
      "name": "Device",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Allows institutions to track their devices.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Device",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Device",
            "path": "Device",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.id",
            "path": "Device.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Device.meta",
            "path": "Device.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Device.implicitRules",
            "path": "Device.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Device.language",
            "path": "Device.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Device.text",
            "path": "Device.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.contained",
            "path": "Device.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.extension",
            "path": "Device.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.modifierExtension",
            "path": "Device.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Device.identifier",
            "path": "Device.identifier",
            "comment": "The barcode string from a barcode present on a device label or package may identify the instance, include names given to the device in local usage, or may identify the type of device. If the identifier identifies the type of device, Device.type element should be used.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.definition",
            "path": "Device.definition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.definition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.udiCarrier",
            "path": "Device.udiCarrier",
            "comment": "UDI may identify an unique instance of a device, or it may only identify the type of the device.  See [UDI mappings](device-mappings.html#udi) for a complete mapping of UDI parts to Device.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.udiCarrier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Device.udiCarrier.id",
            "path": "Device.udiCarrier.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.udiCarrier.extension",
            "path": "Device.udiCarrier.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.udiCarrier.modifierExtension",
            "path": "Device.udiCarrier.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Device.udiCarrier.deviceIdentifier",
            "path": "Device.udiCarrier.deviceIdentifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.udiCarrier.deviceIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Device.udiCarrier.issuer",
            "path": "Device.udiCarrier.issuer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.udiCarrier.issuer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.udiCarrier.jurisdiction",
            "path": "Device.udiCarrier.jurisdiction",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.udiCarrier.jurisdiction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.udiCarrier.carrierAIDC",
            "path": "Device.udiCarrier.carrierAIDC",
            "comment": "The AIDC form of UDIs should be scanned or otherwise used for the identification of the device whenever possible to minimize errors in records resulting from manual transcriptions. If separate barcodes for DI and PI are present, concatenate the string with DI first and in order of human readable expression on label.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.udiCarrier.carrierAIDC",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "base64Binary"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Device.udiCarrier.carrierHRF",
            "path": "Device.udiCarrier.carrierHRF",
            "comment": "If separate barcodes for DI and PI are present, concatenate the string with DI first and in order of human readable expression on label.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.udiCarrier.carrierHRF",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Device.udiCarrier.entryType",
            "path": "Device.udiCarrier.entryType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.udiCarrier.entryType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "UDIEntryType"
                }
              ],
              "strength": "required",
              "description": "Codes to identify how UDI data was entered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/udi-entry-type|4.0.1"
            }
          },
          {
            "id": "Device.status",
            "path": "Device.status",
            "comment": "This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the device (record)as not currently valid.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRDeviceStatus"
                }
              ],
              "strength": "required",
              "description": "The availability status of the device.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-status|4.0.1"
            }
          },
          {
            "id": "Device.statusReason",
            "path": "Device.statusReason",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.statusReason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRDeviceStatusReason"
                }
              ],
              "strength": "extensible",
              "description": "The availability status reason of the device.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-status-reason"
            }
          },
          {
            "id": "Device.distinctIdentifier",
            "path": "Device.distinctIdentifier",
            "comment": "For example, this applies to devices in the United States regulated under *Code of Federal Regulation 21CFR§1271.290(c)*.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.distinctIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.manufacturer",
            "path": "Device.manufacturer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.manufacturer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.manufactureDate",
            "path": "Device.manufactureDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.manufactureDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.expirationDate",
            "path": "Device.expirationDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.expirationDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.lotNumber",
            "path": "Device.lotNumber",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.lotNumber",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.serialNumber",
            "path": "Device.serialNumber",
            "comment": "Alphanumeric Maximum 20.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.serialNumber",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.deviceName",
            "path": "Device.deviceName",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.deviceName",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.deviceName.id",
            "path": "Device.deviceName.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.deviceName.extension",
            "path": "Device.deviceName.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.deviceName.modifierExtension",
            "path": "Device.deviceName.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Device.deviceName.name",
            "path": "Device.deviceName.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Device.deviceName.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.deviceName.type",
            "path": "Device.deviceName.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Device.deviceName.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceNameType"
                }
              ],
              "strength": "required",
              "description": "The type of name the device is referred by.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-nametype|4.0.1"
            }
          },
          {
            "id": "Device.modelNumber",
            "path": "Device.modelNumber",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.modelNumber",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.partNumber",
            "path": "Device.partNumber",
            "comment": "Alphanumeric Maximum 20.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.partNumber",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.type",
            "path": "Device.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceType"
                }
              ],
              "strength": "example",
              "description": "Codes to identify medical devices.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-type"
            }
          },
          {
            "id": "Device.specialization",
            "path": "Device.specialization",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.specialization",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.specialization.id",
            "path": "Device.specialization.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.specialization.extension",
            "path": "Device.specialization.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.specialization.modifierExtension",
            "path": "Device.specialization.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Device.specialization.systemType",
            "path": "Device.specialization.systemType",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Device.specialization.systemType",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.specialization.version",
            "path": "Device.specialization.version",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.specialization.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.version",
            "path": "Device.version",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.version",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.version.id",
            "path": "Device.version.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.version.extension",
            "path": "Device.version.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.version.modifierExtension",
            "path": "Device.version.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Device.version.type",
            "path": "Device.version.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.version.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.version.component",
            "path": "Device.version.component",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.version.component",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.version.value",
            "path": "Device.version.value",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Device.version.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.property",
            "path": "Device.property",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.property",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.property.id",
            "path": "Device.property.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.property.extension",
            "path": "Device.property.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.property.modifierExtension",
            "path": "Device.property.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Device.property.type",
            "path": "Device.property.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Device.property.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.property.valueQuantity",
            "path": "Device.property.valueQuantity",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.property.valueQuantity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.property.valueCode",
            "path": "Device.property.valueCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.property.valueCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.patient",
            "path": "Device.patient",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.patient",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.owner",
            "path": "Device.owner",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.owner",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.contact",
            "path": "Device.contact",
            "comment": "used for troubleshooting etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.location",
            "path": "Device.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.url",
            "path": "Device.url",
            "comment": "If the device is running a FHIR server, the network address should  be the Base URL from which a conformance statement may be retrieved.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.note",
            "path": "Device.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Device.safety",
            "path": "Device.safety",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Device.safety",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Device.parent",
            "path": "Device.parent",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Device.parent",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Device",
            "path": "Device",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Device.identifier",
            "path": "Device.identifier",
            "comment": "The barcode string from a barcode present on a device label or package may identify the instance, include names given to the device in local usage, or may identify the type of device. If the identifier identifies the type of device, Device.type element should be used.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Device.definition",
            "path": "Device.definition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceDefinition"
                ]
              }
            ]
          },
          {
            "id": "Device.udiCarrier",
            "path": "Device.udiCarrier",
            "comment": "UDI may identify an unique instance of a device, or it may only identify the type of the device.  See [UDI mappings](device-mappings.html#udi) for a complete mapping of UDI parts to Device.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Device.udiCarrier.deviceIdentifier",
            "path": "Device.udiCarrier.deviceIdentifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Device.udiCarrier.issuer",
            "path": "Device.udiCarrier.issuer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "Device.udiCarrier.jurisdiction",
            "path": "Device.udiCarrier.jurisdiction",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "Device.udiCarrier.carrierAIDC",
            "path": "Device.udiCarrier.carrierAIDC",
            "comment": "The AIDC form of UDIs should be scanned or otherwise used for the identification of the device whenever possible to minimize errors in records resulting from manual transcriptions. If separate barcodes for DI and PI are present, concatenate the string with DI first and in order of human readable expression on label.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "base64Binary"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Device.udiCarrier.carrierHRF",
            "path": "Device.udiCarrier.carrierHRF",
            "comment": "If separate barcodes for DI and PI are present, concatenate the string with DI first and in order of human readable expression on label.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Device.udiCarrier.entryType",
            "path": "Device.udiCarrier.entryType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "UDIEntryType"
                }
              ],
              "strength": "required",
              "description": "Codes to identify how UDI data was entered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/udi-entry-type|4.0.1"
            }
          },
          {
            "id": "Device.status",
            "path": "Device.status",
            "comment": "This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the device (record)as not currently valid.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRDeviceStatus"
                }
              ],
              "strength": "required",
              "description": "The availability status of the device.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-status|4.0.1"
            }
          },
          {
            "id": "Device.statusReason",
            "path": "Device.statusReason",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRDeviceStatusReason"
                }
              ],
              "strength": "extensible",
              "description": "The availability status reason of the device.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-status-reason"
            }
          },
          {
            "id": "Device.distinctIdentifier",
            "path": "Device.distinctIdentifier",
            "comment": "For example, this applies to devices in the United States regulated under *Code of Federal Regulation 21CFR§1271.290(c)*.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Device.manufacturer",
            "path": "Device.manufacturer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Device.manufactureDate",
            "path": "Device.manufactureDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Device.expirationDate",
            "path": "Device.expirationDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Device.lotNumber",
            "path": "Device.lotNumber",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Device.serialNumber",
            "path": "Device.serialNumber",
            "comment": "Alphanumeric Maximum 20.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Device.deviceName",
            "path": "Device.deviceName",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Device.deviceName.name",
            "path": "Device.deviceName.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Device.deviceName.type",
            "path": "Device.deviceName.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceNameType"
                }
              ],
              "strength": "required",
              "description": "The type of name the device is referred by.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-nametype|4.0.1"
            }
          },
          {
            "id": "Device.modelNumber",
            "path": "Device.modelNumber",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Device.partNumber",
            "path": "Device.partNumber",
            "comment": "Alphanumeric Maximum 20.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Device.type",
            "path": "Device.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceType"
                }
              ],
              "strength": "example",
              "description": "Codes to identify medical devices.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-type"
            }
          },
          {
            "id": "Device.specialization",
            "path": "Device.specialization",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Device.specialization.systemType",
            "path": "Device.specialization.systemType",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "Device.specialization.version",
            "path": "Device.specialization.version",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Device.version",
            "path": "Device.version",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Device.version.type",
            "path": "Device.version.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "Device.version.component",
            "path": "Device.version.component",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Device.version.value",
            "path": "Device.version.value",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Device.property",
            "path": "Device.property",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Device.property.type",
            "path": "Device.property.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "Device.property.valueQuantity",
            "path": "Device.property.valueQuantity",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Quantity"
              }
            ]
          },
          {
            "id": "Device.property.valueCode",
            "path": "Device.property.valueCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "Device.patient",
            "path": "Device.patient",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ]
          },
          {
            "id": "Device.owner",
            "path": "Device.owner",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Device.contact",
            "path": "Device.contact",
            "comment": "used for troubleshooting etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ]
          },
          {
            "id": "Device.location",
            "path": "Device.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "Device.url",
            "path": "Device.url",
            "comment": "If the device is running a FHIR server, the network address should  be the Base URL from which a conformance statement may be retrieved.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "Device.note",
            "path": "Device.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "Device.safety",
            "path": "Device.safety",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Device.parent",
            "path": "Device.parent",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/DeviceDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "DeviceDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Definitional Artifacts"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/DeviceDefinition",
      "version": "4.0.1",
      "name": "DeviceDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "DeviceDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "DeviceDefinition",
            "path": "DeviceDefinition",
            "comment": "For the initial scope, this DeviceDefinition 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": "*",
            "base": {
              "path": "DeviceDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.id",
            "path": "DeviceDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.meta",
            "path": "DeviceDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.implicitRules",
            "path": "DeviceDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.language",
            "path": "DeviceDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "DeviceDefinition.text",
            "path": "DeviceDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.contained",
            "path": "DeviceDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.extension",
            "path": "DeviceDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.modifierExtension",
            "path": "DeviceDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.identifier",
            "path": "DeviceDefinition.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier",
            "path": "DeviceDefinition.udiDeviceIdentifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.udiDeviceIdentifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier.id",
            "path": "DeviceDefinition.udiDeviceIdentifier.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier.extension",
            "path": "DeviceDefinition.udiDeviceIdentifier.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier.modifierExtension",
            "path": "DeviceDefinition.udiDeviceIdentifier.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier.deviceIdentifier",
            "path": "DeviceDefinition.udiDeviceIdentifier.deviceIdentifier",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.udiDeviceIdentifier.deviceIdentifier",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier.issuer",
            "path": "DeviceDefinition.udiDeviceIdentifier.issuer",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.udiDeviceIdentifier.issuer",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier.jurisdiction",
            "path": "DeviceDefinition.udiDeviceIdentifier.jurisdiction",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.udiDeviceIdentifier.jurisdiction",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.manufacturer[x]",
            "path": "DeviceDefinition.manufacturer[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.manufacturer[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.deviceName",
            "path": "DeviceDefinition.deviceName",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.deviceName",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.deviceName.id",
            "path": "DeviceDefinition.deviceName.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.deviceName.extension",
            "path": "DeviceDefinition.deviceName.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.deviceName.modifierExtension",
            "path": "DeviceDefinition.deviceName.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.deviceName.name",
            "path": "DeviceDefinition.deviceName.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.deviceName.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.deviceName.type",
            "path": "DeviceDefinition.deviceName.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.deviceName.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceNameType"
                }
              ],
              "strength": "required",
              "description": "The type of name the device is referred by.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-nametype|4.0.1"
            }
          },
          {
            "id": "DeviceDefinition.modelNumber",
            "path": "DeviceDefinition.modelNumber",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.modelNumber",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.type",
            "path": "DeviceDefinition.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceKind"
                }
              ],
              "strength": "example",
              "description": "Type of device e.g. according to official classification.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-kind"
            }
          },
          {
            "id": "DeviceDefinition.specialization",
            "path": "DeviceDefinition.specialization",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.specialization",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.specialization.id",
            "path": "DeviceDefinition.specialization.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.specialization.extension",
            "path": "DeviceDefinition.specialization.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.specialization.modifierExtension",
            "path": "DeviceDefinition.specialization.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.specialization.systemType",
            "path": "DeviceDefinition.specialization.systemType",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.specialization.systemType",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.specialization.version",
            "path": "DeviceDefinition.specialization.version",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.specialization.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.version",
            "path": "DeviceDefinition.version",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.version",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.safety",
            "path": "DeviceDefinition.safety",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.safety",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Safety"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-safety"
            }
          },
          {
            "id": "DeviceDefinition.shelfLifeStorage",
            "path": "DeviceDefinition.shelfLifeStorage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.shelfLifeStorage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ProductShelfLife"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.physicalCharacteristics",
            "path": "DeviceDefinition.physicalCharacteristics",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.physicalCharacteristics",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "ProdCharacteristic"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.languageCode",
            "path": "DeviceDefinition.languageCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.languageCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.capability",
            "path": "DeviceDefinition.capability",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.capability",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.capability.id",
            "path": "DeviceDefinition.capability.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.capability.extension",
            "path": "DeviceDefinition.capability.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.capability.modifierExtension",
            "path": "DeviceDefinition.capability.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.capability.type",
            "path": "DeviceDefinition.capability.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.capability.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.capability.description",
            "path": "DeviceDefinition.capability.description",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.capability.description",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.property",
            "path": "DeviceDefinition.property",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.property",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.property.id",
            "path": "DeviceDefinition.property.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.property.extension",
            "path": "DeviceDefinition.property.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.property.modifierExtension",
            "path": "DeviceDefinition.property.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.property.type",
            "path": "DeviceDefinition.property.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.property.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.property.valueQuantity",
            "path": "DeviceDefinition.property.valueQuantity",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.property.valueQuantity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.property.valueCode",
            "path": "DeviceDefinition.property.valueCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.property.valueCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.owner",
            "path": "DeviceDefinition.owner",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.owner",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.contact",
            "path": "DeviceDefinition.contact",
            "comment": "used for troubleshooting etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.url",
            "path": "DeviceDefinition.url",
            "comment": "If the device is running a FHIR server, the network address should  be the Base URL from which a conformance statement may be retrieved.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.onlineInformation",
            "path": "DeviceDefinition.onlineInformation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.onlineInformation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.note",
            "path": "DeviceDefinition.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.quantity",
            "path": "DeviceDefinition.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.parentDevice",
            "path": "DeviceDefinition.parentDevice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.parentDevice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.material",
            "path": "DeviceDefinition.material",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceDefinition.material",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.material.id",
            "path": "DeviceDefinition.material.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.material.extension",
            "path": "DeviceDefinition.material.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.material.modifierExtension",
            "path": "DeviceDefinition.material.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.material.substance",
            "path": "DeviceDefinition.material.substance",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.material.substance",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.material.alternate",
            "path": "DeviceDefinition.material.alternate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.material.alternate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceDefinition.material.allergenicIndicator",
            "path": "DeviceDefinition.material.allergenicIndicator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceDefinition.material.allergenicIndicator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "DeviceDefinition",
            "path": "DeviceDefinition",
            "comment": "For the initial scope, this DeviceDefinition 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": "*"
          },
          {
            "id": "DeviceDefinition.identifier",
            "path": "DeviceDefinition.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier",
            "path": "DeviceDefinition.udiDeviceIdentifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier.deviceIdentifier",
            "path": "DeviceDefinition.udiDeviceIdentifier.deviceIdentifier",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier.issuer",
            "path": "DeviceDefinition.udiDeviceIdentifier.issuer",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "DeviceDefinition.udiDeviceIdentifier.jurisdiction",
            "path": "DeviceDefinition.udiDeviceIdentifier.jurisdiction",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "DeviceDefinition.manufacturer[x]",
            "path": "DeviceDefinition.manufacturer[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "DeviceDefinition.deviceName",
            "path": "DeviceDefinition.deviceName",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "DeviceDefinition.deviceName.name",
            "path": "DeviceDefinition.deviceName.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "DeviceDefinition.deviceName.type",
            "path": "DeviceDefinition.deviceName.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceNameType"
                }
              ],
              "strength": "required",
              "description": "The type of name the device is referred by.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-nametype|4.0.1"
            }
          },
          {
            "id": "DeviceDefinition.modelNumber",
            "path": "DeviceDefinition.modelNumber",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "DeviceDefinition.type",
            "path": "DeviceDefinition.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceKind"
                }
              ],
              "strength": "example",
              "description": "Type of device e.g. according to official classification.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-kind"
            }
          },
          {
            "id": "DeviceDefinition.specialization",
            "path": "DeviceDefinition.specialization",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "DeviceDefinition.specialization.systemType",
            "path": "DeviceDefinition.specialization.systemType",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "DeviceDefinition.specialization.version",
            "path": "DeviceDefinition.specialization.version",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "DeviceDefinition.version",
            "path": "DeviceDefinition.version",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "DeviceDefinition.safety",
            "path": "DeviceDefinition.safety",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Safety"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-safety"
            }
          },
          {
            "id": "DeviceDefinition.shelfLifeStorage",
            "path": "DeviceDefinition.shelfLifeStorage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ProductShelfLife"
              }
            ]
          },
          {
            "id": "DeviceDefinition.physicalCharacteristics",
            "path": "DeviceDefinition.physicalCharacteristics",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ProdCharacteristic"
              }
            ]
          },
          {
            "id": "DeviceDefinition.languageCode",
            "path": "DeviceDefinition.languageCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "DeviceDefinition.capability",
            "path": "DeviceDefinition.capability",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "DeviceDefinition.capability.type",
            "path": "DeviceDefinition.capability.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "DeviceDefinition.capability.description",
            "path": "DeviceDefinition.capability.description",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "DeviceDefinition.property",
            "path": "DeviceDefinition.property",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "DeviceDefinition.property.type",
            "path": "DeviceDefinition.property.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "DeviceDefinition.property.valueQuantity",
            "path": "DeviceDefinition.property.valueQuantity",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Quantity"
              }
            ]
          },
          {
            "id": "DeviceDefinition.property.valueCode",
            "path": "DeviceDefinition.property.valueCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "DeviceDefinition.owner",
            "path": "DeviceDefinition.owner",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "DeviceDefinition.contact",
            "path": "DeviceDefinition.contact",
            "comment": "used for troubleshooting etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ]
          },
          {
            "id": "DeviceDefinition.url",
            "path": "DeviceDefinition.url",
            "comment": "If the device is running a FHIR server, the network address should  be the Base URL from which a conformance statement may be retrieved.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "DeviceDefinition.onlineInformation",
            "path": "DeviceDefinition.onlineInformation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "DeviceDefinition.note",
            "path": "DeviceDefinition.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "DeviceDefinition.quantity",
            "path": "DeviceDefinition.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ]
          },
          {
            "id": "DeviceDefinition.parentDevice",
            "path": "DeviceDefinition.parentDevice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceDefinition.material",
            "path": "DeviceDefinition.material",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "DeviceDefinition.material.substance",
            "path": "DeviceDefinition.material.substance",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "DeviceDefinition.material.alternate",
            "path": "DeviceDefinition.material.alternate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "DeviceDefinition.material.allergenicIndicator",
            "path": "DeviceDefinition.material.allergenicIndicator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "DeviceMetric",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Entities"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "dev"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
      "version": "4.0.1",
      "name": "DeviceMetric",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "DeviceMetric",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "DeviceMetric",
            "path": "DeviceMetric",
            "comment": "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": "*",
            "base": {
              "path": "DeviceMetric",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceMetric.id",
            "path": "DeviceMetric.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceMetric.meta",
            "path": "DeviceMetric.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceMetric.implicitRules",
            "path": "DeviceMetric.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "DeviceMetric.language",
            "path": "DeviceMetric.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "DeviceMetric.text",
            "path": "DeviceMetric.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceMetric.contained",
            "path": "DeviceMetric.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceMetric.extension",
            "path": "DeviceMetric.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceMetric.modifierExtension",
            "path": "DeviceMetric.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "DeviceMetric.identifier",
            "path": "DeviceMetric.identifier",
            "comment": "For identifiers assigned to a device by the device or gateway software, the `system` element of the identifier should be set to the unique identifier of the device.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceMetric.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceMetric.type",
            "path": "DeviceMetric.type",
            "comment": "DeviceMetric.type can be referred to either IEEE 11073-10101 or LOINC.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceMetric.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MetricType"
                }
              ],
              "strength": "preferred",
              "description": "Describes the metric type.",
              "valueSet": "http://hl7.org/fhir/ValueSet/devicemetric-type"
            }
          },
          {
            "id": "DeviceMetric.unit",
            "path": "DeviceMetric.unit",
            "comment": "DeviceMetric.unit can refer to either UCUM or preferable a RTMMS coding system.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceMetric.unit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MetricUnit"
                }
              ],
              "strength": "preferred",
              "description": "Describes the unit of the metric.",
              "valueSet": "http://hl7.org/fhir/ValueSet/devicemetric-type"
            }
          },
          {
            "id": "DeviceMetric.source",
            "path": "DeviceMetric.source",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceMetric.source",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceMetric.parent",
            "path": "DeviceMetric.parent",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceMetric.parent",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceMetric.operationalStatus",
            "path": "DeviceMetric.operationalStatus",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceMetric.operationalStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceMetricOperationalStatus"
                }
              ],
              "strength": "required",
              "description": "Describes the operational status of the DeviceMetric.",
              "valueSet": "http://hl7.org/fhir/ValueSet/metric-operational-status|4.0.1"
            }
          },
          {
            "id": "DeviceMetric.color",
            "path": "DeviceMetric.color",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceMetric.color",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceMetricColor"
                }
              ],
              "strength": "required",
              "description": "Describes the typical color of representation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/metric-color|4.0.1"
            }
          },
          {
            "id": "DeviceMetric.category",
            "path": "DeviceMetric.category",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceMetric.category",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceMetricCategory"
                }
              ],
              "strength": "required",
              "description": "Describes the category of the metric.",
              "valueSet": "http://hl7.org/fhir/ValueSet/metric-category|4.0.1"
            }
          },
          {
            "id": "DeviceMetric.measurementPeriod",
            "path": "DeviceMetric.measurementPeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceMetric.measurementPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceMetric.calibration",
            "path": "DeviceMetric.calibration",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceMetric.calibration",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceMetric.calibration.id",
            "path": "DeviceMetric.calibration.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceMetric.calibration.extension",
            "path": "DeviceMetric.calibration.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceMetric.calibration.modifierExtension",
            "path": "DeviceMetric.calibration.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DeviceMetric.calibration.type",
            "path": "DeviceMetric.calibration.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceMetric.calibration.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceMetricCalibrationType"
                }
              ],
              "strength": "required",
              "description": "Describes the type of a metric calibration.",
              "valueSet": "http://hl7.org/fhir/ValueSet/metric-calibration-type|4.0.1"
            }
          },
          {
            "id": "DeviceMetric.calibration.state",
            "path": "DeviceMetric.calibration.state",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceMetric.calibration.state",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceMetricCalibrationState"
                }
              ],
              "strength": "required",
              "description": "Describes the state of a metric calibration.",
              "valueSet": "http://hl7.org/fhir/ValueSet/metric-calibration-state|4.0.1"
            }
          },
          {
            "id": "DeviceMetric.calibration.time",
            "path": "DeviceMetric.calibration.time",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceMetric.calibration.time",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "DeviceMetric",
            "path": "DeviceMetric",
            "comment": "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": "*"
          },
          {
            "id": "DeviceMetric.identifier",
            "path": "DeviceMetric.identifier",
            "comment": "For identifiers assigned to a device by the device or gateway software, the `system` element of the identifier should be set to the unique identifier of the device.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceMetric.type",
            "path": "DeviceMetric.type",
            "comment": "DeviceMetric.type can be referred to either IEEE 11073-10101 or LOINC.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MetricType"
                }
              ],
              "strength": "preferred",
              "description": "Describes the metric type.",
              "valueSet": "http://hl7.org/fhir/ValueSet/devicemetric-type"
            }
          },
          {
            "id": "DeviceMetric.unit",
            "path": "DeviceMetric.unit",
            "comment": "DeviceMetric.unit can refer to either UCUM or preferable a RTMMS coding system.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MetricUnit"
                }
              ],
              "strength": "preferred",
              "description": "Describes the unit of the metric.",
              "valueSet": "http://hl7.org/fhir/ValueSet/devicemetric-type"
            }
          },
          {
            "id": "DeviceMetric.source",
            "path": "DeviceMetric.source",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceMetric.parent",
            "path": "DeviceMetric.parent",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceMetric.operationalStatus",
            "path": "DeviceMetric.operationalStatus",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceMetricOperationalStatus"
                }
              ],
              "strength": "required",
              "description": "Describes the operational status of the DeviceMetric.",
              "valueSet": "http://hl7.org/fhir/ValueSet/metric-operational-status|4.0.1"
            }
          },
          {
            "id": "DeviceMetric.color",
            "path": "DeviceMetric.color",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceMetricColor"
                }
              ],
              "strength": "required",
              "description": "Describes the typical color of representation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/metric-color|4.0.1"
            }
          },
          {
            "id": "DeviceMetric.category",
            "path": "DeviceMetric.category",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceMetricCategory"
                }
              ],
              "strength": "required",
              "description": "Describes the category of the metric.",
              "valueSet": "http://hl7.org/fhir/ValueSet/metric-category|4.0.1"
            }
          },
          {
            "id": "DeviceMetric.measurementPeriod",
            "path": "DeviceMetric.measurementPeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Timing"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceMetric.calibration",
            "path": "DeviceMetric.calibration",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceMetric.calibration.type",
            "path": "DeviceMetric.calibration.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceMetricCalibrationType"
                }
              ],
              "strength": "required",
              "description": "Describes the type of a metric calibration.",
              "valueSet": "http://hl7.org/fhir/ValueSet/metric-calibration-type|4.0.1"
            }
          },
          {
            "id": "DeviceMetric.calibration.state",
            "path": "DeviceMetric.calibration.state",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceMetricCalibrationState"
                }
              ],
              "strength": "required",
              "description": "Describes the state of a metric calibration.",
              "valueSet": "http://hl7.org/fhir/ValueSet/metric-calibration-state|4.0.1"
            }
          },
          {
            "id": "DeviceMetric.calibration.time",
            "path": "DeviceMetric.calibration.time",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "DeviceRequest",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Request & Response"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
      "version": "4.0.1",
      "name": "DeviceRequest",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "DeviceRequest",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "DeviceRequest",
            "path": "DeviceRequest",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.id",
            "path": "DeviceRequest.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.meta",
            "path": "DeviceRequest.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.implicitRules",
            "path": "DeviceRequest.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "DeviceRequest.language",
            "path": "DeviceRequest.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "DeviceRequest.text",
            "path": "DeviceRequest.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.contained",
            "path": "DeviceRequest.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.extension",
            "path": "DeviceRequest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.modifierExtension",
            "path": "DeviceRequest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "DeviceRequest.identifier",
            "path": "DeviceRequest.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.instantiatesCanonical",
            "path": "DeviceRequest.instantiatesCanonical",
            "comment": "Note: This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.instantiatesCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.instantiatesUri",
            "path": "DeviceRequest.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.instantiatesUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.basedOn",
            "path": "DeviceRequest.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.priorRequest",
            "path": "DeviceRequest.priorRequest",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.priorRequest",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.groupIdentifier",
            "path": "DeviceRequest.groupIdentifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.groupIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.status",
            "path": "DeviceRequest.status",
            "comment": "This element is labeled as a modifier because the status contains the codes cancelled and entered-in-error that mark the request as not currently valid.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceRequestStatus"
                }
              ],
              "strength": "required",
              "description": "Codes representing the status of the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "DeviceRequest.intent",
            "path": "DeviceRequest.intent",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceRequest.intent",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestIntent"
                }
              ],
              "strength": "required",
              "description": "The kind of diagnostic request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
            }
          },
          {
            "id": "DeviceRequest.priority",
            "path": "DeviceRequest.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, normal priority",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "DeviceRequest.code[x]",
            "path": "DeviceRequest.code[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceRequest.code[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceRequestCode"
                }
              ],
              "strength": "example",
              "description": "Codes for devices that can be requested.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-kind"
            }
          },
          {
            "id": "DeviceRequest.parameter",
            "path": "DeviceRequest.parameter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.parameter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.parameter.id",
            "path": "DeviceRequest.parameter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.parameter.extension",
            "path": "DeviceRequest.parameter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.parameter.modifierExtension",
            "path": "DeviceRequest.parameter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DeviceRequest.parameter.code",
            "path": "DeviceRequest.parameter.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.parameter.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParameterCode"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the device detail."
            }
          },
          {
            "id": "DeviceRequest.parameter.value[x]",
            "path": "DeviceRequest.parameter.value[x]",
            "comment": "Range means device should have a value that falls somewhere within the specified range.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.parameter.value[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.subject",
            "path": "DeviceRequest.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceRequest.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.encounter",
            "path": "DeviceRequest.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.occurrence[x]",
            "path": "DeviceRequest.occurrence[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.occurrence[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.authoredOn",
            "path": "DeviceRequest.authoredOn",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.authoredOn",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.requester",
            "path": "DeviceRequest.requester",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.requester",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.performerType",
            "path": "DeviceRequest.performerType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.performerType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceRequestParticipantRole"
                }
              ],
              "strength": "example",
              "description": "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participant-role"
            }
          },
          {
            "id": "DeviceRequest.performer",
            "path": "DeviceRequest.performer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceRequest.performer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.reasonCode",
            "path": "DeviceRequest.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceRequestReason"
                }
              ],
              "strength": "example",
              "description": "Diagnosis or problem codes justifying the reason for requesting the device.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "DeviceRequest.reasonReference",
            "path": "DeviceRequest.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceRequest.insurance",
            "path": "DeviceRequest.insurance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.insurance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage",
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.supportingInfo",
            "path": "DeviceRequest.supportingInfo",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.supportingInfo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.note",
            "path": "DeviceRequest.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceRequest.relevantHistory",
            "path": "DeviceRequest.relevantHistory",
            "comment": "This might not include provenances for all versions of the request - only those deemed \"relevant\" or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a \"relevant\" change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceRequest.relevantHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "DeviceRequest",
            "path": "DeviceRequest",
            "min": 0,
            "max": "*"
          },
          {
            "id": "DeviceRequest.identifier",
            "path": "DeviceRequest.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.instantiatesCanonical",
            "path": "DeviceRequest.instantiatesCanonical",
            "comment": "Note: This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.instantiatesUri",
            "path": "DeviceRequest.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.basedOn",
            "path": "DeviceRequest.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.priorRequest",
            "path": "DeviceRequest.priorRequest",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.groupIdentifier",
            "path": "DeviceRequest.groupIdentifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.status",
            "path": "DeviceRequest.status",
            "comment": "This element is labeled as a modifier because the status contains the codes cancelled and entered-in-error that mark the request as not currently valid.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceRequestStatus"
                }
              ],
              "strength": "required",
              "description": "Codes representing the status of the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "DeviceRequest.intent",
            "path": "DeviceRequest.intent",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestIntent"
                }
              ],
              "strength": "required",
              "description": "The kind of diagnostic request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
            }
          },
          {
            "id": "DeviceRequest.priority",
            "path": "DeviceRequest.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, normal priority",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "DeviceRequest.code[x]",
            "path": "DeviceRequest.code[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceRequestCode"
                }
              ],
              "strength": "example",
              "description": "Codes for devices that can be requested.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-kind"
            }
          },
          {
            "id": "DeviceRequest.parameter",
            "path": "DeviceRequest.parameter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "DeviceRequest.parameter.code",
            "path": "DeviceRequest.parameter.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParameterCode"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the device detail."
            }
          },
          {
            "id": "DeviceRequest.parameter.value[x]",
            "path": "DeviceRequest.parameter.value[x]",
            "comment": "Range means device should have a value that falls somewhere within the specified range.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "DeviceRequest.subject",
            "path": "DeviceRequest.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.encounter",
            "path": "DeviceRequest.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.occurrence[x]",
            "path": "DeviceRequest.occurrence[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.authoredOn",
            "path": "DeviceRequest.authoredOn",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.requester",
            "path": "DeviceRequest.requester",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.performerType",
            "path": "DeviceRequest.performerType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceRequestParticipantRole"
                }
              ],
              "strength": "example",
              "description": "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participant-role"
            }
          },
          {
            "id": "DeviceRequest.performer",
            "path": "DeviceRequest.performer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.reasonCode",
            "path": "DeviceRequest.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceRequestReason"
                }
              ],
              "strength": "example",
              "description": "Diagnosis or problem codes justifying the reason for requesting the device.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "DeviceRequest.reasonReference",
            "path": "DeviceRequest.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceRequest.insurance",
            "path": "DeviceRequest.insurance",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage",
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ]
          },
          {
            "id": "DeviceRequest.supportingInfo",
            "path": "DeviceRequest.supportingInfo",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "DeviceRequest.note",
            "path": "DeviceRequest.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "DeviceRequest.relevantHistory",
            "path": "DeviceRequest.relevantHistory",
            "comment": "This might not include provenances for all versions of the request - only those deemed \"relevant\" or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a \"relevant\" change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "DeviceUseStatement",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Request & Response"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement",
      "version": "4.0.1",
      "name": "DeviceUseStatement",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "DeviceUseStatement",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "DeviceUseStatement",
            "path": "DeviceUseStatement",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceUseStatement",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceUseStatement.id",
            "path": "DeviceUseStatement.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.meta",
            "path": "DeviceUseStatement.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.implicitRules",
            "path": "DeviceUseStatement.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.language",
            "path": "DeviceUseStatement.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "DeviceUseStatement.text",
            "path": "DeviceUseStatement.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceUseStatement.contained",
            "path": "DeviceUseStatement.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceUseStatement.extension",
            "path": "DeviceUseStatement.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DeviceUseStatement.modifierExtension",
            "path": "DeviceUseStatement.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "DeviceUseStatement.identifier",
            "path": "DeviceUseStatement.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceUseStatement.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.basedOn",
            "path": "DeviceUseStatement.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceUseStatement.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.status",
            "path": "DeviceUseStatement.status",
            "comment": "DeviceUseStatment is a statement at a point in time.  The status is only representative at the point when it was asserted.  The value set for contains codes that assert the status of the use  by the patient (for example, stopped or on hold) as well as codes that assert the status of the resource itself (for example, entered in error).\r\rThis element is labeled as a modifier because the status contains the codes that mark the statement as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceUseStatement.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceUseStatementStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept indicating the current status of the Device Usage.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-statement-status|4.0.1"
            }
          },
          {
            "id": "DeviceUseStatement.subject",
            "path": "DeviceUseStatement.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceUseStatement.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.derivedFrom",
            "path": "DeviceUseStatement.derivedFrom",
            "comment": "The most common use cases for deriving a DeviceUseStatement comes from creating it from a request or from an observation or a claim. it should be noted that the amount of information that is available varies from the type resource that you derive the DeviceUseStatement from.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceUseStatement.derivedFrom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Claim",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.timing[x]",
            "path": "DeviceUseStatement.timing[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceUseStatement.timing[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Timing"
              },
              {
                "code": "Period"
              },
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.recordedOn",
            "path": "DeviceUseStatement.recordedOn",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceUseStatement.recordedOn",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.source",
            "path": "DeviceUseStatement.source",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceUseStatement.source",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.device",
            "path": "DeviceUseStatement.device",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DeviceUseStatement.device",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.reasonCode",
            "path": "DeviceUseStatement.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceUseStatement.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.reasonReference",
            "path": "DeviceUseStatement.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceUseStatement.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/Media"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.bodySite",
            "path": "DeviceUseStatement.bodySite",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DeviceUseStatement.bodySite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "DeviceUseStatement.note",
            "path": "DeviceUseStatement.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DeviceUseStatement.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "DeviceUseStatement",
            "path": "DeviceUseStatement",
            "min": 0,
            "max": "*"
          },
          {
            "id": "DeviceUseStatement.identifier",
            "path": "DeviceUseStatement.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.basedOn",
            "path": "DeviceUseStatement.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.status",
            "path": "DeviceUseStatement.status",
            "comment": "DeviceUseStatment is a statement at a point in time.  The status is only representative at the point when it was asserted.  The value set for contains codes that assert the status of the use  by the patient (for example, stopped or on hold) as well as codes that assert the status of the resource itself (for example, entered in error).\r\rThis element is labeled as a modifier because the status contains the codes that mark the statement as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceUseStatementStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept indicating the current status of the Device Usage.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-statement-status|4.0.1"
            }
          },
          {
            "id": "DeviceUseStatement.subject",
            "path": "DeviceUseStatement.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.derivedFrom",
            "path": "DeviceUseStatement.derivedFrom",
            "comment": "The most common use cases for deriving a DeviceUseStatement comes from creating it from a request or from an observation or a claim. it should be noted that the amount of information that is available varies from the type resource that you derive the DeviceUseStatement from.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Claim",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.timing[x]",
            "path": "DeviceUseStatement.timing[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Timing"
              },
              {
                "code": "Period"
              },
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.recordedOn",
            "path": "DeviceUseStatement.recordedOn",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.source",
            "path": "DeviceUseStatement.source",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.device",
            "path": "DeviceUseStatement.device",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.reasonCode",
            "path": "DeviceUseStatement.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.reasonReference",
            "path": "DeviceUseStatement.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/Media"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DeviceUseStatement.bodySite",
            "path": "DeviceUseStatement.bodySite",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "DeviceUseStatement.note",
            "path": "DeviceUseStatement.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "DiagnosticReport",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Diagnostics"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
      "version": "4.0.1",
      "name": "DiagnosticReport",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "To support reporting for any diagnostic report into a clinical data repository.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "DiagnosticReport",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "DiagnosticReport",
            "path": "DiagnosticReport",
            "comment": "This is intended to capture a single report and is not suitable for use in displaying summary information that covers multiple reports.  For example, this resource has not been designed for laboratory cumulative reporting formats nor detailed structured reports for sequencing.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.id",
            "path": "DiagnosticReport.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.meta",
            "path": "DiagnosticReport.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.implicitRules",
            "path": "DiagnosticReport.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.language",
            "path": "DiagnosticReport.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "DiagnosticReport.text",
            "path": "DiagnosticReport.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.contained",
            "path": "DiagnosticReport.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.extension",
            "path": "DiagnosticReport.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.modifierExtension",
            "path": "DiagnosticReport.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.identifier",
            "path": "DiagnosticReport.identifier",
            "comment": "Usually assigned by the Information System of the diagnostic service provider (filler id).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.basedOn",
            "path": "DiagnosticReport.basedOn",
            "comment": "Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.status",
            "path": "DiagnosticReport.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DiagnosticReport.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosticReportStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the diagnostic report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.0.1"
            }
          },
          {
            "id": "DiagnosticReport.category",
            "path": "DiagnosticReport.category",
            "comment": "Multiple categories are allowed using various categorization schemes.   The level of granularity is defined by the category concepts in the value set. More fine-grained filtering can be performed using the metadata and/or terminology hierarchy in DiagnosticReport.code.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosticServiceSection"
                }
              ],
              "strength": "example",
              "description": "Codes for diagnostic service sections.",
              "valueSet": "http://hl7.org/fhir/ValueSet/diagnostic-service-sections"
            }
          },
          {
            "id": "DiagnosticReport.code",
            "path": "DiagnosticReport.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DiagnosticReport.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosticReportCodes"
                }
              ],
              "strength": "preferred",
              "description": "Codes that describe Diagnostic Reports.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-codes"
            }
          },
          {
            "id": "DiagnosticReport.subject",
            "path": "DiagnosticReport.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DiagnosticReport.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.encounter",
            "path": "DiagnosticReport.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter  but still be tied to the context of the encounter  (e.g. pre-admission laboratory tests).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DiagnosticReport.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.effective[x]",
            "path": "DiagnosticReport.effective[x]",
            "comment": "If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DiagnosticReport.effective[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.issued",
            "path": "DiagnosticReport.issued",
            "comment": "May be different from the update time of the resource itself, because that is the status of the record (potentially a secondary copy), not the actual release time of the report.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DiagnosticReport.issued",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.performer",
            "path": "DiagnosticReport.performer",
            "comment": "This is not necessarily the source of the atomic data items or the entity that interpreted the results. It is the entity that takes responsibility for the clinical report.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.resultsInterpreter",
            "path": "DiagnosticReport.resultsInterpreter",
            "comment": "Might not be the same entity that takes responsibility for the clinical report.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.resultsInterpreter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.specimen",
            "path": "DiagnosticReport.specimen",
            "comment": "If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.specimen",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.result",
            "path": "DiagnosticReport.result",
            "comment": "Observations can contain observations.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.result",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.imagingStudy",
            "path": "DiagnosticReport.imagingStudy",
            "comment": "ImagingStudy and the image element are somewhat overlapping - typically, the list of image references in the image element will also be found in one of the imaging study resources. However, each caters to different types of displays for different types of purposes. Neither, either, or both may be provided.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.imagingStudy",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.media",
            "path": "DiagnosticReport.media",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.media",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.media.id",
            "path": "DiagnosticReport.media.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.media.extension",
            "path": "DiagnosticReport.media.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.media.modifierExtension",
            "path": "DiagnosticReport.media.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.media.comment",
            "path": "DiagnosticReport.media.comment",
            "comment": "The comment should be displayed with the image. It would be common for the report to include additional discussion of the image contents in other sections such as the conclusion.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DiagnosticReport.media.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.media.link",
            "path": "DiagnosticReport.media.link",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DiagnosticReport.media.link",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Media"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.conclusion",
            "path": "DiagnosticReport.conclusion",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DiagnosticReport.conclusion",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DiagnosticReport.conclusionCode",
            "path": "DiagnosticReport.conclusionCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.conclusionCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdjunctDiagnosis"
                }
              ],
              "strength": "example",
              "description": "Diagnosis codes provided as adjuncts to the report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "DiagnosticReport.presentedForm",
            "path": "DiagnosticReport.presentedForm",
            "comment": "\"application/pdf\" is recommended as the most reliable and interoperable in this context.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DiagnosticReport.presentedForm",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "DiagnosticReport",
            "path": "DiagnosticReport",
            "comment": "This is intended to capture a single report and is not suitable for use in displaying summary information that covers multiple reports.  For example, this resource has not been designed for laboratory cumulative reporting formats nor detailed structured reports for sequencing.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "DiagnosticReport.identifier",
            "path": "DiagnosticReport.identifier",
            "comment": "Usually assigned by the Information System of the diagnostic service provider (filler id).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.basedOn",
            "path": "DiagnosticReport.basedOn",
            "comment": "Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ]
          },
          {
            "id": "DiagnosticReport.status",
            "path": "DiagnosticReport.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosticReportStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the diagnostic report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/diagnostic-report-status|4.0.1"
            }
          },
          {
            "id": "DiagnosticReport.category",
            "path": "DiagnosticReport.category",
            "comment": "Multiple categories are allowed using various categorization schemes.   The level of granularity is defined by the category concepts in the value set. More fine-grained filtering can be performed using the metadata and/or terminology hierarchy in DiagnosticReport.code.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosticServiceSection"
                }
              ],
              "strength": "example",
              "description": "Codes for diagnostic service sections.",
              "valueSet": "http://hl7.org/fhir/ValueSet/diagnostic-service-sections"
            }
          },
          {
            "id": "DiagnosticReport.code",
            "path": "DiagnosticReport.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosticReportCodes"
                }
              ],
              "strength": "preferred",
              "description": "Codes that describe Diagnostic Reports.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-codes"
            }
          },
          {
            "id": "DiagnosticReport.subject",
            "path": "DiagnosticReport.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.encounter",
            "path": "DiagnosticReport.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter  but still be tied to the context of the encounter  (e.g. pre-admission laboratory tests).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.effective[x]",
            "path": "DiagnosticReport.effective[x]",
            "comment": "If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.issued",
            "path": "DiagnosticReport.issued",
            "comment": "May be different from the update time of the resource itself, because that is the status of the record (potentially a secondary copy), not the actual release time of the report.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.performer",
            "path": "DiagnosticReport.performer",
            "comment": "This is not necessarily the source of the atomic data items or the entity that interpreted the results. It is the entity that takes responsibility for the clinical report.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.resultsInterpreter",
            "path": "DiagnosticReport.resultsInterpreter",
            "comment": "Might not be the same entity that takes responsibility for the clinical report.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.specimen",
            "path": "DiagnosticReport.specimen",
            "comment": "If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ]
          },
          {
            "id": "DiagnosticReport.result",
            "path": "DiagnosticReport.result",
            "comment": "Observations can contain observations.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ]
          },
          {
            "id": "DiagnosticReport.imagingStudy",
            "path": "DiagnosticReport.imagingStudy",
            "comment": "ImagingStudy and the image element are somewhat overlapping - typically, the list of image references in the image element will also be found in one of the imaging study resources. However, each caters to different types of displays for different types of purposes. Neither, either, or both may be provided.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
                ]
              }
            ]
          },
          {
            "id": "DiagnosticReport.media",
            "path": "DiagnosticReport.media",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.media.comment",
            "path": "DiagnosticReport.media.comment",
            "comment": "The comment should be displayed with the image. It would be common for the report to include additional discussion of the image contents in other sections such as the conclusion.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "DiagnosticReport.media.link",
            "path": "DiagnosticReport.media.link",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Media"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DiagnosticReport.conclusion",
            "path": "DiagnosticReport.conclusion",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "DiagnosticReport.conclusionCode",
            "path": "DiagnosticReport.conclusionCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdjunctDiagnosis"
                }
              ],
              "strength": "example",
              "description": "Diagnosis codes provided as adjuncts to the report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "DiagnosticReport.presentedForm",
            "path": "DiagnosticReport.presentedForm",
            "comment": "\"application/pdf\" is recommended as the most reliable and interoperable in this context.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Attachment"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/DocumentManifest",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "DocumentManifest",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Documents"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "sd"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/DocumentManifest",
      "version": "4.0.1",
      "name": "DocumentManifest",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "DocumentManifest",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "DocumentManifest",
            "path": "DocumentManifest",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentManifest",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.id",
            "path": "DocumentManifest.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentManifest.meta",
            "path": "DocumentManifest.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentManifest.implicitRules",
            "path": "DocumentManifest.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "DocumentManifest.language",
            "path": "DocumentManifest.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "DocumentManifest.text",
            "path": "DocumentManifest.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.contained",
            "path": "DocumentManifest.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.extension",
            "path": "DocumentManifest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.modifierExtension",
            "path": "DocumentManifest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "DocumentManifest.masterIdentifier",
            "path": "DocumentManifest.masterIdentifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentManifest.masterIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentManifest.identifier",
            "path": "DocumentManifest.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentManifest.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentManifest.status",
            "path": "DocumentManifest.status",
            "comment": "This element is labeled as a modifier because the status contains the codes that mark the manifest as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DocumentManifest.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentReferenceStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The status of the document reference.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-reference-status|4.0.1"
            }
          },
          {
            "id": "DocumentManifest.type",
            "path": "DocumentManifest.type",
            "comment": "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",
            "base": {
              "path": "DocumentManifest.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "v3Act"
                }
              ],
              "strength": "example",
              "description": "The activity that caused the DocumentManifest to be created.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode"
            }
          },
          {
            "id": "DocumentManifest.subject",
            "path": "DocumentManifest.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentManifest.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentManifest.created",
            "path": "DocumentManifest.created",
            "comment": "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",
            "base": {
              "path": "DocumentManifest.created",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.author",
            "path": "DocumentManifest.author",
            "comment": "Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentManifest.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentManifest.recipient",
            "path": "DocumentManifest.recipient",
            "comment": "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": "*",
            "base": {
              "path": "DocumentManifest.recipient",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.source",
            "path": "DocumentManifest.source",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentManifest.source",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.description",
            "path": "DocumentManifest.description",
            "comment": "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\").",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentManifest.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentManifest.content",
            "path": "DocumentManifest.content",
            "comment": "When used for XDS the intended focus of the DocumentManifest is for the reference to target to be a set of DocumentReference 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": "*",
            "base": {
              "path": "DocumentManifest.content",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentManifest.related",
            "path": "DocumentManifest.related",
            "comment": "May be identifiers or resources that caused the DocumentManifest to be created.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentManifest.related",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.related.id",
            "path": "DocumentManifest.related.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.related.extension",
            "path": "DocumentManifest.related.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.related.modifierExtension",
            "path": "DocumentManifest.related.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DocumentManifest.related.identifier",
            "path": "DocumentManifest.related.identifier",
            "comment": "If both identifier and ref elements are present they shall refer to the same thing.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentManifest.related.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentManifest.related.ref",
            "path": "DocumentManifest.related.ref",
            "comment": "If both identifier and ref elements are present they shall refer to the same thing.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentManifest.related.ref",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "DocumentManifest",
            "path": "DocumentManifest",
            "min": 0,
            "max": "*"
          },
          {
            "id": "DocumentManifest.masterIdentifier",
            "path": "DocumentManifest.masterIdentifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentManifest.identifier",
            "path": "DocumentManifest.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentManifest.status",
            "path": "DocumentManifest.status",
            "comment": "This element is labeled as a modifier because the status contains the codes that mark the manifest as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentReferenceStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The status of the document reference.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-reference-status|4.0.1"
            }
          },
          {
            "id": "DocumentManifest.type",
            "path": "DocumentManifest.type",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "v3Act"
                }
              ],
              "strength": "example",
              "description": "The activity that caused the DocumentManifest to be created.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode"
            }
          },
          {
            "id": "DocumentManifest.subject",
            "path": "DocumentManifest.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentManifest.created",
            "path": "DocumentManifest.created",
            "comment": "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"
              }
            ]
          },
          {
            "id": "DocumentManifest.author",
            "path": "DocumentManifest.author",
            "comment": "Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentManifest.recipient",
            "path": "DocumentManifest.recipient",
            "comment": "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",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "DocumentManifest.source",
            "path": "DocumentManifest.source",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "DocumentManifest.description",
            "path": "DocumentManifest.description",
            "comment": "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\").",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentManifest.content",
            "path": "DocumentManifest.content",
            "comment": "When used for XDS the intended focus of the DocumentManifest is for the reference to target to be a set of DocumentReference 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": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentManifest.related",
            "path": "DocumentManifest.related",
            "comment": "May be identifiers or resources that caused the DocumentManifest to be created.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "DocumentManifest.related.identifier",
            "path": "DocumentManifest.related.identifier",
            "comment": "If both identifier and ref elements are present they shall refer to the same thing.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "DocumentManifest.related.ref",
            "path": "DocumentManifest.related.ref",
            "comment": "If both identifier and ref elements are present they shall refer to the same thing.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "DocumentReference",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Documents"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "sd"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
      "version": "4.0.1",
      "name": "DocumentReference",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "DocumentReference",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "DocumentReference",
            "path": "DocumentReference",
            "comment": "Usually, this is used for documents other than those defined by FHIR.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentReference",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.id",
            "path": "DocumentReference.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.meta",
            "path": "DocumentReference.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.implicitRules",
            "path": "DocumentReference.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "DocumentReference.language",
            "path": "DocumentReference.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "DocumentReference.text",
            "path": "DocumentReference.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.contained",
            "path": "DocumentReference.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.extension",
            "path": "DocumentReference.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.modifierExtension",
            "path": "DocumentReference.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "DocumentReference.masterIdentifier",
            "path": "DocumentReference.masterIdentifier",
            "comment": "CDA Document Id extension and root.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.masterIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.identifier",
            "path": "DocumentReference.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentReference.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.status",
            "path": "DocumentReference.status",
            "comment": "This is the status of the DocumentReference object, which might be independent from the docStatus element.\n\nThis element is labeled as a modifier because the status contains the codes that mark the document or reference as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DocumentReference.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentReferenceStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The status of the document reference.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-reference-status|4.0.1"
            }
          },
          {
            "id": "DocumentReference.docStatus",
            "path": "DocumentReference.docStatus",
            "comment": "The document that is pointed to might be in various lifecycle states.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.docStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ReferredDocumentStatus"
                }
              ],
              "strength": "required",
              "description": "Status of the underlying document.",
              "valueSet": "http://hl7.org/fhir/ValueSet/composition-status|4.0.1"
            }
          },
          {
            "id": "DocumentReference.type",
            "path": "DocumentReference.type",
            "comment": "Key metadata element describing the document that describes he exact type of document. Helps humans to assess whether the document is of interest when viewing a list of documents.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentC80Type"
                }
              ],
              "strength": "preferred",
              "description": "Precise type of clinical document.",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-doc-typecodes"
            }
          },
          {
            "id": "DocumentReference.category",
            "path": "DocumentReference.category",
            "comment": "Key metadata element describing the the category or classification of the document. This is a broader perspective that groups similar documents based on how they would be used. This is a primary key used in searching.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentReference.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentC80Class"
                }
              ],
              "strength": "example",
              "description": "High-level kind of a clinical document at a macro level.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-classcodes"
            }
          },
          {
            "id": "DocumentReference.subject",
            "path": "DocumentReference.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.date",
            "path": "DocumentReference.date",
            "comment": "Referencing/indexing time is used for tracking, organizing versions and searching.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.author",
            "path": "DocumentReference.author",
            "comment": "Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentReference.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.authenticator",
            "path": "DocumentReference.authenticator",
            "comment": "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",
            "base": {
              "path": "DocumentReference.authenticator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.custodian",
            "path": "DocumentReference.custodian",
            "comment": "Identifies the logical organization (software system, vendor, or department) to go to find the current version, where to report issues, etc. This is different from the physical location (URL, disk drive, or server) 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",
            "base": {
              "path": "DocumentReference.custodian",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.relatesTo",
            "path": "DocumentReference.relatesTo",
            "comment": "This element is labeled as a modifier because documents that append to other documents are incomplete on their own.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentReference.relatesTo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.relatesTo.id",
            "path": "DocumentReference.relatesTo.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.relatesTo.extension",
            "path": "DocumentReference.relatesTo.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.relatesTo.modifierExtension",
            "path": "DocumentReference.relatesTo.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DocumentReference.relatesTo.code",
            "path": "DocumentReference.relatesTo.code",
            "comment": "If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DocumentReference.relatesTo.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentRelationshipType"
                }
              ],
              "strength": "required",
              "description": "The type of relationship between documents.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"
            }
          },
          {
            "id": "DocumentReference.relatesTo.target",
            "path": "DocumentReference.relatesTo.target",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DocumentReference.relatesTo.target",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.description",
            "path": "DocumentReference.description",
            "comment": "What the document is about,  a terse summary of the document.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.securityLabel",
            "path": "DocumentReference.securityLabel",
            "comment": "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.   \n\nIn 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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentReference.securityLabel",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SecurityLabels"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
            }
          },
          {
            "id": "DocumentReference.content",
            "path": "DocumentReference.content",
            "min": 1,
            "max": "*",
            "base": {
              "path": "DocumentReference.content",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.content.id",
            "path": "DocumentReference.content.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.content.extension",
            "path": "DocumentReference.content.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.content.modifierExtension",
            "path": "DocumentReference.content.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DocumentReference.content.attachment",
            "path": "DocumentReference.content.attachment",
            "min": 1,
            "max": "1",
            "base": {
              "path": "DocumentReference.content.attachment",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.content.format",
            "path": "DocumentReference.content.format",
            "comment": "Note that while IHE mostly issues URNs for format types, not all documents can be identified by a URI.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.content.format",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentFormat"
                }
              ],
              "strength": "preferred",
              "description": "Document Format Codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/formatcodes"
            }
          },
          {
            "id": "DocumentReference.context",
            "path": "DocumentReference.context",
            "comment": "These values are primarily added to help with searching for interesting/relevant documents.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.context",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.context.id",
            "path": "DocumentReference.context.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.context.extension",
            "path": "DocumentReference.context.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.context.modifierExtension",
            "path": "DocumentReference.context.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "DocumentReference.context.encounter",
            "path": "DocumentReference.context.encounter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentReference.context.encounter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.context.event",
            "path": "DocumentReference.context.event",
            "comment": "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": "*",
            "base": {
              "path": "DocumentReference.context.event",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentEventType"
                }
              ],
              "strength": "example",
              "description": "This list of codes represents the main clinical acts being documented.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode"
            }
          },
          {
            "id": "DocumentReference.context.period",
            "path": "DocumentReference.context.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.context.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DocumentReference.context.facilityType",
            "path": "DocumentReference.context.facilityType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.context.facilityType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentC80FacilityType"
                }
              ],
              "strength": "example",
              "description": "XDS Facility Type.",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-facilitycodes"
            }
          },
          {
            "id": "DocumentReference.context.practiceSetting",
            "path": "DocumentReference.context.practiceSetting",
            "comment": "This element should be based on a coarse classification system for the class of specialty practice. Recommend the use of the classification system for Practice Setting, such as that described by the Subject Matter Domain in LOINC.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.context.practiceSetting",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentC80PracticeSetting"
                }
              ],
              "strength": "example",
              "description": "Additional details about where the content was created (e.g. clinical specialty).",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "DocumentReference.context.sourcePatientInfo",
            "path": "DocumentReference.context.sourcePatientInfo",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DocumentReference.context.sourcePatientInfo",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DocumentReference.context.related",
            "path": "DocumentReference.context.related",
            "comment": "May be identifiers or resources that caused the DocumentReference or referenced Document to be created.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DocumentReference.context.related",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "DocumentReference",
            "path": "DocumentReference",
            "comment": "Usually, this is used for documents other than those defined by FHIR.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "DocumentReference.masterIdentifier",
            "path": "DocumentReference.masterIdentifier",
            "comment": "CDA Document Id extension and root.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.identifier",
            "path": "DocumentReference.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.status",
            "path": "DocumentReference.status",
            "comment": "This is the status of the DocumentReference object, which might be independent from the docStatus element.\n\nThis element is labeled as a modifier because the status contains the codes that mark the document or reference as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentReferenceStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The status of the document reference.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-reference-status|4.0.1"
            }
          },
          {
            "id": "DocumentReference.docStatus",
            "path": "DocumentReference.docStatus",
            "comment": "The document that is pointed to might be in various lifecycle states.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ReferredDocumentStatus"
                }
              ],
              "strength": "required",
              "description": "Status of the underlying document.",
              "valueSet": "http://hl7.org/fhir/ValueSet/composition-status|4.0.1"
            }
          },
          {
            "id": "DocumentReference.type",
            "path": "DocumentReference.type",
            "comment": "Key metadata element describing the document that describes he exact type of document. Helps humans to assess whether the document is of interest when viewing a list of documents.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentC80Type"
                }
              ],
              "strength": "preferred",
              "description": "Precise type of clinical document.",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-doc-typecodes"
            }
          },
          {
            "id": "DocumentReference.category",
            "path": "DocumentReference.category",
            "comment": "Key metadata element describing the the category or classification of the document. This is a broader perspective that groups similar documents based on how they would be used. This is a primary key used in searching.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentC80Class"
                }
              ],
              "strength": "example",
              "description": "High-level kind of a clinical document at a macro level.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-classcodes"
            }
          },
          {
            "id": "DocumentReference.subject",
            "path": "DocumentReference.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.date",
            "path": "DocumentReference.date",
            "comment": "Referencing/indexing time is used for tracking, organizing versions and searching.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.author",
            "path": "DocumentReference.author",
            "comment": "Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.authenticator",
            "path": "DocumentReference.authenticator",
            "comment": "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",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "DocumentReference.custodian",
            "path": "DocumentReference.custodian",
            "comment": "Identifies the logical organization (software system, vendor, or department) to go to find the current version, where to report issues, etc. This is different from the physical location (URL, disk drive, or server) 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",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "DocumentReference.relatesTo",
            "path": "DocumentReference.relatesTo",
            "comment": "This element is labeled as a modifier because documents that append to other documents are incomplete on their own.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.relatesTo.code",
            "path": "DocumentReference.relatesTo.code",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentRelationshipType"
                }
              ],
              "strength": "required",
              "description": "The type of relationship between documents.",
              "valueSet": "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"
            }
          },
          {
            "id": "DocumentReference.relatesTo.target",
            "path": "DocumentReference.relatesTo.target",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.description",
            "path": "DocumentReference.description",
            "comment": "What the document is about,  a terse summary of the document.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.securityLabel",
            "path": "DocumentReference.securityLabel",
            "comment": "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.   \n\nIn 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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SecurityLabels"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
            }
          },
          {
            "id": "DocumentReference.content",
            "path": "DocumentReference.content",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.content.attachment",
            "path": "DocumentReference.content.attachment",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.content.format",
            "path": "DocumentReference.content.format",
            "comment": "Note that while IHE mostly issues URNs for format types, not all documents can be identified by a URI.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentFormat"
                }
              ],
              "strength": "preferred",
              "description": "Document Format Codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/formatcodes"
            }
          },
          {
            "id": "DocumentReference.context",
            "path": "DocumentReference.context",
            "comment": "These values are primarily added to help with searching for interesting/relevant documents.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.context.encounter",
            "path": "DocumentReference.context.encounter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ]
          },
          {
            "id": "DocumentReference.context.event",
            "path": "DocumentReference.context.event",
            "comment": "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"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentEventType"
                }
              ],
              "strength": "example",
              "description": "This list of codes represents the main clinical acts being documented.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode"
            }
          },
          {
            "id": "DocumentReference.context.period",
            "path": "DocumentReference.context.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "DocumentReference.context.facilityType",
            "path": "DocumentReference.context.facilityType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentC80FacilityType"
                }
              ],
              "strength": "example",
              "description": "XDS Facility Type.",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-facilitycodes"
            }
          },
          {
            "id": "DocumentReference.context.practiceSetting",
            "path": "DocumentReference.context.practiceSetting",
            "comment": "This element should be based on a coarse classification system for the class of specialty practice. Recommend the use of the classification system for Practice Setting, such as that described by the Subject Matter Domain in LOINC.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DocumentC80PracticeSetting"
                }
              ],
              "strength": "example",
              "description": "Additional details about where the content was created (e.g. clinical specialty).",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "DocumentReference.context.sourcePatientInfo",
            "path": "DocumentReference.context.sourcePatientInfo",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ]
          },
          {
            "id": "DocumentReference.context.related",
            "path": "DocumentReference.context.related",
            "comment": "May be identifiers or resources that caused the DocumentReference or referenced Document to be created.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/DomainResource",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "DomainResource",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "version": "4.0.1",
      "name": "DomainResource",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": true,
      "type": "DomainResource",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Resource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "DomainResource",
            "path": "DomainResource",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DomainResource.id",
            "path": "DomainResource.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DomainResource.meta",
            "path": "DomainResource.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "DomainResource.implicitRules",
            "path": "DomainResource.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "DomainResource.language",
            "path": "DomainResource.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "DomainResource.text",
            "path": "DomainResource.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DomainResource.contained",
            "path": "DomainResource.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DomainResource.extension",
            "path": "DomainResource.extension",
            "slicing": {
              "discriminator": [
                {
                  "type": "value",
                  "path": "url"
                }
              ],
              "description": "Extensions are always sliced by (at least) url",
              "rules": "open"
            },
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "DomainResource.modifierExtension",
            "path": "DomainResource.modifierExtension",
            "slicing": {
              "discriminator": [
                {
                  "type": "value",
                  "path": "url"
                }
              ],
              "description": "Extensions are always sliced by (at least) url",
              "rules": "open"
            },
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "DomainResource",
            "path": "DomainResource",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))"
              }
            ]
          },
          {
            "id": "DomainResource.text",
            "path": "DomainResource.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Narrative"
              }
            ]
          },
          {
            "id": "DomainResource.contained",
            "path": "DomainResource.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Resource"
              }
            ]
          },
          {
            "id": "DomainResource.extension",
            "path": "DomainResource.extension",
            "slicing": {
              "discriminator": [
                {
                  "type": "value",
                  "path": "url"
                }
              ],
              "description": "Extensions are always sliced by (at least) url",
              "rules": "open"
            },
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "id": "DomainResource.modifierExtension",
            "path": "DomainResource.modifierExtension",
            "slicing": {
              "discriminator": [
                {
                  "type": "value",
                  "path": "url"
                }
              ],
              "description": "Extensions are always sliced by (at least) url",
              "rules": "open"
            },
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/EffectEvidenceSynthesis",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "EffectEvidenceSynthesis",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Evidence-Based Medicine"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/EffectEvidenceSynthesis",
      "version": "4.0.1",
      "name": "EffectEvidenceSynthesis",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "EffectEvidenceSynthesis",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "EffectEvidenceSynthesis",
            "path": "EffectEvidenceSynthesis",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "ees-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.id",
            "path": "EffectEvidenceSynthesis.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.meta",
            "path": "EffectEvidenceSynthesis.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.implicitRules",
            "path": "EffectEvidenceSynthesis.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.language",
            "path": "EffectEvidenceSynthesis.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.text",
            "path": "EffectEvidenceSynthesis.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.contained",
            "path": "EffectEvidenceSynthesis.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.extension",
            "path": "EffectEvidenceSynthesis.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.modifierExtension",
            "path": "EffectEvidenceSynthesis.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.url",
            "path": "EffectEvidenceSynthesis.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.identifier",
            "path": "EffectEvidenceSynthesis.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this effect evidence synthesis outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.version",
            "path": "EffectEvidenceSynthesis.version",
            "comment": "There may be different effect evidence synthesis instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the effect evidence synthesis with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.name",
            "path": "EffectEvidenceSynthesis.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.title",
            "path": "EffectEvidenceSynthesis.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.status",
            "path": "EffectEvidenceSynthesis.status",
            "comment": "Allows filtering of effect evidence synthesiss that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.date",
            "path": "EffectEvidenceSynthesis.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the effect evidence synthesis. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.publisher",
            "path": "EffectEvidenceSynthesis.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the effect evidence synthesis is the organization or individual primarily responsible for the maintenance and upkeep of the effect evidence synthesis. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the effect evidence synthesis. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.contact",
            "path": "EffectEvidenceSynthesis.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.description",
            "path": "EffectEvidenceSynthesis.description",
            "comment": "This description can be used to capture details such as why the effect evidence synthesis was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the effect evidence synthesis as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the effect evidence synthesis is presumed to be the predominant language in the place the effect evidence synthesis was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.note",
            "path": "EffectEvidenceSynthesis.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.useContext",
            "path": "EffectEvidenceSynthesis.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.jurisdiction",
            "path": "EffectEvidenceSynthesis.jurisdiction",
            "comment": "It may be possible for the effect evidence synthesis to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.copyright",
            "path": "EffectEvidenceSynthesis.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.approvalDate",
            "path": "EffectEvidenceSynthesis.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.lastReviewDate",
            "path": "EffectEvidenceSynthesis.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectivePeriod",
            "path": "EffectEvidenceSynthesis.effectivePeriod",
            "comment": "The effective period for a effect evidence synthesis  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.topic",
            "path": "EffectEvidenceSynthesis.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.author",
            "path": "EffectEvidenceSynthesis.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.editor",
            "path": "EffectEvidenceSynthesis.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.reviewer",
            "path": "EffectEvidenceSynthesis.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.endorser",
            "path": "EffectEvidenceSynthesis.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.relatedArtifact",
            "path": "EffectEvidenceSynthesis.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.synthesisType",
            "path": "EffectEvidenceSynthesis.synthesisType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.synthesisType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SynthesisType"
                }
              ],
              "strength": "extensible",
              "description": "Types of combining results from a body of evidence (eg. summary data meta-analysis).",
              "valueSet": "http://hl7.org/fhir/ValueSet/synthesis-type"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.studyType",
            "path": "EffectEvidenceSynthesis.studyType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.studyType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StudyType"
                }
              ],
              "strength": "extensible",
              "description": "Types of research studies (types of research methods).",
              "valueSet": "http://hl7.org/fhir/ValueSet/study-type"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.population",
            "path": "EffectEvidenceSynthesis.population",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.population",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.exposure",
            "path": "EffectEvidenceSynthesis.exposure",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.exposure",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.exposureAlternative",
            "path": "EffectEvidenceSynthesis.exposureAlternative",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.exposureAlternative",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.outcome",
            "path": "EffectEvidenceSynthesis.outcome",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.outcome",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize",
            "path": "EffectEvidenceSynthesis.sampleSize",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.sampleSize",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize.id",
            "path": "EffectEvidenceSynthesis.sampleSize.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize.extension",
            "path": "EffectEvidenceSynthesis.sampleSize.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize.modifierExtension",
            "path": "EffectEvidenceSynthesis.sampleSize.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize.description",
            "path": "EffectEvidenceSynthesis.sampleSize.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.sampleSize.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize.numberOfStudies",
            "path": "EffectEvidenceSynthesis.sampleSize.numberOfStudies",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.sampleSize.numberOfStudies",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize.numberOfParticipants",
            "path": "EffectEvidenceSynthesis.sampleSize.numberOfParticipants",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.sampleSize.numberOfParticipants",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure",
            "path": "EffectEvidenceSynthesis.resultsByExposure",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.resultsByExposure",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.id",
            "path": "EffectEvidenceSynthesis.resultsByExposure.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.extension",
            "path": "EffectEvidenceSynthesis.resultsByExposure.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.modifierExtension",
            "path": "EffectEvidenceSynthesis.resultsByExposure.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.description",
            "path": "EffectEvidenceSynthesis.resultsByExposure.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.resultsByExposure.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.exposureState",
            "path": "EffectEvidenceSynthesis.resultsByExposure.exposureState",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.resultsByExposure.exposureState",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ExposureState"
                }
              ],
              "strength": "required",
              "description": "Whether the results by exposure is describing the results for the primary exposure of interest (exposure) or the alternative state (exposureAlternative).",
              "valueSet": "http://hl7.org/fhir/ValueSet/exposure-state|4.0.1"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.variantState",
            "path": "EffectEvidenceSynthesis.resultsByExposure.variantState",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.resultsByExposure.variantState",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvidenceVariantState"
                }
              ],
              "strength": "extensible",
              "description": "Used for results by exposure in variant states such as low-risk, medium-risk and high-risk states.",
              "valueSet": "http://hl7.org/fhir/ValueSet/evidence-variant-state"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.riskEvidenceSynthesis",
            "path": "EffectEvidenceSynthesis.resultsByExposure.riskEvidenceSynthesis",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.resultsByExposure.riskEvidenceSynthesis",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/RiskEvidenceSynthesis"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate",
            "path": "EffectEvidenceSynthesis.effectEstimate",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.id",
            "path": "EffectEvidenceSynthesis.effectEstimate.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.extension",
            "path": "EffectEvidenceSynthesis.effectEstimate.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.modifierExtension",
            "path": "EffectEvidenceSynthesis.effectEstimate.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.description",
            "path": "EffectEvidenceSynthesis.effectEstimate.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.type",
            "path": "EffectEvidenceSynthesis.effectEstimate.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EffectEstimateType"
                }
              ],
              "strength": "extensible",
              "description": "Whether the effect estimate is an absolute effect estimate (absolute difference) or a relative effect estimate (relative difference), and the specific type of effect estimate (eg relative risk or median difference).",
              "valueSet": "http://hl7.org/fhir/ValueSet/effect-estimate-type"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.variantState",
            "path": "EffectEvidenceSynthesis.effectEstimate.variantState",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate.variantState",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvidenceVariantState"
                }
              ],
              "strength": "extensible",
              "description": "Used for results by exposure in variant states such as low-risk, medium-risk and high-risk states.",
              "valueSet": "http://hl7.org/fhir/ValueSet/evidence-variant-state"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.value",
            "path": "EffectEvidenceSynthesis.effectEstimate.value",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.unitOfMeasure",
            "path": "EffectEvidenceSynthesis.effectEstimate.unitOfMeasure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate.unitOfMeasure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "UCUMUnits"
                }
              ],
              "strength": "required",
              "description": "Unified Code for Units of Measure (UCUM).",
              "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units|4.0.1"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.id",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.extension",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.modifierExtension",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.type",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PrecisionEstimateType"
                }
              ],
              "strength": "extensible",
              "description": "Method of reporting variability of estimates, such as confidence intervals, interquartile range or standard deviation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/precision-estimate-type"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.level",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.level",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.level",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.from",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.from",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.from",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.to",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.to",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.to",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.certainty",
            "path": "EffectEvidenceSynthesis.certainty",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.certainty",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.id",
            "path": "EffectEvidenceSynthesis.certainty.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.extension",
            "path": "EffectEvidenceSynthesis.certainty.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.modifierExtension",
            "path": "EffectEvidenceSynthesis.certainty.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.rating",
            "path": "EffectEvidenceSynthesis.certainty.rating",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.certainty.rating",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QualityOfEvidenceRating"
                }
              ],
              "strength": "extensible",
              "description": "The quality of the evidence described. The code system used specifies the quality scale used to grade this evidence source while the code specifies the actual quality score (represented as a coded value) associated with the evidence.",
              "valueSet": "http://hl7.org/fhir/ValueSet/evidence-quality"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.note",
            "path": "EffectEvidenceSynthesis.certainty.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.certainty.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.id",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.extension",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.modifierExtension",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.type",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CertaintySubcomponentType"
                }
              ],
              "strength": "extensible",
              "description": "The subcomponent classification of quality of evidence rating systems.",
              "valueSet": "http://hl7.org/fhir/ValueSet/certainty-subcomponent-type"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.rating",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.rating",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.rating",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CertaintySubcomponentRating"
                }
              ],
              "strength": "extensible",
              "description": "The quality rating of the subcomponent of a quality of evidence rating.",
              "valueSet": "http://hl7.org/fhir/ValueSet/certainty-subcomponent-rating"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.note",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "EffectEvidenceSynthesis",
            "path": "EffectEvidenceSynthesis",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "ees-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.url",
            "path": "EffectEvidenceSynthesis.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.identifier",
            "path": "EffectEvidenceSynthesis.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this effect evidence synthesis outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.version",
            "path": "EffectEvidenceSynthesis.version",
            "comment": "There may be different effect evidence synthesis instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the effect evidence synthesis with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.name",
            "path": "EffectEvidenceSynthesis.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.title",
            "path": "EffectEvidenceSynthesis.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.status",
            "path": "EffectEvidenceSynthesis.status",
            "comment": "Allows filtering of effect evidence synthesiss that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.date",
            "path": "EffectEvidenceSynthesis.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the effect evidence synthesis. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.publisher",
            "path": "EffectEvidenceSynthesis.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the effect evidence synthesis is the organization or individual primarily responsible for the maintenance and upkeep of the effect evidence synthesis. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the effect evidence synthesis. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.contact",
            "path": "EffectEvidenceSynthesis.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.description",
            "path": "EffectEvidenceSynthesis.description",
            "comment": "This description can be used to capture details such as why the effect evidence synthesis was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the effect evidence synthesis as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the effect evidence synthesis is presumed to be the predominant language in the place the effect evidence synthesis was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.note",
            "path": "EffectEvidenceSynthesis.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.useContext",
            "path": "EffectEvidenceSynthesis.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.jurisdiction",
            "path": "EffectEvidenceSynthesis.jurisdiction",
            "comment": "It may be possible for the effect evidence synthesis to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.copyright",
            "path": "EffectEvidenceSynthesis.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.approvalDate",
            "path": "EffectEvidenceSynthesis.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.lastReviewDate",
            "path": "EffectEvidenceSynthesis.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.effectivePeriod",
            "path": "EffectEvidenceSynthesis.effectivePeriod",
            "comment": "The effective period for a effect evidence synthesis  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.topic",
            "path": "EffectEvidenceSynthesis.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.author",
            "path": "EffectEvidenceSynthesis.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.editor",
            "path": "EffectEvidenceSynthesis.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.reviewer",
            "path": "EffectEvidenceSynthesis.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.endorser",
            "path": "EffectEvidenceSynthesis.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.relatedArtifact",
            "path": "EffectEvidenceSynthesis.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.synthesisType",
            "path": "EffectEvidenceSynthesis.synthesisType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SynthesisType"
                }
              ],
              "strength": "extensible",
              "description": "Types of combining results from a body of evidence (eg. summary data meta-analysis).",
              "valueSet": "http://hl7.org/fhir/ValueSet/synthesis-type"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.studyType",
            "path": "EffectEvidenceSynthesis.studyType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StudyType"
                }
              ],
              "strength": "extensible",
              "description": "Types of research studies (types of research methods).",
              "valueSet": "http://hl7.org/fhir/ValueSet/study-type"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.population",
            "path": "EffectEvidenceSynthesis.population",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.exposure",
            "path": "EffectEvidenceSynthesis.exposure",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.exposureAlternative",
            "path": "EffectEvidenceSynthesis.exposureAlternative",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.outcome",
            "path": "EffectEvidenceSynthesis.outcome",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize",
            "path": "EffectEvidenceSynthesis.sampleSize",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize.description",
            "path": "EffectEvidenceSynthesis.sampleSize.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize.numberOfStudies",
            "path": "EffectEvidenceSynthesis.sampleSize.numberOfStudies",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.sampleSize.numberOfParticipants",
            "path": "EffectEvidenceSynthesis.sampleSize.numberOfParticipants",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure",
            "path": "EffectEvidenceSynthesis.resultsByExposure",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.description",
            "path": "EffectEvidenceSynthesis.resultsByExposure.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.exposureState",
            "path": "EffectEvidenceSynthesis.resultsByExposure.exposureState",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ExposureState"
                }
              ],
              "strength": "required",
              "description": "Whether the results by exposure is describing the results for the primary exposure of interest (exposure) or the alternative state (exposureAlternative).",
              "valueSet": "http://hl7.org/fhir/ValueSet/exposure-state|4.0.1"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.variantState",
            "path": "EffectEvidenceSynthesis.resultsByExposure.variantState",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvidenceVariantState"
                }
              ],
              "strength": "extensible",
              "description": "Used for results by exposure in variant states such as low-risk, medium-risk and high-risk states.",
              "valueSet": "http://hl7.org/fhir/ValueSet/evidence-variant-state"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.resultsByExposure.riskEvidenceSynthesis",
            "path": "EffectEvidenceSynthesis.resultsByExposure.riskEvidenceSynthesis",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/RiskEvidenceSynthesis"
                ]
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate",
            "path": "EffectEvidenceSynthesis.effectEstimate",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.description",
            "path": "EffectEvidenceSynthesis.effectEstimate.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.type",
            "path": "EffectEvidenceSynthesis.effectEstimate.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EffectEstimateType"
                }
              ],
              "strength": "extensible",
              "description": "Whether the effect estimate is an absolute effect estimate (absolute difference) or a relative effect estimate (relative difference), and the specific type of effect estimate (eg relative risk or median difference).",
              "valueSet": "http://hl7.org/fhir/ValueSet/effect-estimate-type"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.variantState",
            "path": "EffectEvidenceSynthesis.effectEstimate.variantState",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvidenceVariantState"
                }
              ],
              "strength": "extensible",
              "description": "Used for results by exposure in variant states such as low-risk, medium-risk and high-risk states.",
              "valueSet": "http://hl7.org/fhir/ValueSet/evidence-variant-state"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.value",
            "path": "EffectEvidenceSynthesis.effectEstimate.value",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.unitOfMeasure",
            "path": "EffectEvidenceSynthesis.effectEstimate.unitOfMeasure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "UCUMUnits"
                }
              ],
              "strength": "required",
              "description": "Unified Code for Units of Measure (UCUM).",
              "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units|4.0.1"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.type",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PrecisionEstimateType"
                }
              ],
              "strength": "extensible",
              "description": "Method of reporting variability of estimates, such as confidence intervals, interquartile range or standard deviation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/precision-estimate-type"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.level",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.level",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.from",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.from",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.to",
            "path": "EffectEvidenceSynthesis.effectEstimate.precisionEstimate.to",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.certainty",
            "path": "EffectEvidenceSynthesis.certainty",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.rating",
            "path": "EffectEvidenceSynthesis.certainty.rating",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QualityOfEvidenceRating"
                }
              ],
              "strength": "extensible",
              "description": "The quality of the evidence described. The code system used specifies the quality scale used to grade this evidence source while the code specifies the actual quality score (represented as a coded value) associated with the evidence.",
              "valueSet": "http://hl7.org/fhir/ValueSet/evidence-quality"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.note",
            "path": "EffectEvidenceSynthesis.certainty.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.type",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CertaintySubcomponentType"
                }
              ],
              "strength": "extensible",
              "description": "The subcomponent classification of quality of evidence rating systems.",
              "valueSet": "http://hl7.org/fhir/ValueSet/certainty-subcomponent-type"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.rating",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.rating",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CertaintySubcomponentRating"
                }
              ],
              "strength": "extensible",
              "description": "The quality rating of the subcomponent of a quality of evidence rating.",
              "valueSet": "http://hl7.org/fhir/ValueSet/certainty-subcomponent-rating"
            }
          },
          {
            "id": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.note",
            "path": "EffectEvidenceSynthesis.certainty.certaintySubcomponent.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Encounter",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Encounter",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Management"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Encounter",
      "version": "4.0.1",
      "name": "Encounter",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Encounter",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Encounter",
            "path": "Encounter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.id",
            "path": "Encounter.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.meta",
            "path": "Encounter.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.implicitRules",
            "path": "Encounter.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Encounter.language",
            "path": "Encounter.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Encounter.text",
            "path": "Encounter.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.contained",
            "path": "Encounter.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.extension",
            "path": "Encounter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.modifierExtension",
            "path": "Encounter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Encounter.identifier",
            "path": "Encounter.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.status",
            "path": "Encounter.status",
            "comment": "Note that internal business rules will determine the appropriate transitions that may occur between statuses (and also classes).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Encounter.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterStatus"
                }
              ],
              "strength": "required",
              "description": "Current state of the encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"
            }
          },
          {
            "id": "Encounter.statusHistory",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "StatusHistory"
              }
            ],
            "path": "Encounter.statusHistory",
            "comment": "The current status is always found in the current version of the resource, not the status history.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.statusHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.statusHistory.id",
            "path": "Encounter.statusHistory.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.statusHistory.extension",
            "path": "Encounter.statusHistory.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.statusHistory.modifierExtension",
            "path": "Encounter.statusHistory.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Encounter.statusHistory.status",
            "path": "Encounter.statusHistory.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Encounter.statusHistory.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterStatus"
                }
              ],
              "strength": "required",
              "description": "Current state of the encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"
            }
          },
          {
            "id": "Encounter.statusHistory.period",
            "path": "Encounter.statusHistory.period",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Encounter.statusHistory.period",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.class",
            "path": "Encounter.class",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Encounter.class",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterClass"
                }
              ],
              "strength": "extensible",
              "description": "Classification of the encounter.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"
            }
          },
          {
            "id": "Encounter.classHistory",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ClassHistory"
              }
            ],
            "path": "Encounter.classHistory",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.classHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.classHistory.id",
            "path": "Encounter.classHistory.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.classHistory.extension",
            "path": "Encounter.classHistory.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.classHistory.modifierExtension",
            "path": "Encounter.classHistory.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Encounter.classHistory.class",
            "path": "Encounter.classHistory.class",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Encounter.classHistory.class",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterClass"
                }
              ],
              "strength": "extensible",
              "description": "Classification of the encounter.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"
            }
          },
          {
            "id": "Encounter.classHistory.period",
            "path": "Encounter.classHistory.period",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Encounter.classHistory.period",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.type",
            "path": "Encounter.type",
            "comment": "Since there are many ways to further classify encounters, this element is 0..*.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterType"
                }
              ],
              "strength": "example",
              "description": "The type of encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-type"
            }
          },
          {
            "id": "Encounter.serviceType",
            "path": "Encounter.serviceType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.serviceType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterServiceType"
                }
              ],
              "strength": "example",
              "description": "Broad categorization of the service that is to be provided.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
            }
          },
          {
            "id": "Encounter.priority",
            "path": "Encounter.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Priority"
                }
              ],
              "strength": "example",
              "description": "Indicates the urgency of the encounter.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPriority"
            }
          },
          {
            "id": "Encounter.subject",
            "path": "Encounter.subject",
            "comment": "While the encounter is always about the patient, the patient might not actually be known in all contexts of use, and there may be a group of patients that could be anonymous (such as in a group therapy for Alcoholics Anonymous - where the recording of the encounter could be used for billing on the number of people/staff and not important to the context of the specific patients) or alternately in veterinary care a herd of sheep receiving treatment (where the animals are not individually tracked).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.episodeOfCare",
            "path": "Encounter.episodeOfCare",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.episodeOfCare",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.basedOn",
            "path": "Encounter.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.participant",
            "path": "Encounter.participant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.participant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.participant.id",
            "path": "Encounter.participant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.participant.extension",
            "path": "Encounter.participant.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.participant.modifierExtension",
            "path": "Encounter.participant.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Encounter.participant.type",
            "path": "Encounter.participant.type",
            "comment": "The participant type indicates how an individual participates 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": "*",
            "base": {
              "path": "Encounter.participant.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipantType"
                }
              ],
              "strength": "extensible",
              "description": "Role of participant in encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
            }
          },
          {
            "id": "Encounter.participant.period",
            "path": "Encounter.participant.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.participant.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.participant.individual",
            "path": "Encounter.participant.individual",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.participant.individual",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.appointment",
            "path": "Encounter.appointment",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.appointment",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Appointment"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.period",
            "path": "Encounter.period",
            "comment": "If not (yet) known, the end of the Period may be omitted.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.length",
            "path": "Encounter.length",
            "comment": "May differ from the time the Encounter.period lasted because of leave of absence.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.length",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.reasonCode",
            "path": "Encounter.reasonCode",
            "comment": "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).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterReason"
                }
              ],
              "strength": "preferred",
              "description": "Reason why the encounter takes place.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-reason"
            }
          },
          {
            "id": "Encounter.reasonReference",
            "path": "Encounter.reasonReference",
            "comment": "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).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.diagnosis",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Diagnosis"
              }
            ],
            "path": "Encounter.diagnosis",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.diagnosis",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.diagnosis.id",
            "path": "Encounter.diagnosis.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.diagnosis.extension",
            "path": "Encounter.diagnosis.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.diagnosis.modifierExtension",
            "path": "Encounter.diagnosis.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Encounter.diagnosis.condition",
            "path": "Encounter.diagnosis.condition",
            "comment": "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).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Encounter.diagnosis.condition",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Encounter.diagnosis.use",
            "path": "Encounter.diagnosis.use",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.diagnosis.use",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisRole"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "The type of diagnosis this condition represents.",
              "valueSet": "http://hl7.org/fhir/ValueSet/diagnosis-role"
            }
          },
          {
            "id": "Encounter.diagnosis.rank",
            "path": "Encounter.diagnosis.rank",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.diagnosis.rank",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.account",
            "path": "Encounter.account",
            "comment": "The billing system may choose to allocate billable items associated with the Encounter to different referenced Accounts based on internal business rules.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.account",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Account"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.hospitalization",
            "path": "Encounter.hospitalization",
            "comment": "An Encounter may cover more than just the inpatient stay. Contexts such as outpatients, community clinics, and aged care facilities are also included.\r\rThe duration recorded in the period of this encounter covers the entire scope of this hospitalization record.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.hospitalization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.hospitalization.id",
            "path": "Encounter.hospitalization.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.hospitalization.extension",
            "path": "Encounter.hospitalization.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.hospitalization.modifierExtension",
            "path": "Encounter.hospitalization.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Encounter.hospitalization.preAdmissionIdentifier",
            "path": "Encounter.hospitalization.preAdmissionIdentifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.hospitalization.preAdmissionIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.hospitalization.origin",
            "path": "Encounter.hospitalization.origin",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.hospitalization.origin",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.hospitalization.admitSource",
            "path": "Encounter.hospitalization.admitSource",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.hospitalization.admitSource",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdmitSource"
                }
              ],
              "strength": "preferred",
              "description": "From where the patient was admitted.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-admit-source"
            }
          },
          {
            "id": "Encounter.hospitalization.reAdmission",
            "path": "Encounter.hospitalization.reAdmission",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.hospitalization.reAdmission",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ReAdmissionType"
                }
              ],
              "strength": "example",
              "description": "The reason for re-admission of this hospitalization encounter.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0092"
            }
          },
          {
            "id": "Encounter.hospitalization.dietPreference",
            "path": "Encounter.hospitalization.dietPreference",
            "comment": "For example, a patient may request both a dairy-free and nut-free diet preference (not mutually exclusive).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.hospitalization.dietPreference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PatientDiet"
                }
              ],
              "strength": "example",
              "description": "Medical, cultural or ethical food preferences to help with catering requirements.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-diet"
            }
          },
          {
            "id": "Encounter.hospitalization.specialCourtesy",
            "path": "Encounter.hospitalization.specialCourtesy",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.hospitalization.specialCourtesy",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Courtesies"
                }
              ],
              "strength": "preferred",
              "description": "Special courtesies.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-special-courtesy"
            }
          },
          {
            "id": "Encounter.hospitalization.specialArrangement",
            "path": "Encounter.hospitalization.specialArrangement",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Encounter.hospitalization.specialArrangement",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Arrangements"
                }
              ],
              "strength": "preferred",
              "description": "Special arrangements.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-special-arrangements"
            }
          },
          {
            "id": "Encounter.hospitalization.destination",
            "path": "Encounter.hospitalization.destination",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.hospitalization.destination",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.hospitalization.dischargeDisposition",
            "path": "Encounter.hospitalization.dischargeDisposition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.hospitalization.dischargeDisposition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DischargeDisp"
                }
              ],
              "strength": "example",
              "description": "Discharge Disposition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition"
            }
          },
          {
            "id": "Encounter.location",
            "path": "Encounter.location",
            "comment": "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": "*",
            "base": {
              "path": "Encounter.location",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.location.id",
            "path": "Encounter.location.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.location.extension",
            "path": "Encounter.location.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.location.modifierExtension",
            "path": "Encounter.location.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Encounter.location.location",
            "path": "Encounter.location.location",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Encounter.location.location",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.location.status",
            "path": "Encounter.location.status",
            "comment": "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",
            "base": {
              "path": "Encounter.location.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterLocationStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the location.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1"
            }
          },
          {
            "id": "Encounter.location.physicalType",
            "path": "Encounter.location.physicalType",
            "comment": "This information is de-normalized from the Location resource to support the easier understanding of the encounter resource and processing in messaging or query.\n\nThere may be many levels in the hierachy, and this may only pic specific levels that are required for a specific usage scenario.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.location.physicalType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PhysicalType"
                }
              ],
              "strength": "example",
              "description": "Physical form of the location.",
              "valueSet": "http://hl7.org/fhir/ValueSet/location-physical-type"
            }
          },
          {
            "id": "Encounter.location.period",
            "path": "Encounter.location.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.location.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.serviceProvider",
            "path": "Encounter.serviceProvider",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.serviceProvider",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Encounter.partOf",
            "path": "Encounter.partOf",
            "comment": "This is also used for associating a child's encounter back to the mother's encounter.\r\rRefer to the Notes section in the Patient resource for further details.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Encounter.partOf",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Encounter",
            "path": "Encounter",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Encounter.identifier",
            "path": "Encounter.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Encounter.status",
            "path": "Encounter.status",
            "comment": "Note that internal business rules will determine the appropriate transitions that may occur between statuses (and also classes).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterStatus"
                }
              ],
              "strength": "required",
              "description": "Current state of the encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"
            }
          },
          {
            "id": "Encounter.statusHistory",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "StatusHistory"
              }
            ],
            "path": "Encounter.statusHistory",
            "comment": "The current status is always found in the current version of the resource, not the status history.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Encounter.statusHistory.status",
            "path": "Encounter.statusHistory.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterStatus"
                }
              ],
              "strength": "required",
              "description": "Current state of the encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"
            }
          },
          {
            "id": "Encounter.statusHistory.period",
            "path": "Encounter.statusHistory.period",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Encounter.class",
            "path": "Encounter.class",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterClass"
                }
              ],
              "strength": "extensible",
              "description": "Classification of the encounter.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"
            }
          },
          {
            "id": "Encounter.classHistory",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ClassHistory"
              }
            ],
            "path": "Encounter.classHistory",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Encounter.classHistory.class",
            "path": "Encounter.classHistory.class",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterClass"
                }
              ],
              "strength": "extensible",
              "description": "Classification of the encounter.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"
            }
          },
          {
            "id": "Encounter.classHistory.period",
            "path": "Encounter.classHistory.period",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Encounter.type",
            "path": "Encounter.type",
            "comment": "Since there are many ways to further classify encounters, this element is 0..*.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterType"
                }
              ],
              "strength": "example",
              "description": "The type of encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-type"
            }
          },
          {
            "id": "Encounter.serviceType",
            "path": "Encounter.serviceType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterServiceType"
                }
              ],
              "strength": "example",
              "description": "Broad categorization of the service that is to be provided.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
            }
          },
          {
            "id": "Encounter.priority",
            "path": "Encounter.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Priority"
                }
              ],
              "strength": "example",
              "description": "Indicates the urgency of the encounter.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPriority"
            }
          },
          {
            "id": "Encounter.subject",
            "path": "Encounter.subject",
            "comment": "While the encounter is always about the patient, the patient might not actually be known in all contexts of use, and there may be a group of patients that could be anonymous (such as in a group therapy for Alcoholics Anonymous - where the recording of the encounter could be used for billing on the number of people/staff and not important to the context of the specific patients) or alternately in veterinary care a herd of sheep receiving treatment (where the animals are not individually tracked).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Encounter.episodeOfCare",
            "path": "Encounter.episodeOfCare",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Encounter.basedOn",
            "path": "Encounter.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ]
          },
          {
            "id": "Encounter.participant",
            "path": "Encounter.participant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Encounter.participant.type",
            "path": "Encounter.participant.type",
            "comment": "The participant type indicates how an individual participates 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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParticipantType"
                }
              ],
              "strength": "extensible",
              "description": "Role of participant in encounter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
            }
          },
          {
            "id": "Encounter.participant.period",
            "path": "Encounter.participant.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Encounter.participant.individual",
            "path": "Encounter.participant.individual",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Encounter.appointment",
            "path": "Encounter.appointment",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Appointment"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Encounter.period",
            "path": "Encounter.period",
            "comment": "If not (yet) known, the end of the Period may be omitted.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Encounter.length",
            "path": "Encounter.length",
            "comment": "May differ from the time the Encounter.period lasted because of leave of absence.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "Encounter.reasonCode",
            "path": "Encounter.reasonCode",
            "comment": "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).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterReason"
                }
              ],
              "strength": "preferred",
              "description": "Reason why the encounter takes place.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-reason"
            }
          },
          {
            "id": "Encounter.reasonReference",
            "path": "Encounter.reasonReference",
            "comment": "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).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Encounter.diagnosis",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Diagnosis"
              }
            ],
            "path": "Encounter.diagnosis",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Encounter.diagnosis.condition",
            "path": "Encounter.diagnosis.condition",
            "comment": "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).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Encounter.diagnosis.use",
            "path": "Encounter.diagnosis.use",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisRole"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "The type of diagnosis this condition represents.",
              "valueSet": "http://hl7.org/fhir/ValueSet/diagnosis-role"
            }
          },
          {
            "id": "Encounter.diagnosis.rank",
            "path": "Encounter.diagnosis.rank",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Encounter.account",
            "path": "Encounter.account",
            "comment": "The billing system may choose to allocate billable items associated with the Encounter to different referenced Accounts based on internal business rules.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Account"
                ]
              }
            ]
          },
          {
            "id": "Encounter.hospitalization",
            "path": "Encounter.hospitalization",
            "comment": "An Encounter may cover more than just the inpatient stay. Contexts such as outpatients, community clinics, and aged care facilities are also included.\r\rThe duration recorded in the period of this encounter covers the entire scope of this hospitalization record.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Encounter.hospitalization.preAdmissionIdentifier",
            "path": "Encounter.hospitalization.preAdmissionIdentifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Encounter.hospitalization.origin",
            "path": "Encounter.hospitalization.origin",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Encounter.hospitalization.admitSource",
            "path": "Encounter.hospitalization.admitSource",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdmitSource"
                }
              ],
              "strength": "preferred",
              "description": "From where the patient was admitted.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-admit-source"
            }
          },
          {
            "id": "Encounter.hospitalization.reAdmission",
            "path": "Encounter.hospitalization.reAdmission",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ReAdmissionType"
                }
              ],
              "strength": "example",
              "description": "The reason for re-admission of this hospitalization encounter.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0092"
            }
          },
          {
            "id": "Encounter.hospitalization.dietPreference",
            "path": "Encounter.hospitalization.dietPreference",
            "comment": "For example, a patient may request both a dairy-free and nut-free diet preference (not mutually exclusive).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PatientDiet"
                }
              ],
              "strength": "example",
              "description": "Medical, cultural or ethical food preferences to help with catering requirements.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-diet"
            }
          },
          {
            "id": "Encounter.hospitalization.specialCourtesy",
            "path": "Encounter.hospitalization.specialCourtesy",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Courtesies"
                }
              ],
              "strength": "preferred",
              "description": "Special courtesies.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-special-courtesy"
            }
          },
          {
            "id": "Encounter.hospitalization.specialArrangement",
            "path": "Encounter.hospitalization.specialArrangement",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Arrangements"
                }
              ],
              "strength": "preferred",
              "description": "Special arrangements.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-special-arrangements"
            }
          },
          {
            "id": "Encounter.hospitalization.destination",
            "path": "Encounter.hospitalization.destination",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Encounter.hospitalization.dischargeDisposition",
            "path": "Encounter.hospitalization.dischargeDisposition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DischargeDisp"
                }
              ],
              "strength": "example",
              "description": "Discharge Disposition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition"
            }
          },
          {
            "id": "Encounter.location",
            "path": "Encounter.location",
            "comment": "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"
              }
            ]
          },
          {
            "id": "Encounter.location.location",
            "path": "Encounter.location.location",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "Encounter.location.status",
            "path": "Encounter.location.status",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EncounterLocationStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the location.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1"
            }
          },
          {
            "id": "Encounter.location.physicalType",
            "path": "Encounter.location.physicalType",
            "comment": "This information is de-normalized from the Location resource to support the easier understanding of the encounter resource and processing in messaging or query.\n\nThere may be many levels in the hierachy, and this may only pic specific levels that are required for a specific usage scenario.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PhysicalType"
                }
              ],
              "strength": "example",
              "description": "Physical form of the location.",
              "valueSet": "http://hl7.org/fhir/ValueSet/location-physical-type"
            }
          },
          {
            "id": "Encounter.location.period",
            "path": "Encounter.location.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Encounter.serviceProvider",
            "path": "Encounter.serviceProvider",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Encounter.partOf",
            "path": "Encounter.partOf",
            "comment": "This is also used for associating a child's encounter back to the mother's encounter.\r\rRefer to the Notes section in the Patient resource for further details.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Endpoint",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Endpoint",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Entities"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Endpoint",
      "version": "4.0.1",
      "name": "Endpoint",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Endpoint",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Endpoint",
            "path": "Endpoint",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Endpoint",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Endpoint.id",
            "path": "Endpoint.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Endpoint.meta",
            "path": "Endpoint.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Endpoint.implicitRules",
            "path": "Endpoint.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Endpoint.language",
            "path": "Endpoint.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Endpoint.text",
            "path": "Endpoint.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Endpoint.contained",
            "path": "Endpoint.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Endpoint.extension",
            "path": "Endpoint.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Endpoint.modifierExtension",
            "path": "Endpoint.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Endpoint.identifier",
            "path": "Endpoint.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Endpoint.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Endpoint.status",
            "path": "Endpoint.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the endpoint as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Endpoint.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EndpointStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the endpoint.",
              "valueSet": "http://hl7.org/fhir/ValueSet/endpoint-status|4.0.1"
            }
          },
          {
            "id": "Endpoint.connectionType",
            "path": "Endpoint.connectionType",
            "comment": "For additional connectivity details for the protocol, extensions will be used at this point, as in the XDS example.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Endpoint.connectionType",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "endpoint-contype"
                }
              ],
              "strength": "extensible",
              "valueSet": "http://hl7.org/fhir/ValueSet/endpoint-connection-type"
            }
          },
          {
            "id": "Endpoint.name",
            "path": "Endpoint.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Endpoint.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Endpoint.managingOrganization",
            "path": "Endpoint.managingOrganization",
            "comment": "This property is not typically used when searching for Endpoint resources for usage. The typical usage is via the reference from an applicable Organization/Location/Practitioner resource, which is where the context is provided. Multiple Locations may reference a single endpoint, and don't have to be within the same organization resource, but most likely within the same organizational hierarchy.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Endpoint.managingOrganization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Endpoint.contact",
            "path": "Endpoint.contact",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Endpoint.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Endpoint.period",
            "path": "Endpoint.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Endpoint.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Endpoint.payloadType",
            "path": "Endpoint.payloadType",
            "comment": "The payloadFormat describes the serialization format of the data, where the payloadType indicates the specific document/schema that is being transferred; e.g. DischargeSummary or CarePlan.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Endpoint.payloadType",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PayloadType"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/endpoint-payload-type"
            }
          },
          {
            "id": "Endpoint.payloadMimeType",
            "path": "Endpoint.payloadMimeType",
            "comment": "Sending the payload has obvious security consequences. The server is responsible for ensuring that the content is appropriately secured.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Endpoint.payloadMimeType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "Endpoint.address",
            "path": "Endpoint.address",
            "comment": "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 there may be more than one, clients should avoid using relative URIs)\n\nThis address will be to the service base, without any parameters, or sub-services or resources tacked on.\n\nE.g. for a WADO-RS endpoint, the url should be \"https://pacs.hospital.org/wado-rs\"\n\nand not \"https://pacs.hospital.org/wado-rs/studies/1.2.250.1.59.40211.12345678.678910/series/1.2.250.1.59.40211.789001276.14556172.67789/instances/...\".",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Endpoint.address",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "url"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Endpoint.header",
            "path": "Endpoint.header",
            "comment": "Exactly what these mean depends on the channel type. The can convey additional information to the recipient and/or meet security requirements.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Endpoint.header",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Endpoint",
            "path": "Endpoint",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Endpoint.identifier",
            "path": "Endpoint.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Endpoint.status",
            "path": "Endpoint.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the endpoint as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EndpointStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the endpoint.",
              "valueSet": "http://hl7.org/fhir/ValueSet/endpoint-status|4.0.1"
            }
          },
          {
            "id": "Endpoint.connectionType",
            "path": "Endpoint.connectionType",
            "comment": "For additional connectivity details for the protocol, extensions will be used at this point, as in the XDS example.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "endpoint-contype"
                }
              ],
              "strength": "extensible",
              "valueSet": "http://hl7.org/fhir/ValueSet/endpoint-connection-type"
            }
          },
          {
            "id": "Endpoint.name",
            "path": "Endpoint.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Endpoint.managingOrganization",
            "path": "Endpoint.managingOrganization",
            "comment": "This property is not typically used when searching for Endpoint resources for usage. The typical usage is via the reference from an applicable Organization/Location/Practitioner resource, which is where the context is provided. Multiple Locations may reference a single endpoint, and don't have to be within the same organization resource, but most likely within the same organizational hierarchy.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Endpoint.contact",
            "path": "Endpoint.contact",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ]
          },
          {
            "id": "Endpoint.period",
            "path": "Endpoint.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Endpoint.payloadType",
            "path": "Endpoint.payloadType",
            "comment": "The payloadFormat describes the serialization format of the data, where the payloadType indicates the specific document/schema that is being transferred; e.g. DischargeSummary or CarePlan.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PayloadType"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/endpoint-payload-type"
            }
          },
          {
            "id": "Endpoint.payloadMimeType",
            "path": "Endpoint.payloadMimeType",
            "comment": "Sending the payload has obvious security consequences. The server is responsible for ensuring that the content is appropriately secured.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "Endpoint.address",
            "path": "Endpoint.address",
            "comment": "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 there may be more than one, clients should avoid using relative URIs)\n\nThis address will be to the service base, without any parameters, or sub-services or resources tacked on.\n\nE.g. for a WADO-RS endpoint, the url should be \"https://pacs.hospital.org/wado-rs\"\n\nand not \"https://pacs.hospital.org/wado-rs/studies/1.2.250.1.59.40211.12345678.678910/series/1.2.250.1.59.40211.789001276.14556172.67789/instances/...\".",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "url"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Endpoint.header",
            "path": "Endpoint.header",
            "comment": "Exactly what these mean depends on the channel type. The can convey additional information to the recipient and/or meet security requirements.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": false
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/EnrollmentRequest",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "EnrollmentRequest",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.Support"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/EnrollmentRequest",
      "version": "4.0.1",
      "name": "EnrollmentRequest",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "EnrollmentRequest",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "EnrollmentRequest",
            "path": "EnrollmentRequest",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EnrollmentRequest",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentRequest.id",
            "path": "EnrollmentRequest.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EnrollmentRequest.meta",
            "path": "EnrollmentRequest.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EnrollmentRequest.implicitRules",
            "path": "EnrollmentRequest.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "EnrollmentRequest.language",
            "path": "EnrollmentRequest.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "EnrollmentRequest.text",
            "path": "EnrollmentRequest.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentRequest.contained",
            "path": "EnrollmentRequest.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentRequest.extension",
            "path": "EnrollmentRequest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentRequest.modifierExtension",
            "path": "EnrollmentRequest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "EnrollmentRequest.identifier",
            "path": "EnrollmentRequest.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EnrollmentRequest.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentRequest.status",
            "path": "EnrollmentRequest.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the request as not currently valid.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentRequest.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnrollmentRequestStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "EnrollmentRequest.created",
            "path": "EnrollmentRequest.created",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentRequest.created",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentRequest.insurer",
            "path": "EnrollmentRequest.insurer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentRequest.insurer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentRequest.provider",
            "path": "EnrollmentRequest.provider",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentRequest.provider",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentRequest.candidate",
            "path": "EnrollmentRequest.candidate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentRequest.candidate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentRequest.coverage",
            "path": "EnrollmentRequest.coverage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentRequest.coverage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "EnrollmentRequest",
            "path": "EnrollmentRequest",
            "min": 0,
            "max": "*"
          },
          {
            "id": "EnrollmentRequest.identifier",
            "path": "EnrollmentRequest.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "EnrollmentRequest.status",
            "path": "EnrollmentRequest.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the request as not currently valid.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnrollmentRequestStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "EnrollmentRequest.created",
            "path": "EnrollmentRequest.created",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "EnrollmentRequest.insurer",
            "path": "EnrollmentRequest.insurer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "EnrollmentRequest.provider",
            "path": "EnrollmentRequest.provider",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "EnrollmentRequest.candidate",
            "path": "EnrollmentRequest.candidate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ]
          },
          {
            "id": "EnrollmentRequest.coverage",
            "path": "EnrollmentRequest.coverage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/EnrollmentResponse",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "EnrollmentResponse",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.Support"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/EnrollmentResponse",
      "version": "4.0.1",
      "name": "EnrollmentResponse",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "EnrollmentResponse",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "EnrollmentResponse",
            "path": "EnrollmentResponse",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EnrollmentResponse",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentResponse.id",
            "path": "EnrollmentResponse.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EnrollmentResponse.meta",
            "path": "EnrollmentResponse.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EnrollmentResponse.implicitRules",
            "path": "EnrollmentResponse.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "EnrollmentResponse.language",
            "path": "EnrollmentResponse.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "EnrollmentResponse.text",
            "path": "EnrollmentResponse.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentResponse.contained",
            "path": "EnrollmentResponse.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentResponse.extension",
            "path": "EnrollmentResponse.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentResponse.modifierExtension",
            "path": "EnrollmentResponse.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "EnrollmentResponse.identifier",
            "path": "EnrollmentResponse.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EnrollmentResponse.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentResponse.status",
            "path": "EnrollmentResponse.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the response as not currently valid.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentResponse.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnrollmentResponseStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "EnrollmentResponse.request",
            "path": "EnrollmentResponse.request",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentResponse.request",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EnrollmentRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentResponse.outcome",
            "path": "EnrollmentResponse.outcome",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentResponse.outcome",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RemittanceOutcome"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The outcome of the processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1"
            }
          },
          {
            "id": "EnrollmentResponse.disposition",
            "path": "EnrollmentResponse.disposition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentResponse.disposition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentResponse.created",
            "path": "EnrollmentResponse.created",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentResponse.created",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentResponse.organization",
            "path": "EnrollmentResponse.organization",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentResponse.organization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EnrollmentResponse.requestProvider",
            "path": "EnrollmentResponse.requestProvider",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EnrollmentResponse.requestProvider",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "EnrollmentResponse",
            "path": "EnrollmentResponse",
            "min": 0,
            "max": "*"
          },
          {
            "id": "EnrollmentResponse.identifier",
            "path": "EnrollmentResponse.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "EnrollmentResponse.status",
            "path": "EnrollmentResponse.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the response as not currently valid.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnrollmentResponseStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "EnrollmentResponse.request",
            "path": "EnrollmentResponse.request",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EnrollmentRequest"
                ]
              }
            ]
          },
          {
            "id": "EnrollmentResponse.outcome",
            "path": "EnrollmentResponse.outcome",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RemittanceOutcome"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The outcome of the processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1"
            }
          },
          {
            "id": "EnrollmentResponse.disposition",
            "path": "EnrollmentResponse.disposition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "EnrollmentResponse.created",
            "path": "EnrollmentResponse.created",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "EnrollmentResponse.organization",
            "path": "EnrollmentResponse.organization",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "EnrollmentResponse.requestProvider",
            "path": "EnrollmentResponse.requestProvider",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "EpisodeOfCare",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Management"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare",
      "version": "4.0.1",
      "name": "EpisodeOfCare",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "EpisodeOfCare",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "EpisodeOfCare",
            "path": "EpisodeOfCare",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EpisodeOfCare",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.id",
            "path": "EpisodeOfCare.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.meta",
            "path": "EpisodeOfCare.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.implicitRules",
            "path": "EpisodeOfCare.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.language",
            "path": "EpisodeOfCare.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "EpisodeOfCare.text",
            "path": "EpisodeOfCare.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.contained",
            "path": "EpisodeOfCare.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.extension",
            "path": "EpisodeOfCare.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.modifierExtension",
            "path": "EpisodeOfCare.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.identifier",
            "path": "EpisodeOfCare.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EpisodeOfCare.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.status",
            "path": "EpisodeOfCare.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the episode as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EpisodeOfCare.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EpisodeOfCareStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the episode of care.",
              "valueSet": "http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1"
            }
          },
          {
            "id": "EpisodeOfCare.statusHistory",
            "path": "EpisodeOfCare.statusHistory",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EpisodeOfCare.statusHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.statusHistory.id",
            "path": "EpisodeOfCare.statusHistory.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.statusHistory.extension",
            "path": "EpisodeOfCare.statusHistory.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.statusHistory.modifierExtension",
            "path": "EpisodeOfCare.statusHistory.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.statusHistory.status",
            "path": "EpisodeOfCare.statusHistory.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EpisodeOfCare.statusHistory.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EpisodeOfCareStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the episode of care.",
              "valueSet": "http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1"
            }
          },
          {
            "id": "EpisodeOfCare.statusHistory.period",
            "path": "EpisodeOfCare.statusHistory.period",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EpisodeOfCare.statusHistory.period",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.type",
            "path": "EpisodeOfCare.type",
            "comment": "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": "*",
            "base": {
              "path": "EpisodeOfCare.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EpisodeOfCareType"
                }
              ],
              "strength": "example",
              "description": "The type of the episode of care.",
              "valueSet": "http://hl7.org/fhir/ValueSet/episodeofcare-type"
            }
          },
          {
            "id": "EpisodeOfCare.diagnosis",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Diagnosis"
              }
            ],
            "path": "EpisodeOfCare.diagnosis",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EpisodeOfCare.diagnosis",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.diagnosis.id",
            "path": "EpisodeOfCare.diagnosis.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.diagnosis.extension",
            "path": "EpisodeOfCare.diagnosis.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.diagnosis.modifierExtension",
            "path": "EpisodeOfCare.diagnosis.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.diagnosis.condition",
            "path": "EpisodeOfCare.diagnosis.condition",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EpisodeOfCare.diagnosis.condition",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.diagnosis.role",
            "path": "EpisodeOfCare.diagnosis.role",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EpisodeOfCare.diagnosis.role",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisRole"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "The type of diagnosis this condition represents.",
              "valueSet": "http://hl7.org/fhir/ValueSet/diagnosis-role"
            }
          },
          {
            "id": "EpisodeOfCare.diagnosis.rank",
            "path": "EpisodeOfCare.diagnosis.rank",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EpisodeOfCare.diagnosis.rank",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.patient",
            "path": "EpisodeOfCare.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EpisodeOfCare.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.managingOrganization",
            "path": "EpisodeOfCare.managingOrganization",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EpisodeOfCare.managingOrganization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.period",
            "path": "EpisodeOfCare.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EpisodeOfCare.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.referralRequest",
            "path": "EpisodeOfCare.referralRequest",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EpisodeOfCare.referralRequest",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.careManager",
            "path": "EpisodeOfCare.careManager",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EpisodeOfCare.careManager",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.team",
            "path": "EpisodeOfCare.team",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EpisodeOfCare.team",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EpisodeOfCare.account",
            "path": "EpisodeOfCare.account",
            "comment": "The billing system may choose to allocate billable items associated with the EpisodeOfCare to different referenced Accounts based on internal business rules.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EpisodeOfCare.account",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Account"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "EpisodeOfCare",
            "path": "EpisodeOfCare",
            "min": 0,
            "max": "*"
          },
          {
            "id": "EpisodeOfCare.identifier",
            "path": "EpisodeOfCare.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "EpisodeOfCare.status",
            "path": "EpisodeOfCare.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the episode as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EpisodeOfCareStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the episode of care.",
              "valueSet": "http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1"
            }
          },
          {
            "id": "EpisodeOfCare.statusHistory",
            "path": "EpisodeOfCare.statusHistory",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "EpisodeOfCare.statusHistory.status",
            "path": "EpisodeOfCare.statusHistory.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EpisodeOfCareStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the episode of care.",
              "valueSet": "http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1"
            }
          },
          {
            "id": "EpisodeOfCare.statusHistory.period",
            "path": "EpisodeOfCare.statusHistory.period",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "EpisodeOfCare.type",
            "path": "EpisodeOfCare.type",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EpisodeOfCareType"
                }
              ],
              "strength": "example",
              "description": "The type of the episode of care.",
              "valueSet": "http://hl7.org/fhir/ValueSet/episodeofcare-type"
            }
          },
          {
            "id": "EpisodeOfCare.diagnosis",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Diagnosis"
              }
            ],
            "path": "EpisodeOfCare.diagnosis",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.diagnosis.condition",
            "path": "EpisodeOfCare.diagnosis.condition",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.diagnosis.role",
            "path": "EpisodeOfCare.diagnosis.role",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisRole"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "The type of diagnosis this condition represents.",
              "valueSet": "http://hl7.org/fhir/ValueSet/diagnosis-role"
            }
          },
          {
            "id": "EpisodeOfCare.diagnosis.rank",
            "path": "EpisodeOfCare.diagnosis.rank",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.patient",
            "path": "EpisodeOfCare.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.managingOrganization",
            "path": "EpisodeOfCare.managingOrganization",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.period",
            "path": "EpisodeOfCare.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EpisodeOfCare.referralRequest",
            "path": "EpisodeOfCare.referralRequest",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ]
          },
          {
            "id": "EpisodeOfCare.careManager",
            "path": "EpisodeOfCare.careManager",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "EpisodeOfCare.team",
            "path": "EpisodeOfCare.team",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ]
          },
          {
            "id": "EpisodeOfCare.account",
            "path": "EpisodeOfCare.account",
            "comment": "The billing system may choose to allocate billable items associated with the EpisodeOfCare to different referenced Accounts based on internal business rules.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Account"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/EventDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "EventDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Definitional Artifacts"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/EventDefinition",
      "version": "4.0.1",
      "name": "EventDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "EventDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "EventDefinition",
            "path": "EventDefinition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "evd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.id",
            "path": "EventDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.meta",
            "path": "EventDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.implicitRules",
            "path": "EventDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "EventDefinition.language",
            "path": "EventDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "EventDefinition.text",
            "path": "EventDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.contained",
            "path": "EventDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.extension",
            "path": "EventDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.modifierExtension",
            "path": "EventDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "EventDefinition.url",
            "path": "EventDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.identifier",
            "path": "EventDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this event definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.version",
            "path": "EventDefinition.version",
            "comment": "There may be different event definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the event definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.name",
            "path": "EventDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.title",
            "path": "EventDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.subtitle",
            "path": "EventDefinition.subtitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.subtitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.status",
            "path": "EventDefinition.status",
            "comment": "Allows filtering of event definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EventDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "EventDefinition.experimental",
            "path": "EventDefinition.experimental",
            "comment": "Allows filtering of event definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.subject[x]",
            "path": "EventDefinition.subject[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.subject[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for an event (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "EventDefinition.date",
            "path": "EventDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the event definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.publisher",
            "path": "EventDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the event definition is the organization or individual primarily responsible for the maintenance and upkeep of the event definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the event definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.contact",
            "path": "EventDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.description",
            "path": "EventDefinition.description",
            "comment": "This description can be used to capture details such as why the event definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the event definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the event definition is presumed to be the predominant language in the place the event definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.useContext",
            "path": "EventDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.jurisdiction",
            "path": "EventDefinition.jurisdiction",
            "comment": "It may be possible for the event definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "EventDefinition.purpose",
            "path": "EventDefinition.purpose",
            "comment": "This element does not describe the usage of the event definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this event definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.usage",
            "path": "EventDefinition.usage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.usage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.copyright",
            "path": "EventDefinition.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.approvalDate",
            "path": "EventDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.lastReviewDate",
            "path": "EventDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.effectivePeriod",
            "path": "EventDefinition.effectivePeriod",
            "comment": "The effective period for a event definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EventDefinition.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EventDefinition.topic",
            "path": "EventDefinition.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "EventDefinition.author",
            "path": "EventDefinition.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.editor",
            "path": "EventDefinition.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.reviewer",
            "path": "EventDefinition.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.endorser",
            "path": "EventDefinition.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.relatedArtifact",
            "path": "EventDefinition.relatedArtifact",
            "comment": "Each related resource is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EventDefinition.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EventDefinition.trigger",
            "path": "EventDefinition.trigger",
            "min": 1,
            "max": "*",
            "base": {
              "path": "EventDefinition.trigger",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "TriggerDefinition"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "EventDefinition",
            "path": "EventDefinition",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "evd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "EventDefinition.url",
            "path": "EventDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.identifier",
            "path": "EventDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this event definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.version",
            "path": "EventDefinition.version",
            "comment": "There may be different event definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the event definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.name",
            "path": "EventDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.title",
            "path": "EventDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.subtitle",
            "path": "EventDefinition.subtitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "EventDefinition.status",
            "path": "EventDefinition.status",
            "comment": "Allows filtering of event definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "EventDefinition.experimental",
            "path": "EventDefinition.experimental",
            "comment": "Allows filtering of event definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.subject[x]",
            "path": "EventDefinition.subject[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for an event (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "EventDefinition.date",
            "path": "EventDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the event definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.publisher",
            "path": "EventDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the event definition is the organization or individual primarily responsible for the maintenance and upkeep of the event definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the event definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.contact",
            "path": "EventDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.description",
            "path": "EventDefinition.description",
            "comment": "This description can be used to capture details such as why the event definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the event definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the event definition is presumed to be the predominant language in the place the event definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "EventDefinition.useContext",
            "path": "EventDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.jurisdiction",
            "path": "EventDefinition.jurisdiction",
            "comment": "It may be possible for the event definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "EventDefinition.purpose",
            "path": "EventDefinition.purpose",
            "comment": "This element does not describe the usage of the event definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this event definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "EventDefinition.usage",
            "path": "EventDefinition.usage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "EventDefinition.copyright",
            "path": "EventDefinition.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "EventDefinition.approvalDate",
            "path": "EventDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.lastReviewDate",
            "path": "EventDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.effectivePeriod",
            "path": "EventDefinition.effectivePeriod",
            "comment": "The effective period for a event definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EventDefinition.topic",
            "path": "EventDefinition.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "EventDefinition.author",
            "path": "EventDefinition.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EventDefinition.editor",
            "path": "EventDefinition.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EventDefinition.reviewer",
            "path": "EventDefinition.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EventDefinition.endorser",
            "path": "EventDefinition.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EventDefinition.relatedArtifact",
            "path": "EventDefinition.relatedArtifact",
            "comment": "Each related resource is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "EventDefinition.trigger",
            "path": "EventDefinition.trigger",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "TriggerDefinition"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Evidence",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Evidence",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Evidence-Based Medicine"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Evidence",
      "version": "4.0.1",
      "name": "Evidence",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Evidence",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Evidence",
            "path": "Evidence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "evi-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.id",
            "path": "Evidence.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.meta",
            "path": "Evidence.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.implicitRules",
            "path": "Evidence.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Evidence.language",
            "path": "Evidence.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Evidence.text",
            "path": "Evidence.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.contained",
            "path": "Evidence.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.extension",
            "path": "Evidence.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.modifierExtension",
            "path": "Evidence.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Evidence.url",
            "path": "Evidence.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.identifier",
            "path": "Evidence.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this evidence outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.version",
            "path": "Evidence.version",
            "comment": "There may be different evidence instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the evidence with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.name",
            "path": "Evidence.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.title",
            "path": "Evidence.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.shortTitle",
            "path": "Evidence.shortTitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.shortTitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.subtitle",
            "path": "Evidence.subtitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.subtitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.status",
            "path": "Evidence.status",
            "comment": "Allows filtering of evidences that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Evidence.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "Evidence.date",
            "path": "Evidence.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the evidence. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.publisher",
            "path": "Evidence.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the evidence is the organization or individual primarily responsible for the maintenance and upkeep of the evidence. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the evidence. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.contact",
            "path": "Evidence.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.description",
            "path": "Evidence.description",
            "comment": "This description can be used to capture details such as why the evidence was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the evidence as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the evidence is presumed to be the predominant language in the place the evidence was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.note",
            "path": "Evidence.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.useContext",
            "path": "Evidence.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.jurisdiction",
            "path": "Evidence.jurisdiction",
            "comment": "It may be possible for the evidence to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "Evidence.copyright",
            "path": "Evidence.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.approvalDate",
            "path": "Evidence.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.lastReviewDate",
            "path": "Evidence.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.effectivePeriod",
            "path": "Evidence.effectivePeriod",
            "comment": "The effective period for a evidence  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Evidence.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.topic",
            "path": "Evidence.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "Evidence.author",
            "path": "Evidence.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.editor",
            "path": "Evidence.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.reviewer",
            "path": "Evidence.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.endorser",
            "path": "Evidence.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.relatedArtifact",
            "path": "Evidence.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Evidence.exposureBackground",
            "path": "Evidence.exposureBackground",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Evidence.exposureBackground",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.exposureVariant",
            "path": "Evidence.exposureVariant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.exposureVariant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Evidence.outcome",
            "path": "Evidence.outcome",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Evidence.outcome",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Evidence",
            "path": "Evidence",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "evi-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "Evidence.url",
            "path": "Evidence.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.identifier",
            "path": "Evidence.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this evidence outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.version",
            "path": "Evidence.version",
            "comment": "There may be different evidence instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the evidence with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.name",
            "path": "Evidence.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.title",
            "path": "Evidence.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.shortTitle",
            "path": "Evidence.shortTitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Evidence.subtitle",
            "path": "Evidence.subtitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Evidence.status",
            "path": "Evidence.status",
            "comment": "Allows filtering of evidences that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "Evidence.date",
            "path": "Evidence.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the evidence. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.publisher",
            "path": "Evidence.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the evidence is the organization or individual primarily responsible for the maintenance and upkeep of the evidence. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the evidence. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.contact",
            "path": "Evidence.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.description",
            "path": "Evidence.description",
            "comment": "This description can be used to capture details such as why the evidence was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the evidence as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the evidence is presumed to be the predominant language in the place the evidence was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.note",
            "path": "Evidence.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "Evidence.useContext",
            "path": "Evidence.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.jurisdiction",
            "path": "Evidence.jurisdiction",
            "comment": "It may be possible for the evidence to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "Evidence.copyright",
            "path": "Evidence.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "Evidence.approvalDate",
            "path": "Evidence.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "Evidence.lastReviewDate",
            "path": "Evidence.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "Evidence.effectivePeriod",
            "path": "Evidence.effectivePeriod",
            "comment": "The effective period for a evidence  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.topic",
            "path": "Evidence.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "Evidence.author",
            "path": "Evidence.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Evidence.editor",
            "path": "Evidence.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Evidence.reviewer",
            "path": "Evidence.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Evidence.endorser",
            "path": "Evidence.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Evidence.relatedArtifact",
            "path": "Evidence.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "Evidence.exposureBackground",
            "path": "Evidence.exposureBackground",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.exposureVariant",
            "path": "Evidence.exposureVariant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Evidence.outcome",
            "path": "Evidence.outcome",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/EvidenceVariable",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "EvidenceVariable",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Evidence-Based Medicine"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/EvidenceVariable",
      "version": "4.0.1",
      "name": "EvidenceVariable",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Need to be able to define and reuse the definition of individual elements of a research question.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "EvidenceVariable",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "EvidenceVariable",
            "path": "EvidenceVariable",
            "comment": "PICO stands for Population (the population within which exposures are being compared), Intervention (the conditional state or exposure state being described for its effect on outcomes), Comparison (the alternative conditional state or alternative exposure state being compared against), and Outcome (the result or effect of the intervention in the population).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "evv-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.id",
            "path": "EvidenceVariable.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.meta",
            "path": "EvidenceVariable.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.implicitRules",
            "path": "EvidenceVariable.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.language",
            "path": "EvidenceVariable.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "EvidenceVariable.text",
            "path": "EvidenceVariable.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.contained",
            "path": "EvidenceVariable.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.extension",
            "path": "EvidenceVariable.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.modifierExtension",
            "path": "EvidenceVariable.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.url",
            "path": "EvidenceVariable.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.identifier",
            "path": "EvidenceVariable.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this evidence variable outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.version",
            "path": "EvidenceVariable.version",
            "comment": "There may be different evidence variable instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the evidence variable with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.name",
            "path": "EvidenceVariable.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.title",
            "path": "EvidenceVariable.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.shortTitle",
            "path": "EvidenceVariable.shortTitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.shortTitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.subtitle",
            "path": "EvidenceVariable.subtitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.subtitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.status",
            "path": "EvidenceVariable.status",
            "comment": "Allows filtering of evidence variables that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "EvidenceVariable.date",
            "path": "EvidenceVariable.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the evidence variable. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.publisher",
            "path": "EvidenceVariable.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the evidence variable is the organization or individual primarily responsible for the maintenance and upkeep of the evidence variable. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the evidence variable. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.contact",
            "path": "EvidenceVariable.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.description",
            "path": "EvidenceVariable.description",
            "comment": "This description can be used to capture details such as why the evidence variable was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the evidence variable as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the evidence variable is presumed to be the predominant language in the place the evidence variable was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.note",
            "path": "EvidenceVariable.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.useContext",
            "path": "EvidenceVariable.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.jurisdiction",
            "path": "EvidenceVariable.jurisdiction",
            "comment": "It may be possible for the evidence variable to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "EvidenceVariable.copyright",
            "path": "EvidenceVariable.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.approvalDate",
            "path": "EvidenceVariable.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.lastReviewDate",
            "path": "EvidenceVariable.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.effectivePeriod",
            "path": "EvidenceVariable.effectivePeriod",
            "comment": "The effective period for a evidence variable  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.topic",
            "path": "EvidenceVariable.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "EvidenceVariable.author",
            "path": "EvidenceVariable.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.editor",
            "path": "EvidenceVariable.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.reviewer",
            "path": "EvidenceVariable.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.endorser",
            "path": "EvidenceVariable.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.relatedArtifact",
            "path": "EvidenceVariable.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.type",
            "path": "EvidenceVariable.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvidenceVariableType"
                }
              ],
              "strength": "required",
              "description": "The possible types of variables for exposures or outcomes (E.g. Dichotomous, Continuous, Descriptive).",
              "valueSet": "http://hl7.org/fhir/ValueSet/variable-type|4.0.1"
            }
          },
          {
            "id": "EvidenceVariable.characteristic",
            "path": "EvidenceVariable.characteristic",
            "comment": "Characteristics can be defined flexibly to accommodate different use cases for membership criteria, ranging from simple codes, all the way to using an expression language to express the criteria.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.characteristic",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.characteristic.id",
            "path": "EvidenceVariable.characteristic.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.characteristic.extension",
            "path": "EvidenceVariable.characteristic.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.characteristic.modifierExtension",
            "path": "EvidenceVariable.characteristic.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.characteristic.description",
            "path": "EvidenceVariable.characteristic.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.characteristic.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.characteristic.definition[x]",
            "path": "EvidenceVariable.characteristic.definition[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.characteristic.definition[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
                ]
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Expression"
              },
              {
                "code": "DataRequirement"
              },
              {
                "code": "TriggerDefinition"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.characteristic.usageContext",
            "path": "EvidenceVariable.characteristic.usageContext",
            "min": 0,
            "max": "*",
            "base": {
              "path": "EvidenceVariable.characteristic.usageContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.characteristic.exclude",
            "path": "EvidenceVariable.characteristic.exclude",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.characteristic.exclude",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "False",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.characteristic.participantEffective[x]",
            "path": "EvidenceVariable.characteristic.participantEffective[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.characteristic.participantEffective[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Duration"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.characteristic.timeFromStart",
            "path": "EvidenceVariable.characteristic.timeFromStart",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.characteristic.timeFromStart",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "EvidenceVariable.characteristic.groupMeasure",
            "path": "EvidenceVariable.characteristic.groupMeasure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "EvidenceVariable.characteristic.groupMeasure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupMeasure"
                }
              ],
              "strength": "required",
              "description": "Possible group measure aggregates (E.g. Mean, Median).",
              "valueSet": "http://hl7.org/fhir/ValueSet/group-measure|4.0.1"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "EvidenceVariable",
            "path": "EvidenceVariable",
            "comment": "PICO stands for Population (the population within which exposures are being compared), Intervention (the conditional state or exposure state being described for its effect on outcomes), Comparison (the alternative conditional state or alternative exposure state being compared against), and Outcome (the result or effect of the intervention in the population).",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "evv-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "EvidenceVariable.url",
            "path": "EvidenceVariable.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.identifier",
            "path": "EvidenceVariable.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this evidence variable outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.version",
            "path": "EvidenceVariable.version",
            "comment": "There may be different evidence variable instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the evidence variable with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.name",
            "path": "EvidenceVariable.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.title",
            "path": "EvidenceVariable.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.shortTitle",
            "path": "EvidenceVariable.shortTitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.subtitle",
            "path": "EvidenceVariable.subtitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "EvidenceVariable.status",
            "path": "EvidenceVariable.status",
            "comment": "Allows filtering of evidence variables that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "EvidenceVariable.date",
            "path": "EvidenceVariable.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the evidence variable. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.publisher",
            "path": "EvidenceVariable.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the evidence variable is the organization or individual primarily responsible for the maintenance and upkeep of the evidence variable. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the evidence variable. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.contact",
            "path": "EvidenceVariable.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.description",
            "path": "EvidenceVariable.description",
            "comment": "This description can be used to capture details such as why the evidence variable was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the evidence variable as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the evidence variable is presumed to be the predominant language in the place the evidence variable was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.note",
            "path": "EvidenceVariable.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "EvidenceVariable.useContext",
            "path": "EvidenceVariable.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.jurisdiction",
            "path": "EvidenceVariable.jurisdiction",
            "comment": "It may be possible for the evidence variable to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "EvidenceVariable.copyright",
            "path": "EvidenceVariable.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "EvidenceVariable.approvalDate",
            "path": "EvidenceVariable.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "EvidenceVariable.lastReviewDate",
            "path": "EvidenceVariable.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "EvidenceVariable.effectivePeriod",
            "path": "EvidenceVariable.effectivePeriod",
            "comment": "The effective period for a evidence variable  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.topic",
            "path": "EvidenceVariable.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "EvidenceVariable.author",
            "path": "EvidenceVariable.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EvidenceVariable.editor",
            "path": "EvidenceVariable.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EvidenceVariable.reviewer",
            "path": "EvidenceVariable.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EvidenceVariable.endorser",
            "path": "EvidenceVariable.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "EvidenceVariable.relatedArtifact",
            "path": "EvidenceVariable.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "EvidenceVariable.type",
            "path": "EvidenceVariable.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvidenceVariableType"
                }
              ],
              "strength": "required",
              "description": "The possible types of variables for exposures or outcomes (E.g. Dichotomous, Continuous, Descriptive).",
              "valueSet": "http://hl7.org/fhir/ValueSet/variable-type|4.0.1"
            }
          },
          {
            "id": "EvidenceVariable.characteristic",
            "path": "EvidenceVariable.characteristic",
            "comment": "Characteristics can be defined flexibly to accommodate different use cases for membership criteria, ranging from simple codes, all the way to using an expression language to express the criteria.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.characteristic.description",
            "path": "EvidenceVariable.characteristic.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "EvidenceVariable.characteristic.definition[x]",
            "path": "EvidenceVariable.characteristic.definition[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
                ]
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Expression"
              },
              {
                "code": "DataRequirement"
              },
              {
                "code": "TriggerDefinition"
              }
            ],
            "isSummary": true
          },
          {
            "id": "EvidenceVariable.characteristic.usageContext",
            "path": "EvidenceVariable.characteristic.usageContext",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ]
          },
          {
            "id": "EvidenceVariable.characteristic.exclude",
            "path": "EvidenceVariable.characteristic.exclude",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "False"
          },
          {
            "id": "EvidenceVariable.characteristic.participantEffective[x]",
            "path": "EvidenceVariable.characteristic.participantEffective[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Duration"
              },
              {
                "code": "Timing"
              }
            ]
          },
          {
            "id": "EvidenceVariable.characteristic.timeFromStart",
            "path": "EvidenceVariable.characteristic.timeFromStart",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "EvidenceVariable.characteristic.groupMeasure",
            "path": "EvidenceVariable.characteristic.groupMeasure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupMeasure"
                }
              ],
              "strength": "required",
              "description": "Possible group measure aggregates (E.g. Mean, Median).",
              "valueSet": "http://hl7.org/fhir/ValueSet/group-measure|4.0.1"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ExampleScenario",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ExampleScenario",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Conformance"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ExampleScenario",
      "version": "4.0.1",
      "name": "ExampleScenario",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ExampleScenario",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ExampleScenario",
            "path": "ExampleScenario",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "esc-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.id",
            "path": "ExampleScenario.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.meta",
            "path": "ExampleScenario.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.implicitRules",
            "path": "ExampleScenario.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ExampleScenario.language",
            "path": "ExampleScenario.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ExampleScenario.text",
            "path": "ExampleScenario.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.contained",
            "path": "ExampleScenario.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.extension",
            "path": "ExampleScenario.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.modifierExtension",
            "path": "ExampleScenario.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ExampleScenario.url",
            "path": "ExampleScenario.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.identifier",
            "path": "ExampleScenario.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this example scenario outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.version",
            "path": "ExampleScenario.version",
            "comment": "There may be different example scenario instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the example scenario with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.name",
            "path": "ExampleScenario.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.status",
            "path": "ExampleScenario.status",
            "comment": "Allows filtering of example scenarios that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ExampleScenario.experimental",
            "path": "ExampleScenario.experimental",
            "comment": "Allows filtering of example scenarios that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.date",
            "path": "ExampleScenario.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the example scenario. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.publisher",
            "path": "ExampleScenario.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the example scenario is the organization or individual primarily responsible for the maintenance and upkeep of the example scenario. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the example scenario. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.contact",
            "path": "ExampleScenario.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.useContext",
            "path": "ExampleScenario.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.jurisdiction",
            "path": "ExampleScenario.jurisdiction",
            "comment": "It may be possible for the example scenario to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ExampleScenario.copyright",
            "path": "ExampleScenario.copyright",
            "comment": "nullFrequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.purpose",
            "path": "ExampleScenario.purpose",
            "comment": "This element does not describe the usage of the example scenario. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this example scenario.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.actor",
            "path": "ExampleScenario.actor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.actor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.actor.id",
            "path": "ExampleScenario.actor.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.actor.extension",
            "path": "ExampleScenario.actor.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.actor.modifierExtension",
            "path": "ExampleScenario.actor.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExampleScenario.actor.actorId",
            "path": "ExampleScenario.actor.actorId",
            "comment": "should this be called ID or acronym?",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.actor.actorId",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.actor.type",
            "path": "ExampleScenario.actor.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.actor.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ExampleScenarioActorType"
                }
              ],
              "strength": "required",
              "description": "The type of actor - system or human.",
              "valueSet": "http://hl7.org/fhir/ValueSet/examplescenario-actor-type|4.0.1"
            }
          },
          {
            "id": "ExampleScenario.actor.name",
            "path": "ExampleScenario.actor.name",
            "comment": "Cardinality: is name and description 1..1?",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.actor.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.actor.description",
            "path": "ExampleScenario.actor.description",
            "comment": "Cardinality: is name and description 1..1?",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.actor.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance",
            "path": "ExampleScenario.instance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.instance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.id",
            "path": "ExampleScenario.instance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.extension",
            "path": "ExampleScenario.instance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.modifierExtension",
            "path": "ExampleScenario.instance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExampleScenario.instance.resourceId",
            "path": "ExampleScenario.instance.resourceId",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.instance.resourceId",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.resourceType",
            "path": "ExampleScenario.instance.resourceType",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.instance.resourceType",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRResourceType"
                }
              ],
              "strength": "required",
              "description": "The type of resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "ExampleScenario.instance.name",
            "path": "ExampleScenario.instance.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.instance.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.description",
            "path": "ExampleScenario.instance.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.instance.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.version",
            "path": "ExampleScenario.instance.version",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.instance.version",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.version.id",
            "path": "ExampleScenario.instance.version.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.version.extension",
            "path": "ExampleScenario.instance.version.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.version.modifierExtension",
            "path": "ExampleScenario.instance.version.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExampleScenario.instance.version.versionId",
            "path": "ExampleScenario.instance.version.versionId",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.instance.version.versionId",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.version.description",
            "path": "ExampleScenario.instance.version.description",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.instance.version.description",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.containedInstance",
            "path": "ExampleScenario.instance.containedInstance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.instance.containedInstance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.containedInstance.id",
            "path": "ExampleScenario.instance.containedInstance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.containedInstance.extension",
            "path": "ExampleScenario.instance.containedInstance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.containedInstance.modifierExtension",
            "path": "ExampleScenario.instance.containedInstance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExampleScenario.instance.containedInstance.resourceId",
            "path": "ExampleScenario.instance.containedInstance.resourceId",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.instance.containedInstance.resourceId",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.instance.containedInstance.versionId",
            "path": "ExampleScenario.instance.containedInstance.versionId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.instance.containedInstance.versionId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process",
            "path": "ExampleScenario.process",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.process",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.id",
            "path": "ExampleScenario.process.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.extension",
            "path": "ExampleScenario.process.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.modifierExtension",
            "path": "ExampleScenario.process.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExampleScenario.process.title",
            "path": "ExampleScenario.process.title",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.title",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExampleScenario.process.description",
            "path": "ExampleScenario.process.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.preConditions",
            "path": "ExampleScenario.process.preConditions",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.preConditions",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.postConditions",
            "path": "ExampleScenario.process.postConditions",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.postConditions",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step",
            "path": "ExampleScenario.process.step",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.process.step",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.id",
            "path": "ExampleScenario.process.step.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.extension",
            "path": "ExampleScenario.process.step.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.modifierExtension",
            "path": "ExampleScenario.process.step.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExampleScenario.process.step.process",
            "path": "ExampleScenario.process.step.process",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.process.step.process",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ExampleScenario.process",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.pause",
            "path": "ExampleScenario.process.step.pause",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.pause",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation",
            "path": "ExampleScenario.process.step.operation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.id",
            "path": "ExampleScenario.process.step.operation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.extension",
            "path": "ExampleScenario.process.step.operation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.modifierExtension",
            "path": "ExampleScenario.process.step.operation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExampleScenario.process.step.operation.number",
            "path": "ExampleScenario.process.step.operation.number",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation.number",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.type",
            "path": "ExampleScenario.process.step.operation.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.name",
            "path": "ExampleScenario.process.step.operation.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.initiator",
            "path": "ExampleScenario.process.step.operation.initiator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation.initiator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.receiver",
            "path": "ExampleScenario.process.step.operation.receiver",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation.receiver",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.description",
            "path": "ExampleScenario.process.step.operation.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.initiatorActive",
            "path": "ExampleScenario.process.step.operation.initiatorActive",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation.initiatorActive",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.receiverActive",
            "path": "ExampleScenario.process.step.operation.receiverActive",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation.receiverActive",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.request",
            "path": "ExampleScenario.process.step.operation.request",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation.request",
              "min": 0,
              "max": "1"
            },
            "contentReference": "#ExampleScenario.instance.containedInstance",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.operation.response",
            "path": "ExampleScenario.process.step.operation.response",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.operation.response",
              "min": 0,
              "max": "1"
            },
            "contentReference": "#ExampleScenario.instance.containedInstance",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.alternative",
            "path": "ExampleScenario.process.step.alternative",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.process.step.alternative",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.alternative.id",
            "path": "ExampleScenario.process.step.alternative.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.alternative.extension",
            "path": "ExampleScenario.process.step.alternative.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.alternative.modifierExtension",
            "path": "ExampleScenario.process.step.alternative.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExampleScenario.process.step.alternative.title",
            "path": "ExampleScenario.process.step.alternative.title",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.alternative.title",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.alternative.description",
            "path": "ExampleScenario.process.step.alternative.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExampleScenario.process.step.alternative.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.process.step.alternative.step",
            "path": "ExampleScenario.process.step.alternative.step",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.process.step.alternative.step",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ExampleScenario.process.step",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExampleScenario.workflow",
            "path": "ExampleScenario.workflow",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExampleScenario.workflow",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ExampleScenario"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ExampleScenario",
            "path": "ExampleScenario",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "esc-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "ExampleScenario.url",
            "path": "ExampleScenario.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExampleScenario.identifier",
            "path": "ExampleScenario.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this example scenario outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExampleScenario.version",
            "path": "ExampleScenario.version",
            "comment": "There may be different example scenario instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the example scenario with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExampleScenario.name",
            "path": "ExampleScenario.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "ExampleScenario.status",
            "path": "ExampleScenario.status",
            "comment": "Allows filtering of example scenarios that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ExampleScenario.experimental",
            "path": "ExampleScenario.experimental",
            "comment": "Allows filtering of example scenarios that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExampleScenario.date",
            "path": "ExampleScenario.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the example scenario. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExampleScenario.publisher",
            "path": "ExampleScenario.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the example scenario is the organization or individual primarily responsible for the maintenance and upkeep of the example scenario. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the example scenario. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExampleScenario.contact",
            "path": "ExampleScenario.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExampleScenario.useContext",
            "path": "ExampleScenario.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExampleScenario.jurisdiction",
            "path": "ExampleScenario.jurisdiction",
            "comment": "It may be possible for the example scenario to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ExampleScenario.copyright",
            "path": "ExampleScenario.copyright",
            "comment": "nullFrequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ExampleScenario.purpose",
            "path": "ExampleScenario.purpose",
            "comment": "This element does not describe the usage of the example scenario. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this example scenario.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ExampleScenario.actor",
            "path": "ExampleScenario.actor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExampleScenario.actor.actorId",
            "path": "ExampleScenario.actor.actorId",
            "comment": "should this be called ID or acronym?",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.actor.type",
            "path": "ExampleScenario.actor.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ExampleScenarioActorType"
                }
              ],
              "strength": "required",
              "description": "The type of actor - system or human.",
              "valueSet": "http://hl7.org/fhir/ValueSet/examplescenario-actor-type|4.0.1"
            }
          },
          {
            "id": "ExampleScenario.actor.name",
            "path": "ExampleScenario.actor.name",
            "comment": "Cardinality: is name and description 1..1?",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.actor.description",
            "path": "ExampleScenario.actor.description",
            "comment": "Cardinality: is name and description 1..1?",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ExampleScenario.instance",
            "path": "ExampleScenario.instance",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExampleScenario.instance.resourceId",
            "path": "ExampleScenario.instance.resourceId",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.instance.resourceType",
            "path": "ExampleScenario.instance.resourceType",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRResourceType"
                }
              ],
              "strength": "required",
              "description": "The type of resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "ExampleScenario.instance.name",
            "path": "ExampleScenario.instance.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.instance.description",
            "path": "ExampleScenario.instance.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ExampleScenario.instance.version",
            "path": "ExampleScenario.instance.version",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExampleScenario.instance.version.versionId",
            "path": "ExampleScenario.instance.version.versionId",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.instance.version.description",
            "path": "ExampleScenario.instance.version.description",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ExampleScenario.instance.containedInstance",
            "path": "ExampleScenario.instance.containedInstance",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExampleScenario.instance.containedInstance.resourceId",
            "path": "ExampleScenario.instance.containedInstance.resourceId",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.instance.containedInstance.versionId",
            "path": "ExampleScenario.instance.containedInstance.versionId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.process",
            "path": "ExampleScenario.process",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.title",
            "path": "ExampleScenario.process.title",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExampleScenario.process.description",
            "path": "ExampleScenario.process.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.preConditions",
            "path": "ExampleScenario.process.preConditions",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.postConditions",
            "path": "ExampleScenario.process.postConditions",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step",
            "path": "ExampleScenario.process.step",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.process",
            "path": "ExampleScenario.process.step.process",
            "min": 0,
            "max": "*",
            "contentReference": "#ExampleScenario.process"
          },
          {
            "id": "ExampleScenario.process.step.pause",
            "path": "ExampleScenario.process.step.pause",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.operation",
            "path": "ExampleScenario.process.step.operation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.operation.number",
            "path": "ExampleScenario.process.step.operation.number",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.operation.type",
            "path": "ExampleScenario.process.step.operation.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.operation.name",
            "path": "ExampleScenario.process.step.operation.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.operation.initiator",
            "path": "ExampleScenario.process.step.operation.initiator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.operation.receiver",
            "path": "ExampleScenario.process.step.operation.receiver",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.operation.description",
            "path": "ExampleScenario.process.step.operation.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.operation.initiatorActive",
            "path": "ExampleScenario.process.step.operation.initiatorActive",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.operation.receiverActive",
            "path": "ExampleScenario.process.step.operation.receiverActive",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.operation.request",
            "path": "ExampleScenario.process.step.operation.request",
            "min": 0,
            "max": "1",
            "contentReference": "#ExampleScenario.instance.containedInstance"
          },
          {
            "id": "ExampleScenario.process.step.operation.response",
            "path": "ExampleScenario.process.step.operation.response",
            "min": 0,
            "max": "1",
            "contentReference": "#ExampleScenario.instance.containedInstance"
          },
          {
            "id": "ExampleScenario.process.step.alternative",
            "path": "ExampleScenario.process.step.alternative",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.alternative.title",
            "path": "ExampleScenario.process.step.alternative.title",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.alternative.description",
            "path": "ExampleScenario.process.step.alternative.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ExampleScenario.process.step.alternative.step",
            "path": "ExampleScenario.process.step.alternative.step",
            "min": 0,
            "max": "*",
            "contentReference": "#ExampleScenario.process.step"
          },
          {
            "id": "ExampleScenario.workflow",
            "path": "ExampleScenario.workflow",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ExampleScenario"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ExplanationOfBenefit",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.General"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit",
      "version": "4.0.1",
      "name": "ExplanationOfBenefit",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ExplanationOfBenefit",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ExplanationOfBenefit",
            "path": "ExplanationOfBenefit",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.id",
            "path": "ExplanationOfBenefit.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.meta",
            "path": "ExplanationOfBenefit.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.implicitRules",
            "path": "ExplanationOfBenefit.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.language",
            "path": "ExplanationOfBenefit.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ExplanationOfBenefit.text",
            "path": "ExplanationOfBenefit.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.contained",
            "path": "ExplanationOfBenefit.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.extension",
            "path": "ExplanationOfBenefit.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.modifierExtension",
            "path": "ExplanationOfBenefit.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.identifier",
            "path": "ExplanationOfBenefit.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.status",
            "path": "ExplanationOfBenefit.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ExplanationOfBenefitStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/explanationofbenefit-status|4.0.1"
            }
          },
          {
            "id": "ExplanationOfBenefit.type",
            "path": "ExplanationOfBenefit.type",
            "comment": "The majority of jurisdictions use: oral, pharmacy, vision, professional and institutional, or variants on those terms, as the general styles of claims. The valueset is extensible to accommodate other jurisdictional requirements.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimType"
                }
              ],
              "strength": "extensible",
              "description": "The type or discipline-style of the claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-type"
            }
          },
          {
            "id": "ExplanationOfBenefit.subType",
            "path": "ExplanationOfBenefit.subType",
            "comment": "This may contain the local bill type codes such as the US UB-04 bill type code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.subType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimSubType"
                }
              ],
              "strength": "example",
              "description": "A more granular claim typecode.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-subtype"
            }
          },
          {
            "id": "ExplanationOfBenefit.use",
            "path": "ExplanationOfBenefit.use",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.use",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Use"
                }
              ],
              "strength": "required",
              "description": "Complete, proposed, exploratory, other.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-use|4.0.1"
            }
          },
          {
            "id": "ExplanationOfBenefit.patient",
            "path": "ExplanationOfBenefit.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.billablePeriod",
            "path": "ExplanationOfBenefit.billablePeriod",
            "comment": "Typically this would be today or in the past for a claim, and today or in the future for preauthorizations and prodeterminations. Typically line item dates of service should fall within the billing period if one is specified.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.billablePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.created",
            "path": "ExplanationOfBenefit.created",
            "comment": "This field is independent of the date of creation of the resource as it may reflect the creation date of a source document prior to digitization. Typically for claims all services must be completed as of this date.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.created",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.enterer",
            "path": "ExplanationOfBenefit.enterer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.enterer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.insurer",
            "path": "ExplanationOfBenefit.insurer",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.insurer",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.provider",
            "path": "ExplanationOfBenefit.provider",
            "comment": "Typically this field would be 1..1 where this party is responsible for the claim but not necessarily professionally responsible for the provision of the individual products and services listed below.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.provider",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.priority",
            "path": "ExplanationOfBenefit.priority",
            "comment": "If a claim processor is unable to complete the processing as per the priority then they should generate and error and not process the request.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcessPriority"
                }
              ],
              "strength": "example",
              "description": "The timeliness with which processing is required: stat, normal, deferred.",
              "valueSet": "http://terminology.hl7.org/CodeSystem/processpriority"
            }
          },
          {
            "id": "ExplanationOfBenefit.fundsReserveRequested",
            "path": "ExplanationOfBenefit.fundsReserveRequested",
            "comment": "This field is only used for preauthorizations.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.fundsReserveRequested",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FundsReserve"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "For whom funds are to be reserved: (Patient, Provider, None).",
              "valueSet": "http://hl7.org/fhir/ValueSet/fundsreserve"
            }
          },
          {
            "id": "ExplanationOfBenefit.fundsReserve",
            "path": "ExplanationOfBenefit.fundsReserve",
            "comment": "Fund would be release by a future claim quoting the preAuthRef of this response. Examples of values include: provider, patient, none.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.fundsReserve",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FundsReserve"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "For whom funds are to be reserved: (Patient, Provider, None).",
              "valueSet": "http://hl7.org/fhir/ValueSet/fundsreserve"
            }
          },
          {
            "id": "ExplanationOfBenefit.related",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "RelatedClaim"
              }
            ],
            "path": "ExplanationOfBenefit.related",
            "comment": "For example,  for the original treatment and follow-up exams.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.related",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.related.id",
            "path": "ExplanationOfBenefit.related.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.related.extension",
            "path": "ExplanationOfBenefit.related.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.related.modifierExtension",
            "path": "ExplanationOfBenefit.related.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.related.claim",
            "path": "ExplanationOfBenefit.related.claim",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.related.claim",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Claim"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.related.relationship",
            "path": "ExplanationOfBenefit.related.relationship",
            "comment": "For example, prior claim or umbrella.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.related.relationship",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RelatedClaimRelationship"
                }
              ],
              "strength": "example",
              "description": "Relationship of this claim to a related Claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/related-claim-relationship"
            }
          },
          {
            "id": "ExplanationOfBenefit.related.reference",
            "path": "ExplanationOfBenefit.related.reference",
            "comment": "For example, Property/Casualty insurer claim number or Workers Compensation case number.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.related.reference",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.prescription",
            "path": "ExplanationOfBenefit.prescription",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.prescription",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.originalPrescription",
            "path": "ExplanationOfBenefit.originalPrescription",
            "comment": "For example, a physician may prescribe a medication which the pharmacy determines is contraindicated, or for which the patient has an intolerance, and therefor issues a new prescription for an alternate medication which has the same therapeutic intent. The prescription from the pharmacy becomes the 'prescription' and that from the physician becomes the 'original prescription'.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.originalPrescription",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.payee",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Payee"
              }
            ],
            "path": "ExplanationOfBenefit.payee",
            "comment": "Often providers agree to receive the benefits payable to reduce the near-term costs to the patient. The insurer may decline to pay the provider and may choose to pay the subscriber instead.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.payee",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.payee.id",
            "path": "ExplanationOfBenefit.payee.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.payee.extension",
            "path": "ExplanationOfBenefit.payee.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.payee.modifierExtension",
            "path": "ExplanationOfBenefit.payee.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.payee.type",
            "path": "ExplanationOfBenefit.payee.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.payee.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PayeeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "A code for the party to be reimbursed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payeetype"
            }
          },
          {
            "id": "ExplanationOfBenefit.payee.party",
            "path": "ExplanationOfBenefit.payee.party",
            "comment": "Not required if the payee is 'subscriber' or 'provider'.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.payee.party",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.referral",
            "path": "ExplanationOfBenefit.referral",
            "comment": "The referral resource which lists the date, practitioner, reason and other supporting information.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.referral",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.facility",
            "path": "ExplanationOfBenefit.facility",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.facility",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.claim",
            "path": "ExplanationOfBenefit.claim",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.claim",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Claim"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.claimResponse",
            "path": "ExplanationOfBenefit.claimResponse",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.claimResponse",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.outcome",
            "path": "ExplanationOfBenefit.outcome",
            "comment": "The resource may be used to indicate that: the request has been held (queued) for processing; that it has been processed and errors found (error); that no errors were found and that some of the adjudication has been undertaken (partial) or that all of the adjudication has been undertaken (complete).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.outcome",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RemittanceOutcome"
                }
              ],
              "strength": "required",
              "description": "The result of the claim processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1"
            }
          },
          {
            "id": "ExplanationOfBenefit.disposition",
            "path": "ExplanationOfBenefit.disposition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.disposition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.preAuthRef",
            "path": "ExplanationOfBenefit.preAuthRef",
            "comment": "This value is only present on preauthorization adjudications.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.preAuthRef",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.preAuthRefPeriod",
            "path": "ExplanationOfBenefit.preAuthRefPeriod",
            "comment": "This value is only present on preauthorization adjudications.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.preAuthRefPeriod",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.careTeam",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "CareTeam"
              }
            ],
            "path": "ExplanationOfBenefit.careTeam",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.careTeam",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.careTeam.id",
            "path": "ExplanationOfBenefit.careTeam.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.careTeam.extension",
            "path": "ExplanationOfBenefit.careTeam.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.careTeam.modifierExtension",
            "path": "ExplanationOfBenefit.careTeam.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.careTeam.sequence",
            "path": "ExplanationOfBenefit.careTeam.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.careTeam.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.careTeam.provider",
            "path": "ExplanationOfBenefit.careTeam.provider",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.careTeam.provider",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.careTeam.responsible",
            "path": "ExplanationOfBenefit.careTeam.responsible",
            "comment": "Responsible might not be required when there is only a single provider listed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.careTeam.responsible",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.careTeam.role",
            "path": "ExplanationOfBenefit.careTeam.role",
            "comment": "Role might not be required when there is only a single provider listed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.careTeam.role",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamRole"
                }
              ],
              "strength": "example",
              "description": "The role codes for the care team members.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-careteamrole"
            }
          },
          {
            "id": "ExplanationOfBenefit.careTeam.qualification",
            "path": "ExplanationOfBenefit.careTeam.qualification",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.careTeam.qualification",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProviderQualification"
                }
              ],
              "strength": "example",
              "description": "Provider professional qualifications.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provider-qualification"
            }
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SupportingInformation"
              }
            ],
            "path": "ExplanationOfBenefit.supportingInfo",
            "comment": "Often there are multiple jurisdiction specific valuesets which are required.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.supportingInfo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.id",
            "path": "ExplanationOfBenefit.supportingInfo.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.extension",
            "path": "ExplanationOfBenefit.supportingInfo.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.modifierExtension",
            "path": "ExplanationOfBenefit.supportingInfo.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.sequence",
            "path": "ExplanationOfBenefit.supportingInfo.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.supportingInfo.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.category",
            "path": "ExplanationOfBenefit.supportingInfo.category",
            "comment": "This may contain a category for the local bill type codes.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.supportingInfo.category",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InformationCategory"
                }
              ],
              "strength": "example",
              "description": "The valuset used for additional information category codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-informationcategory"
            }
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.code",
            "path": "ExplanationOfBenefit.supportingInfo.code",
            "comment": "This may contain the local bill type codes such as the US UB-04 bill type code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.supportingInfo.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InformationCode"
                }
              ],
              "strength": "example",
              "description": "The valuset used for additional information codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-exception"
            }
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.timing[x]",
            "path": "ExplanationOfBenefit.supportingInfo.timing[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.supportingInfo.timing[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.value[x]",
            "path": "ExplanationOfBenefit.supportingInfo.value[x]",
            "comment": "Could be used to provide references to other resources, document. For example, could contain a PDF in an Attachment of the Police Report for an Accident.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.supportingInfo.value[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "string"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.reason",
            "path": "ExplanationOfBenefit.supportingInfo.reason",
            "comment": "For example: the reason for the additional stay, or why a tooth is  missing.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.supportingInfo.reason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MissingReason"
                }
              ],
              "strength": "example",
              "description": "Reason codes for the missing teeth.",
              "valueSet": "http://hl7.org/fhir/ValueSet/missing-tooth-reason"
            }
          },
          {
            "id": "ExplanationOfBenefit.diagnosis",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Diagnosis"
              }
            ],
            "path": "ExplanationOfBenefit.diagnosis",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.diagnosis",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.id",
            "path": "ExplanationOfBenefit.diagnosis.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.extension",
            "path": "ExplanationOfBenefit.diagnosis.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.modifierExtension",
            "path": "ExplanationOfBenefit.diagnosis.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.sequence",
            "path": "ExplanationOfBenefit.diagnosis.sequence",
            "comment": "Diagnosis are presented in list order to their expected importance: primary, secondary, etc.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.diagnosis.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.diagnosis[x]",
            "path": "ExplanationOfBenefit.diagnosis.diagnosis[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.diagnosis.diagnosis[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ICD10"
                }
              ],
              "strength": "example",
              "description": "ICD10 Diagnostic codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10"
            }
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.type",
            "path": "ExplanationOfBenefit.diagnosis.type",
            "comment": "For example: admitting, primary, secondary, discharge.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.diagnosis.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisType"
                }
              ],
              "strength": "example",
              "description": "The type of the diagnosis: admitting, principal, discharge.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosistype"
            }
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.onAdmission",
            "path": "ExplanationOfBenefit.diagnosis.onAdmission",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.diagnosis.onAdmission",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisOnAdmission"
                }
              ],
              "strength": "example",
              "description": "Present on admission.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosis-on-admission"
            }
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.packageCode",
            "path": "ExplanationOfBenefit.diagnosis.packageCode",
            "comment": "For example, DRG (Diagnosis Related Group) or a bundled billing code. A patient may have a diagnosis of a Myocardio-infarction and a DRG for HeartAttack would assigned. The Claim item (and possible subsequent claims) would refer to the DRG for those line items that were for services related to the heart attack event.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.diagnosis.packageCode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisRelatedGroup"
                }
              ],
              "strength": "example",
              "description": "The DRG codes associated with the diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosisrelatedgroup"
            }
          },
          {
            "id": "ExplanationOfBenefit.procedure",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Procedure"
              }
            ],
            "path": "ExplanationOfBenefit.procedure",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.procedure",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.procedure.id",
            "path": "ExplanationOfBenefit.procedure.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.procedure.extension",
            "path": "ExplanationOfBenefit.procedure.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.procedure.modifierExtension",
            "path": "ExplanationOfBenefit.procedure.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.procedure.sequence",
            "path": "ExplanationOfBenefit.procedure.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.procedure.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.procedure.type",
            "path": "ExplanationOfBenefit.procedure.type",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.procedure.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureType"
                }
              ],
              "strength": "example",
              "description": "Example procedure type codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-procedure-type"
            }
          },
          {
            "id": "ExplanationOfBenefit.procedure.date",
            "path": "ExplanationOfBenefit.procedure.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.procedure.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.procedure.procedure[x]",
            "path": "ExplanationOfBenefit.procedure.procedure[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.procedure.procedure[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ICD10_Procedures"
                }
              ],
              "strength": "example",
              "description": "ICD10 Procedure codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10-procedures"
            }
          },
          {
            "id": "ExplanationOfBenefit.procedure.udi",
            "path": "ExplanationOfBenefit.procedure.udi",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.procedure.udi",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.precedence",
            "path": "ExplanationOfBenefit.precedence",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.precedence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.insurance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Insurance"
              }
            ],
            "path": "ExplanationOfBenefit.insurance",
            "comment": "All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'Coverage.subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.insurance",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.insurance.id",
            "path": "ExplanationOfBenefit.insurance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.insurance.extension",
            "path": "ExplanationOfBenefit.insurance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.insurance.modifierExtension",
            "path": "ExplanationOfBenefit.insurance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.insurance.focal",
            "path": "ExplanationOfBenefit.insurance.focal",
            "comment": "A patient may (will) have multiple insurance policies which provide reimbursement for healthcare services and products. For example, a person may also be covered by their spouse's policy and both appear in the list (and may be from the same insurer). This flag will be set to true for only one of the listed policies and that policy will be used for adjudicating this claim. Other claims would be created to request adjudication against the other listed policies.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.insurance.focal",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.insurance.coverage",
            "path": "ExplanationOfBenefit.insurance.coverage",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.insurance.coverage",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.insurance.preAuthRef",
            "path": "ExplanationOfBenefit.insurance.preAuthRef",
            "comment": "This value is an alphanumeric string that may be provided over the phone, via text, via paper, or within a ClaimResponse resource and is not a FHIR Identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.insurance.preAuthRef",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.accident",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Accident"
              }
            ],
            "path": "ExplanationOfBenefit.accident",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.accident",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.accident.id",
            "path": "ExplanationOfBenefit.accident.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.accident.extension",
            "path": "ExplanationOfBenefit.accident.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.accident.modifierExtension",
            "path": "ExplanationOfBenefit.accident.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.accident.date",
            "path": "ExplanationOfBenefit.accident.date",
            "comment": "The date of the accident has to precede the dates of the products and services but within a reasonable timeframe.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.accident.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.accident.type",
            "path": "ExplanationOfBenefit.accident.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.accident.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AccidentType"
                }
              ],
              "strength": "extensible",
              "description": "Type of accident: work place, auto, etc.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActIncidentCode"
            }
          },
          {
            "id": "ExplanationOfBenefit.accident.location[x]",
            "path": "ExplanationOfBenefit.accident.location[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.accident.location[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Item"
              }
            ],
            "path": "ExplanationOfBenefit.item",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.id",
            "path": "ExplanationOfBenefit.item.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.extension",
            "path": "ExplanationOfBenefit.item.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.modifierExtension",
            "path": "ExplanationOfBenefit.item.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.item.sequence",
            "path": "ExplanationOfBenefit.item.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.careTeamSequence",
            "path": "ExplanationOfBenefit.item.careTeamSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.careTeamSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.diagnosisSequence",
            "path": "ExplanationOfBenefit.item.diagnosisSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.diagnosisSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.procedureSequence",
            "path": "ExplanationOfBenefit.item.procedureSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.procedureSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.informationSequence",
            "path": "ExplanationOfBenefit.item.informationSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.informationSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.revenue",
            "path": "ExplanationOfBenefit.item.revenue",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.revenue",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.category",
            "path": "ExplanationOfBenefit.item.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision, oral-basic etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.productOrService",
            "path": "ExplanationOfBenefit.item.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.modifier",
            "path": "ExplanationOfBenefit.item.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.programCode",
            "path": "ExplanationOfBenefit.item.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.programCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.serviced[x]",
            "path": "ExplanationOfBenefit.item.serviced[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.serviced[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.location[x]",
            "path": "ExplanationOfBenefit.item.location[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.location[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServicePlace"
                }
              ],
              "strength": "example",
              "description": "Place where the service is rendered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-place"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.quantity",
            "path": "ExplanationOfBenefit.item.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.unitPrice",
            "path": "ExplanationOfBenefit.item.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.factor",
            "path": "ExplanationOfBenefit.item.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.net",
            "path": "ExplanationOfBenefit.item.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.udi",
            "path": "ExplanationOfBenefit.item.udi",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.udi",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.bodySite",
            "path": "ExplanationOfBenefit.item.bodySite",
            "comment": "For example: Providing a tooth code, allows an insurer to identify a provider performing a filling on a tooth that was previously removed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.bodySite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OralSites"
                }
              ],
              "strength": "example",
              "description": "The code for the teeth, quadrant, sextant and arch.",
              "valueSet": "http://hl7.org/fhir/ValueSet/tooth"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.subSite",
            "path": "ExplanationOfBenefit.item.subSite",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.subSite",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Surface"
                }
              ],
              "strength": "example",
              "description": "The code for the tooth surface and surface combinations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/surface"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.encounter",
            "path": "ExplanationOfBenefit.item.encounter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.encounter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.noteNumber",
            "path": "ExplanationOfBenefit.item.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Adjudication"
              }
            ],
            "path": "ExplanationOfBenefit.item.adjudication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.adjudication",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.id",
            "path": "ExplanationOfBenefit.item.adjudication.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.extension",
            "path": "ExplanationOfBenefit.item.adjudication.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.modifierExtension",
            "path": "ExplanationOfBenefit.item.adjudication.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.category",
            "path": "ExplanationOfBenefit.item.adjudication.category",
            "comment": "For example, codes indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.adjudication.category",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Adjudication"
                }
              ],
              "strength": "example",
              "description": "The adjudication codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.reason",
            "path": "ExplanationOfBenefit.item.adjudication.reason",
            "comment": "For example, may indicate that the funds for this benefit type have been exhausted.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.adjudication.reason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdjudicationReason"
                }
              ],
              "strength": "example",
              "description": "Adjudication reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication-reason"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.amount",
            "path": "ExplanationOfBenefit.item.adjudication.amount",
            "comment": "For example, amount submitted, eligible amount, co-payment, and benefit payable.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.adjudication.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.value",
            "path": "ExplanationOfBenefit.item.adjudication.value",
            "comment": "For example: eligible percentage or co-payment percentage.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.adjudication.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Detail"
              }
            ],
            "path": "ExplanationOfBenefit.item.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.id",
            "path": "ExplanationOfBenefit.item.detail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.extension",
            "path": "ExplanationOfBenefit.item.detail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.modifierExtension",
            "path": "ExplanationOfBenefit.item.detail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.item.detail.sequence",
            "path": "ExplanationOfBenefit.item.detail.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.revenue",
            "path": "ExplanationOfBenefit.item.detail.revenue",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.revenue",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.category",
            "path": "ExplanationOfBenefit.item.detail.category",
            "comment": "Examples include: Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision, oral-basic etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.productOrService",
            "path": "ExplanationOfBenefit.item.detail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.modifier",
            "path": "ExplanationOfBenefit.item.detail.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.programCode",
            "path": "ExplanationOfBenefit.item.detail.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.programCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.quantity",
            "path": "ExplanationOfBenefit.item.detail.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.unitPrice",
            "path": "ExplanationOfBenefit.item.detail.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.factor",
            "path": "ExplanationOfBenefit.item.detail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.net",
            "path": "ExplanationOfBenefit.item.detail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.udi",
            "path": "ExplanationOfBenefit.item.detail.udi",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.udi",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.noteNumber",
            "path": "ExplanationOfBenefit.item.detail.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.adjudication",
            "path": "ExplanationOfBenefit.item.detail.adjudication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.adjudication",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ExplanationOfBenefit.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SubDetail"
              }
            ],
            "path": "ExplanationOfBenefit.item.detail.subDetail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.id",
            "path": "ExplanationOfBenefit.item.detail.subDetail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.extension",
            "path": "ExplanationOfBenefit.item.detail.subDetail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.modifierExtension",
            "path": "ExplanationOfBenefit.item.detail.subDetail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.sequence",
            "path": "ExplanationOfBenefit.item.detail.subDetail.sequence",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.sequence",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.revenue",
            "path": "ExplanationOfBenefit.item.detail.subDetail.revenue",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.revenue",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.category",
            "path": "ExplanationOfBenefit.item.detail.subDetail.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision, oral-basic etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.productOrService",
            "path": "ExplanationOfBenefit.item.detail.subDetail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.modifier",
            "path": "ExplanationOfBenefit.item.detail.subDetail.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.programCode",
            "path": "ExplanationOfBenefit.item.detail.subDetail.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.programCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.quantity",
            "path": "ExplanationOfBenefit.item.detail.subDetail.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.unitPrice",
            "path": "ExplanationOfBenefit.item.detail.subDetail.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.factor",
            "path": "ExplanationOfBenefit.item.detail.subDetail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.net",
            "path": "ExplanationOfBenefit.item.detail.subDetail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.udi",
            "path": "ExplanationOfBenefit.item.detail.subDetail.udi",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.udi",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.noteNumber",
            "path": "ExplanationOfBenefit.item.detail.subDetail.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.adjudication",
            "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ExplanationOfBenefit.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "740;600"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItem"
              }
            ],
            "path": "ExplanationOfBenefit.addItem",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.id",
            "path": "ExplanationOfBenefit.addItem.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.extension",
            "path": "ExplanationOfBenefit.addItem.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.modifierExtension",
            "path": "ExplanationOfBenefit.addItem.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.addItem.itemSequence",
            "path": "ExplanationOfBenefit.addItem.itemSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.itemSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detailSequence",
            "path": "ExplanationOfBenefit.addItem.detailSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detailSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.subDetailSequence",
            "path": "ExplanationOfBenefit.addItem.subDetailSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.subDetailSequence",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.provider",
            "path": "ExplanationOfBenefit.addItem.provider",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.provider",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.productOrService",
            "path": "ExplanationOfBenefit.addItem.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.modifier",
            "path": "ExplanationOfBenefit.addItem.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.programCode",
            "path": "ExplanationOfBenefit.addItem.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.programCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.serviced[x]",
            "path": "ExplanationOfBenefit.addItem.serviced[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.serviced[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.location[x]",
            "path": "ExplanationOfBenefit.addItem.location[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.location[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServicePlace"
                }
              ],
              "strength": "example",
              "description": "Place where the service is rendered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-place"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.quantity",
            "path": "ExplanationOfBenefit.addItem.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.unitPrice",
            "path": "ExplanationOfBenefit.addItem.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.factor",
            "path": "ExplanationOfBenefit.addItem.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.net",
            "path": "ExplanationOfBenefit.addItem.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.bodySite",
            "path": "ExplanationOfBenefit.addItem.bodySite",
            "comment": "For example, providing a tooth code allows an insurer to identify a provider performing a filling on a tooth that was previously removed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.bodySite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OralSites"
                }
              ],
              "strength": "example",
              "description": "The code for the teeth, quadrant, sextant and arch.",
              "valueSet": "http://hl7.org/fhir/ValueSet/tooth"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.subSite",
            "path": "ExplanationOfBenefit.addItem.subSite",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.subSite",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Surface"
                }
              ],
              "strength": "example",
              "description": "The code for the tooth surface and surface combinations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/surface"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.noteNumber",
            "path": "ExplanationOfBenefit.addItem.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.adjudication",
            "path": "ExplanationOfBenefit.addItem.adjudication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.adjudication",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ExplanationOfBenefit.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "740;600"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItemDetail"
              }
            ],
            "path": "ExplanationOfBenefit.addItem.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.id",
            "path": "ExplanationOfBenefit.addItem.detail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.extension",
            "path": "ExplanationOfBenefit.addItem.detail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.modifierExtension",
            "path": "ExplanationOfBenefit.addItem.detail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.productOrService",
            "path": "ExplanationOfBenefit.addItem.detail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.modifier",
            "path": "ExplanationOfBenefit.addItem.detail.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.quantity",
            "path": "ExplanationOfBenefit.addItem.detail.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.unitPrice",
            "path": "ExplanationOfBenefit.addItem.detail.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.factor",
            "path": "ExplanationOfBenefit.addItem.detail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.net",
            "path": "ExplanationOfBenefit.addItem.detail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.noteNumber",
            "path": "ExplanationOfBenefit.addItem.detail.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.adjudication",
            "path": "ExplanationOfBenefit.addItem.detail.adjudication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.adjudication",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ExplanationOfBenefit.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "740;600"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItemDetailSubDetail"
              }
            ],
            "path": "ExplanationOfBenefit.addItem.detail.subDetail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.subDetail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.id",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.extension",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.modifierExtension",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.productOrService",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.subDetail.productOrService",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.modifier",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.subDetail.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.quantity",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.subDetail.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.unitPrice",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.unitPrice",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.subDetail.unitPrice",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.factor",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.subDetail.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.net",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.subDetail.net",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.noteNumber",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.noteNumber",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.subDetail.noteNumber",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.adjudication",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.adjudication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.addItem.detail.subDetail.adjudication",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ExplanationOfBenefit.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.adjudication",
            "path": "ExplanationOfBenefit.adjudication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.adjudication",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ExplanationOfBenefit.item.adjudication",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.total",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "'360;620"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Total"
              }
            ],
            "path": "ExplanationOfBenefit.total",
            "comment": "Totals for amounts submitted, co-pays, benefits payable etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.total",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.total.id",
            "path": "ExplanationOfBenefit.total.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.total.extension",
            "path": "ExplanationOfBenefit.total.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.total.modifierExtension",
            "path": "ExplanationOfBenefit.total.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.total.category",
            "path": "ExplanationOfBenefit.total.category",
            "comment": "For example, codes indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.total.category",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Adjudication"
                }
              ],
              "strength": "example",
              "description": "The adjudication codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication"
            }
          },
          {
            "id": "ExplanationOfBenefit.total.amount",
            "path": "ExplanationOfBenefit.total.amount",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.total.amount",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.payment",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "360;650"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Payment"
              }
            ],
            "path": "ExplanationOfBenefit.payment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.payment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.payment.id",
            "path": "ExplanationOfBenefit.payment.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.payment.extension",
            "path": "ExplanationOfBenefit.payment.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.payment.modifierExtension",
            "path": "ExplanationOfBenefit.payment.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.payment.type",
            "path": "ExplanationOfBenefit.payment.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.payment.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentType"
                }
              ],
              "strength": "example",
              "description": "The type (partial, complete) of the payment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-paymenttype"
            }
          },
          {
            "id": "ExplanationOfBenefit.payment.adjustment",
            "path": "ExplanationOfBenefit.payment.adjustment",
            "comment": "Insurers will deduct amounts owing from the provider (adjustment), such as a prior overpayment, from the amount owing to the provider (benefits payable) when payment is made to the provider.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.payment.adjustment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.payment.adjustmentReason",
            "path": "ExplanationOfBenefit.payment.adjustmentReason",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.payment.adjustmentReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentAdjustmentReason"
                }
              ],
              "strength": "example",
              "description": "Payment Adjustment reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payment-adjustment-reason"
            }
          },
          {
            "id": "ExplanationOfBenefit.payment.date",
            "path": "ExplanationOfBenefit.payment.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.payment.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.payment.amount",
            "path": "ExplanationOfBenefit.payment.amount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.payment.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.payment.identifier",
            "path": "ExplanationOfBenefit.payment.identifier",
            "comment": "For example: EFT number or check number.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.payment.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.formCode",
            "path": "ExplanationOfBenefit.formCode",
            "comment": "May be needed to identify specific jurisdictional forms.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.formCode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Forms"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "The forms codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/forms"
            }
          },
          {
            "id": "ExplanationOfBenefit.form",
            "path": "ExplanationOfBenefit.form",
            "comment": "Needed to permit insurers to include the actual form.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.form",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.processNote",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Note"
              }
            ],
            "path": "ExplanationOfBenefit.processNote",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.processNote",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.processNote.id",
            "path": "ExplanationOfBenefit.processNote.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.processNote.extension",
            "path": "ExplanationOfBenefit.processNote.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.processNote.modifierExtension",
            "path": "ExplanationOfBenefit.processNote.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.processNote.number",
            "path": "ExplanationOfBenefit.processNote.number",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.processNote.number",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.processNote.type",
            "path": "ExplanationOfBenefit.processNote.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.processNote.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NoteType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The presentation types of notes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/note-type|4.0.1"
            }
          },
          {
            "id": "ExplanationOfBenefit.processNote.text",
            "path": "ExplanationOfBenefit.processNote.text",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.processNote.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.processNote.language",
            "path": "ExplanationOfBenefit.processNote.language",
            "comment": "Only required if the language is different from the resource language.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.processNote.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitPeriod",
            "path": "ExplanationOfBenefit.benefitPeriod",
            "comment": "Not applicable when use=claim.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "BenefitBalance"
              }
            ],
            "path": "ExplanationOfBenefit.benefitBalance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.id",
            "path": "ExplanationOfBenefit.benefitBalance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.extension",
            "path": "ExplanationOfBenefit.benefitBalance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.modifierExtension",
            "path": "ExplanationOfBenefit.benefitBalance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.category",
            "path": "ExplanationOfBenefit.benefitBalance.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.category",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision, oral-basic etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.excluded",
            "path": "ExplanationOfBenefit.benefitBalance.excluded",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.excluded",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.name",
            "path": "ExplanationOfBenefit.benefitBalance.name",
            "comment": "For example: MED01, or DENT2.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.description",
            "path": "ExplanationOfBenefit.benefitBalance.description",
            "comment": "For example, 'DENT2 covers 100% of basic, 50% of major but excludes Ortho, Implants and Cosmetic services'.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.network",
            "path": "ExplanationOfBenefit.benefitBalance.network",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.network",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitNetwork"
                }
              ],
              "strength": "example",
              "description": "Code to classify in or out of network services.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-network"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.unit",
            "path": "ExplanationOfBenefit.benefitBalance.unit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.unit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitUnit"
                }
              ],
              "strength": "example",
              "description": "Unit covered/serviced - individual or family.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-unit"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.term",
            "path": "ExplanationOfBenefit.benefitBalance.term",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.term",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitTerm"
                }
              ],
              "strength": "example",
              "description": "Coverage unit - annual, lifetime.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-term"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Benefit"
              }
            ],
            "path": "ExplanationOfBenefit.benefitBalance.financial",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.financial",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial.id",
            "path": "ExplanationOfBenefit.benefitBalance.financial.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial.extension",
            "path": "ExplanationOfBenefit.benefitBalance.financial.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial.modifierExtension",
            "path": "ExplanationOfBenefit.benefitBalance.financial.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial.type",
            "path": "ExplanationOfBenefit.benefitBalance.financial.type",
            "comment": "For example: deductible, visits, benefit amount.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.financial.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitType"
                }
              ],
              "strength": "example",
              "description": "Deductable, visits, co-pay, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-type"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial.allowed[x]",
            "path": "ExplanationOfBenefit.benefitBalance.financial.allowed[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.financial.allowed[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              },
              {
                "code": "string"
              },
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial.used[x]",
            "path": "ExplanationOfBenefit.benefitBalance.financial.used[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ExplanationOfBenefit.benefitBalance.financial.used[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              },
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ExplanationOfBenefit",
            "path": "ExplanationOfBenefit",
            "min": 0,
            "max": "*"
          },
          {
            "id": "ExplanationOfBenefit.identifier",
            "path": "ExplanationOfBenefit.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.status",
            "path": "ExplanationOfBenefit.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ExplanationOfBenefitStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/explanationofbenefit-status|4.0.1"
            }
          },
          {
            "id": "ExplanationOfBenefit.type",
            "path": "ExplanationOfBenefit.type",
            "comment": "The majority of jurisdictions use: oral, pharmacy, vision, professional and institutional, or variants on those terms, as the general styles of claims. The valueset is extensible to accommodate other jurisdictional requirements.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimType"
                }
              ],
              "strength": "extensible",
              "description": "The type or discipline-style of the claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-type"
            }
          },
          {
            "id": "ExplanationOfBenefit.subType",
            "path": "ExplanationOfBenefit.subType",
            "comment": "This may contain the local bill type codes such as the US UB-04 bill type code.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ClaimSubType"
                }
              ],
              "strength": "example",
              "description": "A more granular claim typecode.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-subtype"
            }
          },
          {
            "id": "ExplanationOfBenefit.use",
            "path": "ExplanationOfBenefit.use",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Use"
                }
              ],
              "strength": "required",
              "description": "Complete, proposed, exploratory, other.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-use|4.0.1"
            }
          },
          {
            "id": "ExplanationOfBenefit.patient",
            "path": "ExplanationOfBenefit.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.billablePeriod",
            "path": "ExplanationOfBenefit.billablePeriod",
            "comment": "Typically this would be today or in the past for a claim, and today or in the future for preauthorizations and prodeterminations. Typically line item dates of service should fall within the billing period if one is specified.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.created",
            "path": "ExplanationOfBenefit.created",
            "comment": "This field is independent of the date of creation of the resource as it may reflect the creation date of a source document prior to digitization. Typically for claims all services must be completed as of this date.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.enterer",
            "path": "ExplanationOfBenefit.enterer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.insurer",
            "path": "ExplanationOfBenefit.insurer",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.provider",
            "path": "ExplanationOfBenefit.provider",
            "comment": "Typically this field would be 1..1 where this party is responsible for the claim but not necessarily professionally responsible for the provision of the individual products and services listed below.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.priority",
            "path": "ExplanationOfBenefit.priority",
            "comment": "If a claim processor is unable to complete the processing as per the priority then they should generate and error and not process the request.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcessPriority"
                }
              ],
              "strength": "example",
              "description": "The timeliness with which processing is required: stat, normal, deferred.",
              "valueSet": "http://terminology.hl7.org/CodeSystem/processpriority"
            }
          },
          {
            "id": "ExplanationOfBenefit.fundsReserveRequested",
            "path": "ExplanationOfBenefit.fundsReserveRequested",
            "comment": "This field is only used for preauthorizations.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FundsReserve"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "For whom funds are to be reserved: (Patient, Provider, None).",
              "valueSet": "http://hl7.org/fhir/ValueSet/fundsreserve"
            }
          },
          {
            "id": "ExplanationOfBenefit.fundsReserve",
            "path": "ExplanationOfBenefit.fundsReserve",
            "comment": "Fund would be release by a future claim quoting the preAuthRef of this response. Examples of values include: provider, patient, none.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FundsReserve"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "For whom funds are to be reserved: (Patient, Provider, None).",
              "valueSet": "http://hl7.org/fhir/ValueSet/fundsreserve"
            }
          },
          {
            "id": "ExplanationOfBenefit.related",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "RelatedClaim"
              }
            ],
            "path": "ExplanationOfBenefit.related",
            "comment": "For example,  for the original treatment and follow-up exams.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.related.claim",
            "path": "ExplanationOfBenefit.related.claim",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Claim"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.related.relationship",
            "path": "ExplanationOfBenefit.related.relationship",
            "comment": "For example, prior claim or umbrella.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RelatedClaimRelationship"
                }
              ],
              "strength": "example",
              "description": "Relationship of this claim to a related Claim.",
              "valueSet": "http://hl7.org/fhir/ValueSet/related-claim-relationship"
            }
          },
          {
            "id": "ExplanationOfBenefit.related.reference",
            "path": "ExplanationOfBenefit.related.reference",
            "comment": "For example, Property/Casualty insurer claim number or Workers Compensation case number.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.prescription",
            "path": "ExplanationOfBenefit.prescription",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/VisionPrescription"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.originalPrescription",
            "path": "ExplanationOfBenefit.originalPrescription",
            "comment": "For example, a physician may prescribe a medication which the pharmacy determines is contraindicated, or for which the patient has an intolerance, and therefor issues a new prescription for an alternate medication which has the same therapeutic intent. The prescription from the pharmacy becomes the 'prescription' and that from the physician becomes the 'original prescription'.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.payee",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Payee"
              }
            ],
            "path": "ExplanationOfBenefit.payee",
            "comment": "Often providers agree to receive the benefits payable to reduce the near-term costs to the patient. The insurer may decline to pay the provider and may choose to pay the subscriber instead.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.payee.type",
            "path": "ExplanationOfBenefit.payee.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PayeeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "A code for the party to be reimbursed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payeetype"
            }
          },
          {
            "id": "ExplanationOfBenefit.payee.party",
            "path": "ExplanationOfBenefit.payee.party",
            "comment": "Not required if the payee is 'subscriber' or 'provider'.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.referral",
            "path": "ExplanationOfBenefit.referral",
            "comment": "The referral resource which lists the date, practitioner, reason and other supporting information.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.facility",
            "path": "ExplanationOfBenefit.facility",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.claim",
            "path": "ExplanationOfBenefit.claim",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Claim"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.claimResponse",
            "path": "ExplanationOfBenefit.claimResponse",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.outcome",
            "path": "ExplanationOfBenefit.outcome",
            "comment": "The resource may be used to indicate that: the request has been held (queued) for processing; that it has been processed and errors found (error); that no errors were found and that some of the adjudication has been undertaken (partial) or that all of the adjudication has been undertaken (complete).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RemittanceOutcome"
                }
              ],
              "strength": "required",
              "description": "The result of the claim processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1"
            }
          },
          {
            "id": "ExplanationOfBenefit.disposition",
            "path": "ExplanationOfBenefit.disposition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.preAuthRef",
            "path": "ExplanationOfBenefit.preAuthRef",
            "comment": "This value is only present on preauthorization adjudications.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.preAuthRefPeriod",
            "path": "ExplanationOfBenefit.preAuthRefPeriod",
            "comment": "This value is only present on preauthorization adjudications.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.careTeam",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "CareTeam"
              }
            ],
            "path": "ExplanationOfBenefit.careTeam",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.careTeam.sequence",
            "path": "ExplanationOfBenefit.careTeam.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.careTeam.provider",
            "path": "ExplanationOfBenefit.careTeam.provider",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.careTeam.responsible",
            "path": "ExplanationOfBenefit.careTeam.responsible",
            "comment": "Responsible might not be required when there is only a single provider listed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.careTeam.role",
            "path": "ExplanationOfBenefit.careTeam.role",
            "comment": "Role might not be required when there is only a single provider listed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CareTeamRole"
                }
              ],
              "strength": "example",
              "description": "The role codes for the care team members.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-careteamrole"
            }
          },
          {
            "id": "ExplanationOfBenefit.careTeam.qualification",
            "path": "ExplanationOfBenefit.careTeam.qualification",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProviderQualification"
                }
              ],
              "strength": "example",
              "description": "Provider professional qualifications.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provider-qualification"
            }
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SupportingInformation"
              }
            ],
            "path": "ExplanationOfBenefit.supportingInfo",
            "comment": "Often there are multiple jurisdiction specific valuesets which are required.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.sequence",
            "path": "ExplanationOfBenefit.supportingInfo.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.category",
            "path": "ExplanationOfBenefit.supportingInfo.category",
            "comment": "This may contain a category for the local bill type codes.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InformationCategory"
                }
              ],
              "strength": "example",
              "description": "The valuset used for additional information category codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-informationcategory"
            }
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.code",
            "path": "ExplanationOfBenefit.supportingInfo.code",
            "comment": "This may contain the local bill type codes such as the US UB-04 bill type code.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InformationCode"
                }
              ],
              "strength": "example",
              "description": "The valuset used for additional information codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-exception"
            }
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.timing[x]",
            "path": "ExplanationOfBenefit.supportingInfo.timing[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.value[x]",
            "path": "ExplanationOfBenefit.supportingInfo.value[x]",
            "comment": "Could be used to provide references to other resources, document. For example, could contain a PDF in an Attachment of the Police Report for an Accident.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "string"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.supportingInfo.reason",
            "path": "ExplanationOfBenefit.supportingInfo.reason",
            "comment": "For example: the reason for the additional stay, or why a tooth is  missing.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MissingReason"
                }
              ],
              "strength": "example",
              "description": "Reason codes for the missing teeth.",
              "valueSet": "http://hl7.org/fhir/ValueSet/missing-tooth-reason"
            }
          },
          {
            "id": "ExplanationOfBenefit.diagnosis",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Diagnosis"
              }
            ],
            "path": "ExplanationOfBenefit.diagnosis",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.sequence",
            "path": "ExplanationOfBenefit.diagnosis.sequence",
            "comment": "Diagnosis are presented in list order to their expected importance: primary, secondary, etc.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.diagnosis[x]",
            "path": "ExplanationOfBenefit.diagnosis.diagnosis[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ICD10"
                }
              ],
              "strength": "example",
              "description": "ICD10 Diagnostic codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10"
            }
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.type",
            "path": "ExplanationOfBenefit.diagnosis.type",
            "comment": "For example: admitting, primary, secondary, discharge.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisType"
                }
              ],
              "strength": "example",
              "description": "The type of the diagnosis: admitting, principal, discharge.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosistype"
            }
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.onAdmission",
            "path": "ExplanationOfBenefit.diagnosis.onAdmission",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisOnAdmission"
                }
              ],
              "strength": "example",
              "description": "Present on admission.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosis-on-admission"
            }
          },
          {
            "id": "ExplanationOfBenefit.diagnosis.packageCode",
            "path": "ExplanationOfBenefit.diagnosis.packageCode",
            "comment": "For example, DRG (Diagnosis Related Group) or a bundled billing code. A patient may have a diagnosis of a Myocardio-infarction and a DRG for HeartAttack would assigned. The Claim item (and possible subsequent claims) would refer to the DRG for those line items that were for services related to the heart attack event.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DiagnosisRelatedGroup"
                }
              ],
              "strength": "example",
              "description": "The DRG codes associated with the diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-diagnosisrelatedgroup"
            }
          },
          {
            "id": "ExplanationOfBenefit.procedure",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Procedure"
              }
            ],
            "path": "ExplanationOfBenefit.procedure",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.procedure.sequence",
            "path": "ExplanationOfBenefit.procedure.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.procedure.type",
            "path": "ExplanationOfBenefit.procedure.type",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureType"
                }
              ],
              "strength": "example",
              "description": "Example procedure type codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-procedure-type"
            }
          },
          {
            "id": "ExplanationOfBenefit.procedure.date",
            "path": "ExplanationOfBenefit.procedure.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.procedure.procedure[x]",
            "path": "ExplanationOfBenefit.procedure.procedure[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ICD10_Procedures"
                }
              ],
              "strength": "example",
              "description": "ICD10 Procedure codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/icd-10-procedures"
            }
          },
          {
            "id": "ExplanationOfBenefit.procedure.udi",
            "path": "ExplanationOfBenefit.procedure.udi",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.precedence",
            "path": "ExplanationOfBenefit.precedence",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.insurance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Insurance"
              }
            ],
            "path": "ExplanationOfBenefit.insurance",
            "comment": "All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local 'coordination of benefit' rules. One coverage (and only one) with 'focal=true' is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where 'Coverage.subrogation=false', should provide a reference to the ClaimResponse containing the adjudication results of the prior claim.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.insurance.focal",
            "path": "ExplanationOfBenefit.insurance.focal",
            "comment": "A patient may (will) have multiple insurance policies which provide reimbursement for healthcare services and products. For example, a person may also be covered by their spouse's policy and both appear in the list (and may be from the same insurer). This flag will be set to true for only one of the listed policies and that policy will be used for adjudicating this claim. Other claims would be created to request adjudication against the other listed policies.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.insurance.coverage",
            "path": "ExplanationOfBenefit.insurance.coverage",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.insurance.preAuthRef",
            "path": "ExplanationOfBenefit.insurance.preAuthRef",
            "comment": "This value is an alphanumeric string that may be provided over the phone, via text, via paper, or within a ClaimResponse resource and is not a FHIR Identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.accident",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Accident"
              }
            ],
            "path": "ExplanationOfBenefit.accident",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.accident.date",
            "path": "ExplanationOfBenefit.accident.date",
            "comment": "The date of the accident has to precede the dates of the products and services but within a reasonable timeframe.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.accident.type",
            "path": "ExplanationOfBenefit.accident.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AccidentType"
                }
              ],
              "strength": "extensible",
              "description": "Type of accident: work place, auto, etc.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActIncidentCode"
            }
          },
          {
            "id": "ExplanationOfBenefit.accident.location[x]",
            "path": "ExplanationOfBenefit.accident.location[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Item"
              }
            ],
            "path": "ExplanationOfBenefit.item",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.sequence",
            "path": "ExplanationOfBenefit.item.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.careTeamSequence",
            "path": "ExplanationOfBenefit.item.careTeamSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.diagnosisSequence",
            "path": "ExplanationOfBenefit.item.diagnosisSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.procedureSequence",
            "path": "ExplanationOfBenefit.item.procedureSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.informationSequence",
            "path": "ExplanationOfBenefit.item.informationSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.revenue",
            "path": "ExplanationOfBenefit.item.revenue",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.category",
            "path": "ExplanationOfBenefit.item.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision, oral-basic etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.productOrService",
            "path": "ExplanationOfBenefit.item.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.modifier",
            "path": "ExplanationOfBenefit.item.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.programCode",
            "path": "ExplanationOfBenefit.item.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.serviced[x]",
            "path": "ExplanationOfBenefit.item.serviced[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.location[x]",
            "path": "ExplanationOfBenefit.item.location[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServicePlace"
                }
              ],
              "strength": "example",
              "description": "Place where the service is rendered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-place"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.quantity",
            "path": "ExplanationOfBenefit.item.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.unitPrice",
            "path": "ExplanationOfBenefit.item.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.factor",
            "path": "ExplanationOfBenefit.item.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.net",
            "path": "ExplanationOfBenefit.item.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.udi",
            "path": "ExplanationOfBenefit.item.udi",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.bodySite",
            "path": "ExplanationOfBenefit.item.bodySite",
            "comment": "For example: Providing a tooth code, allows an insurer to identify a provider performing a filling on a tooth that was previously removed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OralSites"
                }
              ],
              "strength": "example",
              "description": "The code for the teeth, quadrant, sextant and arch.",
              "valueSet": "http://hl7.org/fhir/ValueSet/tooth"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.subSite",
            "path": "ExplanationOfBenefit.item.subSite",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Surface"
                }
              ],
              "strength": "example",
              "description": "The code for the tooth surface and surface combinations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/surface"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.encounter",
            "path": "ExplanationOfBenefit.item.encounter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.noteNumber",
            "path": "ExplanationOfBenefit.item.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Adjudication"
              }
            ],
            "path": "ExplanationOfBenefit.item.adjudication",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.category",
            "path": "ExplanationOfBenefit.item.adjudication.category",
            "comment": "For example, codes indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Adjudication"
                }
              ],
              "strength": "example",
              "description": "The adjudication codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.reason",
            "path": "ExplanationOfBenefit.item.adjudication.reason",
            "comment": "For example, may indicate that the funds for this benefit type have been exhausted.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdjudicationReason"
                }
              ],
              "strength": "example",
              "description": "Adjudication reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication-reason"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.amount",
            "path": "ExplanationOfBenefit.item.adjudication.amount",
            "comment": "For example, amount submitted, eligible amount, co-payment, and benefit payable.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.adjudication.value",
            "path": "ExplanationOfBenefit.item.adjudication.value",
            "comment": "For example: eligible percentage or co-payment percentage.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Detail"
              }
            ],
            "path": "ExplanationOfBenefit.item.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.sequence",
            "path": "ExplanationOfBenefit.item.detail.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.revenue",
            "path": "ExplanationOfBenefit.item.detail.revenue",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.category",
            "path": "ExplanationOfBenefit.item.detail.category",
            "comment": "Examples include: Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision, oral-basic etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.productOrService",
            "path": "ExplanationOfBenefit.item.detail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.modifier",
            "path": "ExplanationOfBenefit.item.detail.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.programCode",
            "path": "ExplanationOfBenefit.item.detail.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.quantity",
            "path": "ExplanationOfBenefit.item.detail.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.unitPrice",
            "path": "ExplanationOfBenefit.item.detail.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.factor",
            "path": "ExplanationOfBenefit.item.detail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.net",
            "path": "ExplanationOfBenefit.item.detail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.udi",
            "path": "ExplanationOfBenefit.item.detail.udi",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.noteNumber",
            "path": "ExplanationOfBenefit.item.detail.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.adjudication",
            "path": "ExplanationOfBenefit.item.detail.adjudication",
            "min": 0,
            "max": "*",
            "contentReference": "#ExplanationOfBenefit.item.adjudication"
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SubDetail"
              }
            ],
            "path": "ExplanationOfBenefit.item.detail.subDetail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.sequence",
            "path": "ExplanationOfBenefit.item.detail.subDetail.sequence",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.revenue",
            "path": "ExplanationOfBenefit.item.detail.subDetail.revenue",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RevenueCenter"
                }
              ],
              "strength": "example",
              "description": "Codes for the revenue or cost centers supplying the service and/or products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-revenue-center"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.category",
            "path": "ExplanationOfBenefit.item.detail.subDetail.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision, oral-basic etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.productOrService",
            "path": "ExplanationOfBenefit.item.detail.subDetail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.modifier",
            "path": "ExplanationOfBenefit.item.detail.subDetail.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.programCode",
            "path": "ExplanationOfBenefit.item.detail.subDetail.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.quantity",
            "path": "ExplanationOfBenefit.item.detail.subDetail.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.unitPrice",
            "path": "ExplanationOfBenefit.item.detail.subDetail.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.factor",
            "path": "ExplanationOfBenefit.item.detail.subDetail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.net",
            "path": "ExplanationOfBenefit.item.detail.subDetail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.udi",
            "path": "ExplanationOfBenefit.item.detail.subDetail.udi",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.noteNumber",
            "path": "ExplanationOfBenefit.item.detail.subDetail.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.item.detail.subDetail.adjudication",
            "path": "ExplanationOfBenefit.item.detail.subDetail.adjudication",
            "min": 0,
            "max": "*",
            "contentReference": "#ExplanationOfBenefit.item.adjudication"
          },
          {
            "id": "ExplanationOfBenefit.addItem",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "740;600"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItem"
              }
            ],
            "path": "ExplanationOfBenefit.addItem",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.itemSequence",
            "path": "ExplanationOfBenefit.addItem.itemSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detailSequence",
            "path": "ExplanationOfBenefit.addItem.detailSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.subDetailSequence",
            "path": "ExplanationOfBenefit.addItem.subDetailSequence",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.provider",
            "path": "ExplanationOfBenefit.addItem.provider",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.productOrService",
            "path": "ExplanationOfBenefit.addItem.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.modifier",
            "path": "ExplanationOfBenefit.addItem.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.programCode",
            "path": "ExplanationOfBenefit.addItem.programCode",
            "comment": "For example: Neonatal program, child dental program or drug users recovery program.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramCode"
                }
              ],
              "strength": "example",
              "description": "Program specific reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-program-code"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.serviced[x]",
            "path": "ExplanationOfBenefit.addItem.serviced[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.location[x]",
            "path": "ExplanationOfBenefit.addItem.location[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Address"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServicePlace"
                }
              ],
              "strength": "example",
              "description": "Place where the service is rendered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-place"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.quantity",
            "path": "ExplanationOfBenefit.addItem.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.unitPrice",
            "path": "ExplanationOfBenefit.addItem.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.factor",
            "path": "ExplanationOfBenefit.addItem.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.net",
            "path": "ExplanationOfBenefit.addItem.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.bodySite",
            "path": "ExplanationOfBenefit.addItem.bodySite",
            "comment": "For example, providing a tooth code allows an insurer to identify a provider performing a filling on a tooth that was previously removed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OralSites"
                }
              ],
              "strength": "example",
              "description": "The code for the teeth, quadrant, sextant and arch.",
              "valueSet": "http://hl7.org/fhir/ValueSet/tooth"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.subSite",
            "path": "ExplanationOfBenefit.addItem.subSite",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Surface"
                }
              ],
              "strength": "example",
              "description": "The code for the tooth surface and surface combinations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/surface"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.noteNumber",
            "path": "ExplanationOfBenefit.addItem.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.adjudication",
            "path": "ExplanationOfBenefit.addItem.adjudication",
            "min": 0,
            "max": "*",
            "contentReference": "#ExplanationOfBenefit.item.adjudication"
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "740;600"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItemDetail"
              }
            ],
            "path": "ExplanationOfBenefit.addItem.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.productOrService",
            "path": "ExplanationOfBenefit.addItem.detail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.modifier",
            "path": "ExplanationOfBenefit.addItem.detail.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.quantity",
            "path": "ExplanationOfBenefit.addItem.detail.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.unitPrice",
            "path": "ExplanationOfBenefit.addItem.detail.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.factor",
            "path": "ExplanationOfBenefit.addItem.detail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.net",
            "path": "ExplanationOfBenefit.addItem.detail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.noteNumber",
            "path": "ExplanationOfBenefit.addItem.detail.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.adjudication",
            "path": "ExplanationOfBenefit.addItem.detail.adjudication",
            "min": 0,
            "max": "*",
            "contentReference": "#ExplanationOfBenefit.item.adjudication"
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "740;600"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "AddedItemDetailSubDetail"
              }
            ],
            "path": "ExplanationOfBenefit.addItem.detail.subDetail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.productOrService",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.productOrService",
            "comment": "If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. 'glasses' or 'compound'.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProduct"
                }
              ],
              "strength": "example",
              "description": "Allowable service and product codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-uscls"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.modifier",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.modifier",
            "comment": "For example, in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Modifiers"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/claim-modifiers"
            }
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.quantity",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.unitPrice",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.unitPrice",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.factor",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.factor",
            "comment": "To show a 10% senior's discount, the value entered is: 0.90 (1.00 - 0.10).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.net",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.net",
            "comment": "For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.noteNumber",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.noteNumber",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.addItem.detail.subDetail.adjudication",
            "path": "ExplanationOfBenefit.addItem.detail.subDetail.adjudication",
            "min": 0,
            "max": "*",
            "contentReference": "#ExplanationOfBenefit.item.adjudication"
          },
          {
            "id": "ExplanationOfBenefit.adjudication",
            "path": "ExplanationOfBenefit.adjudication",
            "min": 0,
            "max": "*",
            "contentReference": "#ExplanationOfBenefit.item.adjudication"
          },
          {
            "id": "ExplanationOfBenefit.total",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "'360;620"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Total"
              }
            ],
            "path": "ExplanationOfBenefit.total",
            "comment": "Totals for amounts submitted, co-pays, benefits payable etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.total.category",
            "path": "ExplanationOfBenefit.total.category",
            "comment": "For example, codes indicating: Co-Pay, deductible, eligible, benefit, tax, etc.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Adjudication"
                }
              ],
              "strength": "example",
              "description": "The adjudication codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/adjudication"
            }
          },
          {
            "id": "ExplanationOfBenefit.total.amount",
            "path": "ExplanationOfBenefit.total.amount",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ExplanationOfBenefit.payment",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "360;650"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Payment"
              }
            ],
            "path": "ExplanationOfBenefit.payment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.payment.type",
            "path": "ExplanationOfBenefit.payment.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentType"
                }
              ],
              "strength": "example",
              "description": "The type (partial, complete) of the payment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-paymenttype"
            }
          },
          {
            "id": "ExplanationOfBenefit.payment.adjustment",
            "path": "ExplanationOfBenefit.payment.adjustment",
            "comment": "Insurers will deduct amounts owing from the provider (adjustment), such as a prior overpayment, from the amount owing to the provider (benefits payable) when payment is made to the provider.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.payment.adjustmentReason",
            "path": "ExplanationOfBenefit.payment.adjustmentReason",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentAdjustmentReason"
                }
              ],
              "strength": "example",
              "description": "Payment Adjustment reason codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payment-adjustment-reason"
            }
          },
          {
            "id": "ExplanationOfBenefit.payment.date",
            "path": "ExplanationOfBenefit.payment.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.payment.amount",
            "path": "ExplanationOfBenefit.payment.amount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.payment.identifier",
            "path": "ExplanationOfBenefit.payment.identifier",
            "comment": "For example: EFT number or check number.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.formCode",
            "path": "ExplanationOfBenefit.formCode",
            "comment": "May be needed to identify specific jurisdictional forms.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Forms"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "The forms codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/forms"
            }
          },
          {
            "id": "ExplanationOfBenefit.form",
            "path": "ExplanationOfBenefit.form",
            "comment": "Needed to permit insurers to include the actual form.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.processNote",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Note"
              }
            ],
            "path": "ExplanationOfBenefit.processNote",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.processNote.number",
            "path": "ExplanationOfBenefit.processNote.number",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.processNote.type",
            "path": "ExplanationOfBenefit.processNote.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NoteType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The presentation types of notes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/note-type|4.0.1"
            }
          },
          {
            "id": "ExplanationOfBenefit.processNote.text",
            "path": "ExplanationOfBenefit.processNote.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.processNote.language",
            "path": "ExplanationOfBenefit.processNote.language",
            "comment": "Only required if the language is different from the resource language.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitPeriod",
            "path": "ExplanationOfBenefit.benefitPeriod",
            "comment": "Not applicable when use=claim.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "BenefitBalance"
              }
            ],
            "path": "ExplanationOfBenefit.benefitBalance",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.category",
            "path": "ExplanationOfBenefit.benefitBalance.category",
            "comment": "Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCategory"
                }
              ],
              "strength": "example",
              "description": "Benefit categories such as: oral, medical, vision, oral-basic etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ex-benefitcategory"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.excluded",
            "path": "ExplanationOfBenefit.benefitBalance.excluded",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.name",
            "path": "ExplanationOfBenefit.benefitBalance.name",
            "comment": "For example: MED01, or DENT2.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.description",
            "path": "ExplanationOfBenefit.benefitBalance.description",
            "comment": "For example, 'DENT2 covers 100% of basic, 50% of major but excludes Ortho, Implants and Cosmetic services'.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.network",
            "path": "ExplanationOfBenefit.benefitBalance.network",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitNetwork"
                }
              ],
              "strength": "example",
              "description": "Code to classify in or out of network services.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-network"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.unit",
            "path": "ExplanationOfBenefit.benefitBalance.unit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitUnit"
                }
              ],
              "strength": "example",
              "description": "Unit covered/serviced - individual or family.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-unit"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.term",
            "path": "ExplanationOfBenefit.benefitBalance.term",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitTerm"
                }
              ],
              "strength": "example",
              "description": "Coverage unit - annual, lifetime.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-term"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Benefit"
              }
            ],
            "path": "ExplanationOfBenefit.benefitBalance.financial",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial.type",
            "path": "ExplanationOfBenefit.benefitBalance.financial.type",
            "comment": "For example: deductible, visits, benefit amount.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitType"
                }
              ],
              "strength": "example",
              "description": "Deductable, visits, co-pay, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/benefit-type"
            }
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial.allowed[x]",
            "path": "ExplanationOfBenefit.benefitBalance.financial.allowed[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              },
              {
                "code": "string"
              },
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "ExplanationOfBenefit.benefitBalance.financial.used[x]",
            "path": "ExplanationOfBenefit.benefitBalance.financial.used[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              },
              {
                "code": "Money"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "FamilyMemberHistory",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Summary"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
      "version": "4.0.1",
      "name": "FamilyMemberHistory",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "FamilyMemberHistory",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "FamilyMemberHistory",
            "path": "FamilyMemberHistory",
            "min": 0,
            "max": "*",
            "base": {
              "path": "FamilyMemberHistory",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "fhs-1",
                "severity": "error",
                "human": "Can have age[x] or born[x], but not both",
                "expression": "age.empty() or born.empty()",
                "xpath": "not (*[starts-with(local-name(.), 'age')] and *[starts-with(local-name(.), 'birth')])"
              },
              {
                "key": "fhs-2",
                "severity": "error",
                "human": "Can only have estimatedAge if age[x] is present",
                "expression": "age.exists() or estimatedAge.empty()",
                "xpath": "exists(*[starts-with(local-name(.), 'age')]) or not(exists(f:estimatedAge))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.id",
            "path": "FamilyMemberHistory.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.meta",
            "path": "FamilyMemberHistory.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.implicitRules",
            "path": "FamilyMemberHistory.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.language",
            "path": "FamilyMemberHistory.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "FamilyMemberHistory.text",
            "path": "FamilyMemberHistory.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.contained",
            "path": "FamilyMemberHistory.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.extension",
            "path": "FamilyMemberHistory.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.modifierExtension",
            "path": "FamilyMemberHistory.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.identifier",
            "path": "FamilyMemberHistory.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "FamilyMemberHistory.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.instantiatesCanonical",
            "path": "FamilyMemberHistory.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "base": {
              "path": "FamilyMemberHistory.instantiatesCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Measure",
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.instantiatesUri",
            "path": "FamilyMemberHistory.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "FamilyMemberHistory.instantiatesUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.status",
            "path": "FamilyMemberHistory.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FamilyHistoryStatus"
                }
              ],
              "strength": "required",
              "description": "A code that identifies the status of the family history record.",
              "valueSet": "http://hl7.org/fhir/ValueSet/history-status|4.0.1"
            }
          },
          {
            "id": "FamilyMemberHistory.dataAbsentReason",
            "path": "FamilyMemberHistory.dataAbsentReason",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.dataAbsentReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FamilyHistoryAbsentReason"
                }
              ],
              "strength": "example",
              "description": "Codes describing the reason why a family member's history is not available.",
              "valueSet": "http://hl7.org/fhir/ValueSet/history-absent-reason"
            }
          },
          {
            "id": "FamilyMemberHistory.patient",
            "path": "FamilyMemberHistory.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.date",
            "path": "FamilyMemberHistory.date",
            "comment": "This should be captured even if the same as the date on the List aggregating the full family history.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.name",
            "path": "FamilyMemberHistory.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.relationship",
            "path": "FamilyMemberHistory.relationship",
            "min": 1,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.relationship",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FamilialRelationship"
                }
              ],
              "strength": "example",
              "description": "The nature of the relationship between the patient and the related person being described in the family member history.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-FamilyMember"
            }
          },
          {
            "id": "FamilyMemberHistory.sex",
            "path": "FamilyMemberHistory.sex",
            "comment": "This element should ideally reflect whether the individual is genetically male or female.  However, as reported information based on the knowledge of the patient or reporting friend/relative, there may be situations where the reported sex might not be totally accurate.  E.g. 'Aunt Sue' might be XY rather than XX.  Questions soliciting this information should be phrased to encourage capture of genetic sex where known.  However, systems performing analysis should also allow for the possibility of imprecision with this element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.sex",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Sex"
                }
              ],
              "strength": "extensible",
              "description": "Codes describing the sex assigned at birth as documented on the birth registration.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender"
            }
          },
          {
            "id": "FamilyMemberHistory.born[x]",
            "path": "FamilyMemberHistory.born[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.born[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              },
              {
                "code": "date"
              },
              {
                "code": "string"
              }
            ],
            "condition": [
              "fhs-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.age[x]",
            "path": "FamilyMemberHistory.age[x]",
            "comment": "use estimatedAge to indicate whether the age is actual or not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.age[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Age"
              },
              {
                "code": "Range"
              },
              {
                "code": "string"
              }
            ],
            "condition": [
              "fhs-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.estimatedAge",
            "path": "FamilyMemberHistory.estimatedAge",
            "comment": "This element is labeled as a modifier because the fact that age is estimated can/should change the results of any algorithm that calculates based on the specified age.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.estimatedAge",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "It is unknown whether the age is an estimate or not",
            "condition": [
              "fhs-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.deceased[x]",
            "path": "FamilyMemberHistory.deceased[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.deceased[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "Age"
              },
              {
                "code": "Range"
              },
              {
                "code": "date"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.reasonCode",
            "path": "FamilyMemberHistory.reasonCode",
            "comment": "Textual reasons can be captured using reasonCode.text.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "FamilyMemberHistory.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FamilyHistoryReason"
                }
              ],
              "strength": "example",
              "description": "Codes indicating why the family member history was done.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "FamilyMemberHistory.reasonReference",
            "path": "FamilyMemberHistory.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "FamilyMemberHistory.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.note",
            "path": "FamilyMemberHistory.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "FamilyMemberHistory.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.condition",
            "path": "FamilyMemberHistory.condition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "FamilyMemberHistory.condition",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.condition.id",
            "path": "FamilyMemberHistory.condition.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.condition.extension",
            "path": "FamilyMemberHistory.condition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.condition.modifierExtension",
            "path": "FamilyMemberHistory.condition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.condition.code",
            "path": "FamilyMemberHistory.condition.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.condition.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionCode"
                }
              ],
              "strength": "example",
              "description": "Identification of the Condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "FamilyMemberHistory.condition.outcome",
            "path": "FamilyMemberHistory.condition.outcome",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.condition.outcome",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionOutcome"
                }
              ],
              "strength": "example",
              "description": "The result of the condition for the patient; e.g. death, permanent disability, temporary disability, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-outcome"
            }
          },
          {
            "id": "FamilyMemberHistory.condition.contributedToDeath",
            "path": "FamilyMemberHistory.condition.contributedToDeath",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.condition.contributedToDeath",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.condition.onset[x]",
            "path": "FamilyMemberHistory.condition.onset[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "FamilyMemberHistory.condition.onset[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Age"
              },
              {
                "code": "Range"
              },
              {
                "code": "Period"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "FamilyMemberHistory.condition.note",
            "path": "FamilyMemberHistory.condition.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "FamilyMemberHistory.condition.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "FamilyMemberHistory",
            "path": "FamilyMemberHistory",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "fhs-2",
                "severity": "error",
                "human": "Can only have estimatedAge if age[x] is present",
                "expression": "age.exists() or estimatedAge.empty()",
                "xpath": "exists(*[starts-with(local-name(.), 'age')]) or not(exists(f:estimatedAge))"
              },
              {
                "key": "fhs-1",
                "severity": "error",
                "human": "Can have age[x] or born[x], but not both",
                "expression": "age.empty() or born.empty()",
                "xpath": "not (*[starts-with(local-name(.), 'age')] and *[starts-with(local-name(.), 'birth')])"
              }
            ]
          },
          {
            "id": "FamilyMemberHistory.identifier",
            "path": "FamilyMemberHistory.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.instantiatesCanonical",
            "path": "FamilyMemberHistory.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Measure",
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.instantiatesUri",
            "path": "FamilyMemberHistory.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.status",
            "path": "FamilyMemberHistory.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FamilyHistoryStatus"
                }
              ],
              "strength": "required",
              "description": "A code that identifies the status of the family history record.",
              "valueSet": "http://hl7.org/fhir/ValueSet/history-status|4.0.1"
            }
          },
          {
            "id": "FamilyMemberHistory.dataAbsentReason",
            "path": "FamilyMemberHistory.dataAbsentReason",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FamilyHistoryAbsentReason"
                }
              ],
              "strength": "example",
              "description": "Codes describing the reason why a family member's history is not available.",
              "valueSet": "http://hl7.org/fhir/ValueSet/history-absent-reason"
            }
          },
          {
            "id": "FamilyMemberHistory.patient",
            "path": "FamilyMemberHistory.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.date",
            "path": "FamilyMemberHistory.date",
            "comment": "This should be captured even if the same as the date on the List aggregating the full family history.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.name",
            "path": "FamilyMemberHistory.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.relationship",
            "path": "FamilyMemberHistory.relationship",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FamilialRelationship"
                }
              ],
              "strength": "example",
              "description": "The nature of the relationship between the patient and the related person being described in the family member history.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-FamilyMember"
            }
          },
          {
            "id": "FamilyMemberHistory.sex",
            "path": "FamilyMemberHistory.sex",
            "comment": "This element should ideally reflect whether the individual is genetically male or female.  However, as reported information based on the knowledge of the patient or reporting friend/relative, there may be situations where the reported sex might not be totally accurate.  E.g. 'Aunt Sue' might be XY rather than XX.  Questions soliciting this information should be phrased to encourage capture of genetic sex where known.  However, systems performing analysis should also allow for the possibility of imprecision with this element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Sex"
                }
              ],
              "strength": "extensible",
              "description": "Codes describing the sex assigned at birth as documented on the birth registration.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender"
            }
          },
          {
            "id": "FamilyMemberHistory.born[x]",
            "path": "FamilyMemberHistory.born[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              },
              {
                "code": "date"
              },
              {
                "code": "string"
              }
            ],
            "condition": [
              "fhs-1"
            ]
          },
          {
            "id": "FamilyMemberHistory.age[x]",
            "path": "FamilyMemberHistory.age[x]",
            "comment": "use estimatedAge to indicate whether the age is actual or not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Age"
              },
              {
                "code": "Range"
              },
              {
                "code": "string"
              }
            ],
            "condition": [
              "fhs-1"
            ],
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.estimatedAge",
            "path": "FamilyMemberHistory.estimatedAge",
            "comment": "This element is labeled as a modifier because the fact that age is estimated can/should change the results of any algorithm that calculates based on the specified age.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "It is unknown whether the age is an estimate or not",
            "condition": [
              "fhs-2"
            ],
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.deceased[x]",
            "path": "FamilyMemberHistory.deceased[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "Age"
              },
              {
                "code": "Range"
              },
              {
                "code": "date"
              },
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.reasonCode",
            "path": "FamilyMemberHistory.reasonCode",
            "comment": "Textual reasons can be captured using reasonCode.text.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FamilyHistoryReason"
                }
              ],
              "strength": "example",
              "description": "Codes indicating why the family member history was done.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "FamilyMemberHistory.reasonReference",
            "path": "FamilyMemberHistory.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "FamilyMemberHistory.note",
            "path": "FamilyMemberHistory.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "FamilyMemberHistory.condition",
            "path": "FamilyMemberHistory.condition",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "FamilyMemberHistory.condition.code",
            "path": "FamilyMemberHistory.condition.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionCode"
                }
              ],
              "strength": "example",
              "description": "Identification of the Condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "FamilyMemberHistory.condition.outcome",
            "path": "FamilyMemberHistory.condition.outcome",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionOutcome"
                }
              ],
              "strength": "example",
              "description": "The result of the condition for the patient; e.g. death, permanent disability, temporary disability, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-outcome"
            }
          },
          {
            "id": "FamilyMemberHistory.condition.contributedToDeath",
            "path": "FamilyMemberHistory.condition.contributedToDeath",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "FamilyMemberHistory.condition.onset[x]",
            "path": "FamilyMemberHistory.condition.onset[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Age"
              },
              {
                "code": "Range"
              },
              {
                "code": "Period"
              },
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "FamilyMemberHistory.condition.note",
            "path": "FamilyMemberHistory.condition.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Flag",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Flag",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Management"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Flag",
      "version": "4.0.1",
      "name": "Flag",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Flag",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Flag",
            "path": "Flag",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Flag",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Flag.id",
            "path": "Flag.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Flag.meta",
            "path": "Flag.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Flag.implicitRules",
            "path": "Flag.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Flag.language",
            "path": "Flag.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Flag.text",
            "path": "Flag.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Flag.contained",
            "path": "Flag.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Flag.extension",
            "path": "Flag.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Flag.modifierExtension",
            "path": "Flag.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Flag.identifier",
            "path": "Flag.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Flag.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Flag.status",
            "path": "Flag.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Flag.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FlagStatus"
                }
              ],
              "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 was entered in error.",
              "valueSet": "http://hl7.org/fhir/ValueSet/flag-status|4.0.1"
            }
          },
          {
            "id": "Flag.category",
            "path": "Flag.category",
            "comment": "The value set will often need to be adjusted based on local business rules and usage context.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Flag.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FlagCategory"
                }
              ],
              "strength": "example",
              "description": "A general category for flags for filtering/display purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/flag-category"
            }
          },
          {
            "id": "Flag.code",
            "path": "Flag.code",
            "comment": "If non-coded, use CodeableConcept.text.  This element should always be included in the narrative.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Flag.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FlagCode"
                }
              ],
              "strength": "example",
              "description": "Detail codes identifying specific flagged issues.",
              "valueSet": "http://hl7.org/fhir/ValueSet/flag-code"
            }
          },
          {
            "id": "Flag.subject",
            "path": "Flag.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Flag.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Flag.period",
            "path": "Flag.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Flag.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Flag.encounter",
            "path": "Flag.encounter",
            "comment": "If both Flag.encounter and Flag.period are valued, then Flag.period.start shall not be before Encounter.period.start and Flag.period.end shall not be after Encounter.period.end.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Flag.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Flag.author",
            "path": "Flag.author",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Flag.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Flag",
            "path": "Flag",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Flag.identifier",
            "path": "Flag.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Flag.status",
            "path": "Flag.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FlagStatus"
                }
              ],
              "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 was entered in error.",
              "valueSet": "http://hl7.org/fhir/ValueSet/flag-status|4.0.1"
            }
          },
          {
            "id": "Flag.category",
            "path": "Flag.category",
            "comment": "The value set will often need to be adjusted based on local business rules and usage context.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FlagCategory"
                }
              ],
              "strength": "example",
              "description": "A general category for flags for filtering/display purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/flag-category"
            }
          },
          {
            "id": "Flag.code",
            "path": "Flag.code",
            "comment": "If non-coded, use CodeableConcept.text.  This element should always be included in the narrative.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FlagCode"
                }
              ],
              "strength": "example",
              "description": "Detail codes identifying specific flagged issues.",
              "valueSet": "http://hl7.org/fhir/ValueSet/flag-code"
            }
          },
          {
            "id": "Flag.subject",
            "path": "Flag.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Flag.period",
            "path": "Flag.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Flag.encounter",
            "path": "Flag.encounter",
            "comment": "If both Flag.encounter and Flag.period are valued, then Flag.period.start shall not be before Encounter.period.start and Flag.period.end shall not be after Encounter.period.end.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Flag.author",
            "path": "Flag.author",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Goal",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Goal",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Care Provision"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Goal",
      "version": "4.0.1",
      "name": "Goal",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Goal",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Goal",
            "path": "Goal",
            "comment": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Goal",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.id",
            "path": "Goal.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Goal.meta",
            "path": "Goal.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Goal.implicitRules",
            "path": "Goal.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Goal.language",
            "path": "Goal.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Goal.text",
            "path": "Goal.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.contained",
            "path": "Goal.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.extension",
            "path": "Goal.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.modifierExtension",
            "path": "Goal.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Goal.identifier",
            "path": "Goal.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Goal.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.lifecycleStatus",
            "path": "Goal.lifecycleStatus",
            "comment": "This element is labeled as a modifier because the lifecycleStatus contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Goal.lifecycleStatus",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalLifecycleStatus"
                }
              ],
              "strength": "required",
              "description": "Codes that reflect the current state of a goal and whether the goal is still being targeted.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-status|4.0.1"
            }
          },
          {
            "id": "Goal.achievementStatus",
            "path": "Goal.achievementStatus",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Goal.achievementStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalAchievementStatus"
                }
              ],
              "strength": "preferred",
              "description": "Indicates the progression, or lack thereof, towards the goal against the target.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-achievement"
            }
          },
          {
            "id": "Goal.category",
            "path": "Goal.category",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Goal.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalCategory"
                }
              ],
              "strength": "example",
              "description": "Codes for grouping and sorting goals.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-category"
            }
          },
          {
            "id": "Goal.priority",
            "path": "Goal.priority",
            "comment": "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)\r\rThe 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\".",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Goal.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalPriority"
                }
              ],
              "strength": "preferred",
              "description": "The level of importance associated with a goal.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-priority"
            }
          },
          {
            "id": "Goal.description",
            "path": "Goal.description",
            "comment": "If no code is available, use CodeableConcept.text.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Goal.description",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalDescription"
                }
              ],
              "strength": "example",
              "description": "Codes providing the details of a particular goal.  This will generally be system or implementation guide-specific.  In many systems, only the text element will be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "Goal.subject",
            "path": "Goal.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Goal.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Goal.start[x]",
            "path": "Goal.start[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Goal.start[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalStartEvent"
                }
              ],
              "strength": "example",
              "description": "Codes describing events that can trigger the initiation of a goal.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-start-event"
            }
          },
          {
            "id": "Goal.target",
            "path": "Goal.target",
            "comment": "When multiple targets are present for a single goal instance, all targets must be met for the overall goal to be met.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Goal.target",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "gol-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "gol-1",
                "severity": "error",
                "human": "Goal.target.measure is required if Goal.target.detail is populated",
                "expression": "(detail.exists() and measure.exists()) or detail.exists().not()",
                "xpath": "(exists(f:*[starts-with(local-name(.), 'detail')]) and exists(f:measure)) or not(exists(f:*[starts-with(local-name(.), 'detail')]))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.target.id",
            "path": "Goal.target.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.target.extension",
            "path": "Goal.target.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.target.modifierExtension",
            "path": "Goal.target.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Goal.target.measure",
            "path": "Goal.target.measure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Goal.target.measure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "gol-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalTargetMeasure"
                }
              ],
              "strength": "example",
              "description": "Codes to identify the value being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
            }
          },
          {
            "id": "Goal.target.detail[x]",
            "path": "Goal.target.detail[x]",
            "comment": "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 Goal.target.measure defines a coded value.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Goal.target.detail[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "string"
              },
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "Ratio"
              }
            ],
            "condition": [
              "gol-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalTargetDetail"
                }
              ],
              "strength": "example",
              "description": "Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal."
            }
          },
          {
            "id": "Goal.target.due[x]",
            "path": "Goal.target.due[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Goal.target.due[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Goal.statusDate",
            "path": "Goal.statusDate",
            "comment": "To see the date for past statuses, query history.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Goal.statusDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Goal.statusReason",
            "path": "Goal.statusReason",
            "comment": "This will typically be captured for statuses such as rejected, on-hold or cancelled, but could be present for others.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Goal.statusReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.expressedBy",
            "path": "Goal.expressedBy",
            "comment": "This is the individual responsible for establishing the goal, not necessarily who recorded it.  (For that, use the Provenance resource.).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Goal.expressedBy",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Goal.addresses",
            "path": "Goal.addresses",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Goal.addresses",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
                  "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/RiskAssessment"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.note",
            "path": "Goal.note",
            "comment": "May be used for progress notes, concerns or other related information that doesn't actually describe the goal itself.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Goal.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Goal.outcomeCode",
            "path": "Goal.outcomeCode",
            "comment": "Note that this should not duplicate the goal status.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Goal.outcomeCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalOutcome"
                }
              ],
              "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\".",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "Goal.outcomeReference",
            "path": "Goal.outcomeReference",
            "comment": "The goal outcome is independent of the outcome of the related activities.  For example, if the Goal is to achieve a target body weight of 150 lb and a care plan activity is defined to diet, then the care plan’s activity outcome could be calories consumed whereas goal outcome is an observation for the actual body weight measured.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Goal.outcomeReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Goal",
            "path": "Goal",
            "comment": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Goal.identifier",
            "path": "Goal.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Goal.lifecycleStatus",
            "path": "Goal.lifecycleStatus",
            "comment": "This element is labeled as a modifier because the lifecycleStatus contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalLifecycleStatus"
                }
              ],
              "strength": "required",
              "description": "Codes that reflect the current state of a goal and whether the goal is still being targeted.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-status|4.0.1"
            }
          },
          {
            "id": "Goal.achievementStatus",
            "path": "Goal.achievementStatus",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalAchievementStatus"
                }
              ],
              "strength": "preferred",
              "description": "Indicates the progression, or lack thereof, towards the goal against the target.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-achievement"
            }
          },
          {
            "id": "Goal.category",
            "path": "Goal.category",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalCategory"
                }
              ],
              "strength": "example",
              "description": "Codes for grouping and sorting goals.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-category"
            }
          },
          {
            "id": "Goal.priority",
            "path": "Goal.priority",
            "comment": "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)\r\rThe 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\".",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalPriority"
                }
              ],
              "strength": "preferred",
              "description": "The level of importance associated with a goal.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-priority"
            }
          },
          {
            "id": "Goal.description",
            "path": "Goal.description",
            "comment": "If no code is available, use CodeableConcept.text.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalDescription"
                }
              ],
              "strength": "example",
              "description": "Codes providing the details of a particular goal.  This will generally be system or implementation guide-specific.  In many systems, only the text element will be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "Goal.subject",
            "path": "Goal.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Goal.start[x]",
            "path": "Goal.start[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalStartEvent"
                }
              ],
              "strength": "example",
              "description": "Codes describing events that can trigger the initiation of a goal.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-start-event"
            }
          },
          {
            "id": "Goal.target",
            "path": "Goal.target",
            "comment": "When multiple targets are present for a single goal instance, all targets must be met for the overall goal to be met.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "gol-1"
            ],
            "constraint": [
              {
                "key": "gol-1",
                "severity": "error",
                "human": "Goal.target.measure is required if Goal.target.detail is populated",
                "expression": "(detail.exists() and measure.exists()) or detail.exists().not()",
                "xpath": "(exists(f:*[starts-with(local-name(.), 'detail')]) and exists(f:measure)) or not(exists(f:*[starts-with(local-name(.), 'detail')]))"
              }
            ]
          },
          {
            "id": "Goal.target.measure",
            "path": "Goal.target.measure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "gol-1"
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalTargetMeasure"
                }
              ],
              "strength": "example",
              "description": "Codes to identify the value being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
            }
          },
          {
            "id": "Goal.target.detail[x]",
            "path": "Goal.target.detail[x]",
            "comment": "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 Goal.target.measure defines a coded value.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "string"
              },
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "Ratio"
              }
            ],
            "condition": [
              "gol-1"
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalTargetDetail"
                }
              ],
              "strength": "example",
              "description": "Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal."
            }
          },
          {
            "id": "Goal.target.due[x]",
            "path": "Goal.target.due[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              },
              {
                "code": "Duration"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Goal.statusDate",
            "path": "Goal.statusDate",
            "comment": "To see the date for past statuses, query history.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Goal.statusReason",
            "path": "Goal.statusReason",
            "comment": "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": "string"
              }
            ]
          },
          {
            "id": "Goal.expressedBy",
            "path": "Goal.expressedBy",
            "comment": "This is the individual responsible for establishing the goal, not necessarily who recorded it.  (For that, use the Provenance resource.).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Goal.addresses",
            "path": "Goal.addresses",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
                  "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/RiskAssessment"
                ]
              }
            ]
          },
          {
            "id": "Goal.note",
            "path": "Goal.note",
            "comment": "May be used for progress notes, concerns or other related information that doesn't actually describe the goal itself.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "Goal.outcomeCode",
            "path": "Goal.outcomeCode",
            "comment": "Note that this should not duplicate the goal status.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalOutcome"
                }
              ],
              "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\".",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "Goal.outcomeReference",
            "path": "Goal.outcomeReference",
            "comment": "The goal outcome is independent of the outcome of the related activities.  For example, if the Goal is to achieve a target body weight of 150 lb and a care plan activity is defined to diet, then the care plan’s activity outcome could be calories consumed whereas goal outcome is an observation for the actual body weight measured.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/GraphDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "GraphDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Conformance"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/GraphDefinition",
      "version": "4.0.1",
      "name": "GraphDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "GraphDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "GraphDefinition",
            "path": "GraphDefinition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GraphDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "gdf-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.id",
            "path": "GraphDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GraphDefinition.meta",
            "path": "GraphDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GraphDefinition.implicitRules",
            "path": "GraphDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "GraphDefinition.language",
            "path": "GraphDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "GraphDefinition.text",
            "path": "GraphDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.contained",
            "path": "GraphDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.extension",
            "path": "GraphDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.modifierExtension",
            "path": "GraphDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "GraphDefinition.url",
            "path": "GraphDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GraphDefinition.version",
            "path": "GraphDefinition.version",
            "comment": "There may be different graph definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the graph definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GraphDefinition.name",
            "path": "GraphDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "GraphDefinition.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GraphDefinition.status",
            "path": "GraphDefinition.status",
            "comment": "Allows filtering of graph definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "GraphDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.experimental",
            "path": "GraphDefinition.experimental",
            "comment": "Allows filtering of graph definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GraphDefinition.date",
            "path": "GraphDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the graph definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GraphDefinition.publisher",
            "path": "GraphDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the graph definition is the organization or individual primarily responsible for the maintenance and upkeep of the graph definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the graph definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GraphDefinition.contact",
            "path": "GraphDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GraphDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GraphDefinition.description",
            "path": "GraphDefinition.description",
            "comment": "This description can be used to capture details such as why the graph definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the graph definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the graph definition is presumed to be the predominant language in the place the graph definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.useContext",
            "path": "GraphDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GraphDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GraphDefinition.jurisdiction",
            "path": "GraphDefinition.jurisdiction",
            "comment": "It may be possible for the graph definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GraphDefinition.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "GraphDefinition.purpose",
            "path": "GraphDefinition.purpose",
            "comment": "This element does not describe the usage of the graph definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this graph definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.start",
            "path": "GraphDefinition.start",
            "min": 1,
            "max": "1",
            "base": {
              "path": "GraphDefinition.start",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.profile",
            "path": "GraphDefinition.profile",
            "comment": "The code does not include the '$' prefix that is always included in the URL when the operation is invoked.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.profile",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link",
            "path": "GraphDefinition.link",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GraphDefinition.link",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.id",
            "path": "GraphDefinition.link.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.extension",
            "path": "GraphDefinition.link.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.modifierExtension",
            "path": "GraphDefinition.link.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "GraphDefinition.link.path",
            "path": "GraphDefinition.link.path",
            "comment": "The path expression cannot contain a resolve() function. If there is no path, the link is a reverse lookup, using target.params. If the path is \"*\" then this means all references in the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.path",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.sliceName",
            "path": "GraphDefinition.link.sliceName",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.sliceName",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.min",
            "path": "GraphDefinition.link.min",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.min",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.max",
            "path": "GraphDefinition.link.max",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.max",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.description",
            "path": "GraphDefinition.link.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target",
            "path": "GraphDefinition.link.target",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GraphDefinition.link.target",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target.id",
            "path": "GraphDefinition.link.target.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target.extension",
            "path": "GraphDefinition.link.target.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target.modifierExtension",
            "path": "GraphDefinition.link.target.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "GraphDefinition.link.target.type",
            "path": "GraphDefinition.link.target.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.target.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.link.target.params",
            "path": "GraphDefinition.link.target.params",
            "comment": "At least one of the parameters must have the value {ref} which identifies the focus resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.target.params",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target.profile",
            "path": "GraphDefinition.link.target.profile",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.target.profile",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target.compartment",
            "path": "GraphDefinition.link.target.compartment",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GraphDefinition.link.target.compartment",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target.compartment.id",
            "path": "GraphDefinition.link.target.compartment.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target.compartment.extension",
            "path": "GraphDefinition.link.target.compartment.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target.compartment.modifierExtension",
            "path": "GraphDefinition.link.target.compartment.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "GraphDefinition.link.target.compartment.use",
            "path": "GraphDefinition.link.target.compartment.use",
            "comment": "All conditional rules are evaluated; if they are true, then the rules are evaluated.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.target.compartment.use",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GraphCompartmentUse"
                }
              ],
              "strength": "required",
              "description": "Defines how a compartment rule is used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/graph-compartment-use|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.link.target.compartment.code",
            "path": "GraphDefinition.link.target.compartment.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.target.compartment.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompartmentCode"
                }
              ],
              "strength": "required",
              "description": "Identifies a compartment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/compartment-type|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.link.target.compartment.rule",
            "path": "GraphDefinition.link.target.compartment.rule",
            "min": 1,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.target.compartment.rule",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GraphCompartmentRule"
                }
              ],
              "strength": "required",
              "description": "How a compartment must be linked.",
              "valueSet": "http://hl7.org/fhir/ValueSet/graph-compartment-rule|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.link.target.compartment.expression",
            "path": "GraphDefinition.link.target.compartment.expression",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.target.compartment.expression",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target.compartment.description",
            "path": "GraphDefinition.link.target.compartment.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GraphDefinition.link.target.compartment.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GraphDefinition.link.target.link",
            "path": "GraphDefinition.link.target.link",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GraphDefinition.link.target.link",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#GraphDefinition.link",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "GraphDefinition",
            "path": "GraphDefinition",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "gdf-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "GraphDefinition.url",
            "path": "GraphDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "GraphDefinition.version",
            "path": "GraphDefinition.version",
            "comment": "There may be different graph definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the graph definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "GraphDefinition.name",
            "path": "GraphDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "GraphDefinition.status",
            "path": "GraphDefinition.status",
            "comment": "Allows filtering of graph definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.experimental",
            "path": "GraphDefinition.experimental",
            "comment": "Allows filtering of graph definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "GraphDefinition.date",
            "path": "GraphDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the graph definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "GraphDefinition.publisher",
            "path": "GraphDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the graph definition is the organization or individual primarily responsible for the maintenance and upkeep of the graph definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the graph definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "GraphDefinition.contact",
            "path": "GraphDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "GraphDefinition.description",
            "path": "GraphDefinition.description",
            "comment": "This description can be used to capture details such as why the graph definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the graph definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the graph definition is presumed to be the predominant language in the place the graph definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "GraphDefinition.useContext",
            "path": "GraphDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "GraphDefinition.jurisdiction",
            "path": "GraphDefinition.jurisdiction",
            "comment": "It may be possible for the graph definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "GraphDefinition.purpose",
            "path": "GraphDefinition.purpose",
            "comment": "This element does not describe the usage of the graph definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this graph definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "GraphDefinition.start",
            "path": "GraphDefinition.start",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.profile",
            "path": "GraphDefinition.profile",
            "comment": "The code does not include the '$' prefix that is always included in the URL when the operation is invoked.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ]
          },
          {
            "id": "GraphDefinition.link",
            "path": "GraphDefinition.link",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.path",
            "path": "GraphDefinition.link.path",
            "comment": "The path expression cannot contain a resolve() function. If there is no path, the link is a reverse lookup, using target.params. If the path is \"*\" then this means all references in the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.sliceName",
            "path": "GraphDefinition.link.sliceName",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.min",
            "path": "GraphDefinition.link.min",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.max",
            "path": "GraphDefinition.link.max",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.description",
            "path": "GraphDefinition.link.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.target",
            "path": "GraphDefinition.link.target",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.target.type",
            "path": "GraphDefinition.link.target.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.link.target.params",
            "path": "GraphDefinition.link.target.params",
            "comment": "At least one of the parameters must have the value {ref} which identifies the focus resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.target.profile",
            "path": "GraphDefinition.link.target.profile",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ]
          },
          {
            "id": "GraphDefinition.link.target.compartment",
            "path": "GraphDefinition.link.target.compartment",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.target.compartment.use",
            "path": "GraphDefinition.link.target.compartment.use",
            "comment": "All conditional rules are evaluated; if they are true, then the rules are evaluated.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GraphCompartmentUse"
                }
              ],
              "strength": "required",
              "description": "Defines how a compartment rule is used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/graph-compartment-use|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.link.target.compartment.code",
            "path": "GraphDefinition.link.target.compartment.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompartmentCode"
                }
              ],
              "strength": "required",
              "description": "Identifies a compartment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/compartment-type|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.link.target.compartment.rule",
            "path": "GraphDefinition.link.target.compartment.rule",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GraphCompartmentRule"
                }
              ],
              "strength": "required",
              "description": "How a compartment must be linked.",
              "valueSet": "http://hl7.org/fhir/ValueSet/graph-compartment-rule|4.0.1"
            }
          },
          {
            "id": "GraphDefinition.link.target.compartment.expression",
            "path": "GraphDefinition.link.target.compartment.expression",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.target.compartment.description",
            "path": "GraphDefinition.link.target.compartment.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "GraphDefinition.link.target.link",
            "path": "GraphDefinition.link.target.link",
            "min": 0,
            "max": "*",
            "contentReference": "#GraphDefinition.link"
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Group",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Group",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Individuals"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Group",
      "version": "4.0.1",
      "name": "Group",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Group",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Group",
            "path": "Group",
            "comment": "If both Group.characteristic and Group.member are present, then the members are the individuals who were found who met the characteristic.  It's possible that there might be other candidate members who meet the characteristic and aren't (yet) in the list.  All members SHALL have the listed characteristics.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Group",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "grp-1",
                "severity": "error",
                "human": "Can only have members if group is \"actual\"",
                "expression": "member.empty() or (actual = true)",
                "xpath": "f:actual/@value=true() or not(exists(f:member))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.id",
            "path": "Group.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Group.meta",
            "path": "Group.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Group.implicitRules",
            "path": "Group.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Group.language",
            "path": "Group.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Group.text",
            "path": "Group.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.contained",
            "path": "Group.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.extension",
            "path": "Group.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.modifierExtension",
            "path": "Group.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Group.identifier",
            "path": "Group.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Group.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Group.active",
            "path": "Group.active",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Group.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Group.type",
            "path": "Group.type",
            "comment": "Group members SHALL be of the appropriate resource type (Patient for person or animal; or Practitioner, Device, Medication or Substance for the other types.).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Group.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupType"
                }
              ],
              "strength": "required",
              "description": "Types of resources that are part of group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/group-type|4.0.1"
            }
          },
          {
            "id": "Group.actual",
            "path": "Group.actual",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Group.actual",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "condition": [
              "grp-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Group.code",
            "path": "Group.code",
            "comment": "This would generally be omitted for Person resources.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Group.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupKind"
                }
              ],
              "strength": "example",
              "description": "Kind of particular resource; e.g. cow, syringe, lake, etc."
            }
          },
          {
            "id": "Group.name",
            "path": "Group.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Group.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Group.quantity",
            "path": "Group.quantity",
            "comment": "Note that the quantity may be less than the number of members if some of the members are not active.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Group.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Group.managingEntity",
            "path": "Group.managingEntity",
            "comment": "This does not strictly align with ownership of a herd or flock, but may suffice to represent that relationship in simple cases. More complex cases will require an extension.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Group.managingEntity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Group.characteristic",
            "path": "Group.characteristic",
            "comment": "All the identified characteristics must be true for an entity to a member of the group.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Group.characteristic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.characteristic.id",
            "path": "Group.characteristic.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.characteristic.extension",
            "path": "Group.characteristic.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.characteristic.modifierExtension",
            "path": "Group.characteristic.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Group.characteristic.code",
            "path": "Group.characteristic.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Group.characteristic.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupCharacteristicKind"
                }
              ],
              "strength": "example",
              "description": "List of characteristics used to describe group members; e.g. gender, age, owner, location, etc."
            }
          },
          {
            "id": "Group.characteristic.value[x]",
            "path": "Group.characteristic.value[x]",
            "comment": "For Range, it means members of the group have a value that falls somewhere within the specified range.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Group.characteristic.value[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "boolean"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Reference"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupCharacteristicValue"
                }
              ],
              "strength": "example",
              "description": "Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc."
            }
          },
          {
            "id": "Group.characteristic.exclude",
            "path": "Group.characteristic.exclude",
            "comment": "This is labeled as \"Is Modifier\" because applications cannot wrongly include excluded members as included or vice versa.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Group.characteristic.exclude",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.characteristic.period",
            "path": "Group.characteristic.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Group.characteristic.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.member",
            "path": "Group.member",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Group.member",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "grp-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.member.id",
            "path": "Group.member.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.member.extension",
            "path": "Group.member.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.member.modifierExtension",
            "path": "Group.member.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Group.member.entity",
            "path": "Group.member.entity",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Group.member.entity",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.member.period",
            "path": "Group.member.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Group.member.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "meaningWhenMissing": "The member is in the group at this time",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Group.member.inactive",
            "path": "Group.member.inactive",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Group.member.inactive",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "Members are considered active unless explicitly specified otherwise",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Group",
            "path": "Group",
            "comment": "If both Group.characteristic and Group.member are present, then the members are the individuals who were found who met the characteristic.  It's possible that there might be other candidate members who meet the characteristic and aren't (yet) in the list.  All members SHALL have the listed characteristics.",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "grp-1",
                "severity": "error",
                "human": "Can only have members if group is \"actual\"",
                "expression": "member.empty() or (actual = true)",
                "xpath": "f:actual/@value=true() or not(exists(f:member))"
              }
            ]
          },
          {
            "id": "Group.identifier",
            "path": "Group.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Group.active",
            "path": "Group.active",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isSummary": true
          },
          {
            "id": "Group.type",
            "path": "Group.type",
            "comment": "Group members SHALL be of the appropriate resource type (Patient for person or animal; or Practitioner, Device, Medication or Substance for the other types.).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupType"
                }
              ],
              "strength": "required",
              "description": "Types of resources that are part of group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/group-type|4.0.1"
            }
          },
          {
            "id": "Group.actual",
            "path": "Group.actual",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "condition": [
              "grp-1"
            ],
            "isSummary": true
          },
          {
            "id": "Group.code",
            "path": "Group.code",
            "comment": "This would generally be omitted for Person resources.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupKind"
                }
              ],
              "strength": "example",
              "description": "Kind of particular resource; e.g. cow, syringe, lake, etc."
            }
          },
          {
            "id": "Group.name",
            "path": "Group.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Group.quantity",
            "path": "Group.quantity",
            "comment": "Note that the quantity may be less than the number of members if some of the members are not active.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Group.managingEntity",
            "path": "Group.managingEntity",
            "comment": "This does not strictly align with ownership of a herd or flock, but may suffice to represent that relationship in simple cases. More complex cases will require an extension.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Group.characteristic",
            "path": "Group.characteristic",
            "comment": "All the identified characteristics must be true for an entity to a member of the group.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Group.characteristic.code",
            "path": "Group.characteristic.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupCharacteristicKind"
                }
              ],
              "strength": "example",
              "description": "List of characteristics used to describe group members; e.g. gender, age, owner, location, etc."
            }
          },
          {
            "id": "Group.characteristic.value[x]",
            "path": "Group.characteristic.value[x]",
            "comment": "For Range, it means members of the group have a value that falls somewhere within the specified range.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "boolean"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Reference"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupCharacteristicValue"
                }
              ],
              "strength": "example",
              "description": "Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc."
            }
          },
          {
            "id": "Group.characteristic.exclude",
            "path": "Group.characteristic.exclude",
            "comment": "This is labeled as \"Is Modifier\" because applications cannot wrongly include excluded members as included or vice versa.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "Group.characteristic.period",
            "path": "Group.characteristic.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Group.member",
            "path": "Group.member",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "grp-1"
            ]
          },
          {
            "id": "Group.member.entity",
            "path": "Group.member.entity",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ]
          },
          {
            "id": "Group.member.period",
            "path": "Group.member.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "meaningWhenMissing": "The member is in the group at this time"
          },
          {
            "id": "Group.member.inactive",
            "path": "Group.member.inactive",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "Members are considered active unless explicitly specified otherwise"
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/GuidanceResponse",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "GuidanceResponse",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Request & Response"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/GuidanceResponse",
      "version": "4.0.1",
      "name": "GuidanceResponse",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "The GuidanceResponse resource supports recording the results of decision support interactions, reportability determination for public health, as well as the communication of additional data requirements for subsequent interactions.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "GuidanceResponse",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "GuidanceResponse",
            "path": "GuidanceResponse",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GuidanceResponse",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.id",
            "path": "GuidanceResponse.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GuidanceResponse.meta",
            "path": "GuidanceResponse.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GuidanceResponse.implicitRules",
            "path": "GuidanceResponse.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "GuidanceResponse.language",
            "path": "GuidanceResponse.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "GuidanceResponse.text",
            "path": "GuidanceResponse.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.contained",
            "path": "GuidanceResponse.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.extension",
            "path": "GuidanceResponse.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.modifierExtension",
            "path": "GuidanceResponse.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.requestIdentifier",
            "path": "GuidanceResponse.requestIdentifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GuidanceResponse.requestIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GuidanceResponse.identifier",
            "path": "GuidanceResponse.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GuidanceResponse.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GuidanceResponse.module[x]",
            "path": "GuidanceResponse.module[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "GuidanceResponse.module[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              },
              {
                "code": "canonical"
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "GuidanceResponse.status",
            "path": "GuidanceResponse.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "GuidanceResponse.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GuidanceResponseStatus"
                }
              ],
              "strength": "required",
              "description": "The status of a guidance response.",
              "valueSet": "http://hl7.org/fhir/ValueSet/guidance-response-status|4.0.1"
            }
          },
          {
            "id": "GuidanceResponse.subject",
            "path": "GuidanceResponse.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GuidanceResponse.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.encounter",
            "path": "GuidanceResponse.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official copmletion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GuidanceResponse.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.occurrenceDateTime",
            "path": "GuidanceResponse.occurrenceDateTime",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GuidanceResponse.occurrenceDateTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.performer",
            "path": "GuidanceResponse.performer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GuidanceResponse.performer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.reasonCode",
            "path": "GuidanceResponse.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GuidanceResponse.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.reasonReference",
            "path": "GuidanceResponse.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GuidanceResponse.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.note",
            "path": "GuidanceResponse.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GuidanceResponse.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.evaluationMessage",
            "path": "GuidanceResponse.evaluationMessage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GuidanceResponse.evaluationMessage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/OperationOutcome"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.outputParameters",
            "path": "GuidanceResponse.outputParameters",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GuidanceResponse.outputParameters",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Parameters"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.result",
            "path": "GuidanceResponse.result",
            "min": 0,
            "max": "1",
            "base": {
              "path": "GuidanceResponse.result",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/RequestGroup"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "GuidanceResponse.dataRequirement",
            "path": "GuidanceResponse.dataRequirement",
            "min": 0,
            "max": "*",
            "base": {
              "path": "GuidanceResponse.dataRequirement",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "DataRequirement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "GuidanceResponse",
            "path": "GuidanceResponse",
            "min": 0,
            "max": "*"
          },
          {
            "id": "GuidanceResponse.requestIdentifier",
            "path": "GuidanceResponse.requestIdentifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "GuidanceResponse.identifier",
            "path": "GuidanceResponse.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "GuidanceResponse.module[x]",
            "path": "GuidanceResponse.module[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              },
              {
                "code": "canonical"
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "GuidanceResponse.status",
            "path": "GuidanceResponse.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GuidanceResponseStatus"
                }
              ],
              "strength": "required",
              "description": "The status of a guidance response.",
              "valueSet": "http://hl7.org/fhir/ValueSet/guidance-response-status|4.0.1"
            }
          },
          {
            "id": "GuidanceResponse.subject",
            "path": "GuidanceResponse.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ]
          },
          {
            "id": "GuidanceResponse.encounter",
            "path": "GuidanceResponse.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official copmletion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          },
          {
            "id": "GuidanceResponse.occurrenceDateTime",
            "path": "GuidanceResponse.occurrenceDateTime",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "GuidanceResponse.performer",
            "path": "GuidanceResponse.performer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "GuidanceResponse.reasonCode",
            "path": "GuidanceResponse.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "GuidanceResponse.reasonReference",
            "path": "GuidanceResponse.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ]
          },
          {
            "id": "GuidanceResponse.note",
            "path": "GuidanceResponse.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "GuidanceResponse.evaluationMessage",
            "path": "GuidanceResponse.evaluationMessage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/OperationOutcome"
                ]
              }
            ]
          },
          {
            "id": "GuidanceResponse.outputParameters",
            "path": "GuidanceResponse.outputParameters",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Parameters"
                ]
              }
            ]
          },
          {
            "id": "GuidanceResponse.result",
            "path": "GuidanceResponse.result",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/RequestGroup"
                ]
              }
            ]
          },
          {
            "id": "GuidanceResponse.dataRequirement",
            "path": "GuidanceResponse.dataRequirement",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "DataRequirement"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/HealthcareService",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "HealthcareService",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Entities"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/HealthcareService",
      "version": "4.0.1",
      "name": "HealthcareService",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "HealthcareService",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "HealthcareService",
            "path": "HealthcareService",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.id",
            "path": "HealthcareService.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "HealthcareService.meta",
            "path": "HealthcareService.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "HealthcareService.implicitRules",
            "path": "HealthcareService.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "HealthcareService.language",
            "path": "HealthcareService.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "HealthcareService.text",
            "path": "HealthcareService.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.contained",
            "path": "HealthcareService.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.extension",
            "path": "HealthcareService.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.modifierExtension",
            "path": "HealthcareService.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "HealthcareService.identifier",
            "path": "HealthcareService.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "HealthcareService.active",
            "path": "HealthcareService.active",
            "comment": "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "HealthcareService.providedBy",
            "path": "HealthcareService.providedBy",
            "comment": "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",
            "base": {
              "path": "HealthcareService.providedBy",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "HealthcareService.category",
            "path": "HealthcareService.category",
            "comment": "Selecting a Service Category then determines the list of relevant service types that can be selected in the primary service type.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-category"
                }
              ],
              "strength": "example",
              "description": "A category of the service(s) that could be provided.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-category"
            }
          },
          {
            "id": "HealthcareService.type",
            "path": "HealthcareService.type",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-type"
                }
              ],
              "strength": "example",
              "description": "Additional details about where the content was created (e.g. clinical specialty).",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
            }
          },
          {
            "id": "HealthcareService.specialty",
            "path": "HealthcareService.specialty",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.specialty",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-specialty"
                }
              ],
              "strength": "preferred",
              "description": "A specialty that a healthcare service may provide.",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "HealthcareService.location",
            "path": "HealthcareService.location",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.location",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "HealthcareService.name",
            "path": "HealthcareService.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "HealthcareService.comment",
            "path": "HealthcareService.comment",
            "comment": "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",
            "base": {
              "path": "HealthcareService.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "HealthcareService.extraDetails",
            "path": "HealthcareService.extraDetails",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.extraDetails",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.photo",
            "path": "HealthcareService.photo",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.photo",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "HealthcareService.telecom",
            "path": "HealthcareService.telecom",
            "comment": "If this is empty, then refer to the location's contacts.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.coverageArea",
            "path": "HealthcareService.coverageArea",
            "comment": "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": "*",
            "base": {
              "path": "HealthcareService.coverageArea",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.serviceProvisionCode",
            "path": "HealthcareService.serviceProvisionCode",
            "comment": "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": "*",
            "base": {
              "path": "HealthcareService.serviceProvisionCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProvisionConditions"
                }
              ],
              "strength": "example",
              "description": "The code(s) that detail the conditions under which the healthcare service is available/offered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-provision-conditions"
            }
          },
          {
            "id": "HealthcareService.eligibility",
            "path": "HealthcareService.eligibility",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.eligibility",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.eligibility.id",
            "path": "HealthcareService.eligibility.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.eligibility.extension",
            "path": "HealthcareService.eligibility.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.eligibility.modifierExtension",
            "path": "HealthcareService.eligibility.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "HealthcareService.eligibility.code",
            "path": "HealthcareService.eligibility.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.eligibility.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceEligibility"
                }
              ],
              "strength": "example",
              "description": "Coded values underwhich a specific service is made available."
            }
          },
          {
            "id": "HealthcareService.eligibility.comment",
            "path": "HealthcareService.eligibility.comment",
            "comment": "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",
            "base": {
              "path": "HealthcareService.eligibility.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.program",
            "path": "HealthcareService.program",
            "comment": "Programs are often defined externally to an Organization, commonly by governments; e.g. Home and Community Care Programs, Homeless Program, ….",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.program",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Program"
                }
              ],
              "strength": "example",
              "description": "Government or local programs that this service applies to.",
              "valueSet": "http://hl7.org/fhir/ValueSet/program"
            }
          },
          {
            "id": "HealthcareService.characteristic",
            "path": "HealthcareService.characteristic",
            "comment": "These could be such things as is wheelchair accessible.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.characteristic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceCharacteristic"
                }
              ],
              "strength": "example",
              "description": "A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy)."
            }
          },
          {
            "id": "HealthcareService.communication",
            "path": "HealthcareService.communication",
            "comment": "When using this property it indicates that the service is available with this language, it is not derived from the practitioners, and not all are required to use this language, just that this language is available while scheduling.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.communication",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "HealthcareService.referralMethod",
            "path": "HealthcareService.referralMethod",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.referralMethod",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ReferralMethod"
                }
              ],
              "strength": "example",
              "description": "The methods of referral can be used when referring to a specific HealthCareService resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-referral-method"
            }
          },
          {
            "id": "HealthcareService.appointmentRequired",
            "path": "HealthcareService.appointmentRequired",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.appointmentRequired",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.availableTime",
            "path": "HealthcareService.availableTime",
            "comment": "More detailed availability information may be provided in associated Schedule/Slot resources.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.availableTime",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.availableTime.id",
            "path": "HealthcareService.availableTime.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.availableTime.extension",
            "path": "HealthcareService.availableTime.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.availableTime.modifierExtension",
            "path": "HealthcareService.availableTime.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "HealthcareService.availableTime.daysOfWeek",
            "path": "HealthcareService.availableTime.daysOfWeek",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.availableTime.daysOfWeek",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DaysOfWeek"
                }
              ],
              "strength": "required",
              "description": "The days of the week.",
              "valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1"
            }
          },
          {
            "id": "HealthcareService.availableTime.allDay",
            "path": "HealthcareService.availableTime.allDay",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.availableTime.allDay",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.availableTime.availableStartTime",
            "path": "HealthcareService.availableTime.availableStartTime",
            "comment": "The time zone is expected to be for where this HealthcareService is provided at.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.availableTime.availableStartTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "time"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.availableTime.availableEndTime",
            "path": "HealthcareService.availableTime.availableEndTime",
            "comment": "The time zone is expected to be for where this HealthcareService is provided at.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.availableTime.availableEndTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "time"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.notAvailable",
            "path": "HealthcareService.notAvailable",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.notAvailable",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.notAvailable.id",
            "path": "HealthcareService.notAvailable.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.notAvailable.extension",
            "path": "HealthcareService.notAvailable.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.notAvailable.modifierExtension",
            "path": "HealthcareService.notAvailable.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "HealthcareService.notAvailable.description",
            "path": "HealthcareService.notAvailable.description",
            "min": 1,
            "max": "1",
            "base": {
              "path": "HealthcareService.notAvailable.description",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.notAvailable.during",
            "path": "HealthcareService.notAvailable.during",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.notAvailable.during",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.availabilityExceptions",
            "path": "HealthcareService.availabilityExceptions",
            "min": 0,
            "max": "1",
            "base": {
              "path": "HealthcareService.availabilityExceptions",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "HealthcareService.endpoint",
            "path": "HealthcareService.endpoint",
            "min": 0,
            "max": "*",
            "base": {
              "path": "HealthcareService.endpoint",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "HealthcareService",
            "path": "HealthcareService",
            "min": 0,
            "max": "*"
          },
          {
            "id": "HealthcareService.identifier",
            "path": "HealthcareService.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "HealthcareService.active",
            "path": "HealthcareService.active",
            "comment": "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "HealthcareService.providedBy",
            "path": "HealthcareService.providedBy",
            "comment": "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",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "HealthcareService.category",
            "path": "HealthcareService.category",
            "comment": "Selecting a Service Category then determines the list of relevant service types that can be selected in the primary service type.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-category"
                }
              ],
              "strength": "example",
              "description": "A category of the service(s) that could be provided.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-category"
            }
          },
          {
            "id": "HealthcareService.type",
            "path": "HealthcareService.type",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-type"
                }
              ],
              "strength": "example",
              "description": "Additional details about where the content was created (e.g. clinical specialty).",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
            }
          },
          {
            "id": "HealthcareService.specialty",
            "path": "HealthcareService.specialty",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-specialty"
                }
              ],
              "strength": "preferred",
              "description": "A specialty that a healthcare service may provide.",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "HealthcareService.location",
            "path": "HealthcareService.location",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "HealthcareService.name",
            "path": "HealthcareService.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "HealthcareService.comment",
            "path": "HealthcareService.comment",
            "comment": "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
          },
          {
            "id": "HealthcareService.extraDetails",
            "path": "HealthcareService.extraDetails",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "HealthcareService.photo",
            "path": "HealthcareService.photo",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "isSummary": true
          },
          {
            "id": "HealthcareService.telecom",
            "path": "HealthcareService.telecom",
            "comment": "If this is empty, then refer to the location's contacts.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ]
          },
          {
            "id": "HealthcareService.coverageArea",
            "path": "HealthcareService.coverageArea",
            "comment": "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",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "HealthcareService.serviceProvisionCode",
            "path": "HealthcareService.serviceProvisionCode",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceProvisionConditions"
                }
              ],
              "strength": "example",
              "description": "The code(s) that detail the conditions under which the healthcare service is available/offered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-provision-conditions"
            }
          },
          {
            "id": "HealthcareService.eligibility",
            "path": "HealthcareService.eligibility",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "HealthcareService.eligibility.code",
            "path": "HealthcareService.eligibility.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceEligibility"
                }
              ],
              "strength": "example",
              "description": "Coded values underwhich a specific service is made available."
            }
          },
          {
            "id": "HealthcareService.eligibility.comment",
            "path": "HealthcareService.eligibility.comment",
            "comment": "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": "markdown"
              }
            ]
          },
          {
            "id": "HealthcareService.program",
            "path": "HealthcareService.program",
            "comment": "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": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Program"
                }
              ],
              "strength": "example",
              "description": "Government or local programs that this service applies to.",
              "valueSet": "http://hl7.org/fhir/ValueSet/program"
            }
          },
          {
            "id": "HealthcareService.characteristic",
            "path": "HealthcareService.characteristic",
            "comment": "These could be such things as is wheelchair accessible.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceCharacteristic"
                }
              ],
              "strength": "example",
              "description": "A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy)."
            }
          },
          {
            "id": "HealthcareService.communication",
            "path": "HealthcareService.communication",
            "comment": "When using this property it indicates that the service is available with this language, it is not derived from the practitioners, and not all are required to use this language, just that this language is available while scheduling.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "HealthcareService.referralMethod",
            "path": "HealthcareService.referralMethod",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ReferralMethod"
                }
              ],
              "strength": "example",
              "description": "The methods of referral can be used when referring to a specific HealthCareService resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-referral-method"
            }
          },
          {
            "id": "HealthcareService.appointmentRequired",
            "path": "HealthcareService.appointmentRequired",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "HealthcareService.availableTime",
            "path": "HealthcareService.availableTime",
            "comment": "More detailed availability information may be provided in associated Schedule/Slot resources.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "HealthcareService.availableTime.daysOfWeek",
            "path": "HealthcareService.availableTime.daysOfWeek",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DaysOfWeek"
                }
              ],
              "strength": "required",
              "description": "The days of the week.",
              "valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1"
            }
          },
          {
            "id": "HealthcareService.availableTime.allDay",
            "path": "HealthcareService.availableTime.allDay",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "HealthcareService.availableTime.availableStartTime",
            "path": "HealthcareService.availableTime.availableStartTime",
            "comment": "The time zone is expected to be for where this HealthcareService is provided at.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "time"
              }
            ]
          },
          {
            "id": "HealthcareService.availableTime.availableEndTime",
            "path": "HealthcareService.availableTime.availableEndTime",
            "comment": "The time zone is expected to be for where this HealthcareService is provided at.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "time"
              }
            ]
          },
          {
            "id": "HealthcareService.notAvailable",
            "path": "HealthcareService.notAvailable",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "HealthcareService.notAvailable.description",
            "path": "HealthcareService.notAvailable.description",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "HealthcareService.notAvailable.during",
            "path": "HealthcareService.notAvailable.during",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "HealthcareService.availabilityExceptions",
            "path": "HealthcareService.availabilityExceptions",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "HealthcareService.endpoint",
            "path": "HealthcareService.endpoint",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ImagingStudy",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Diagnostics"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "ii"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
      "version": "4.0.1",
      "name": "ImagingStudy",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ImagingStudy",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ImagingStudy",
            "path": "ImagingStudy",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.id",
            "path": "ImagingStudy.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.meta",
            "path": "ImagingStudy.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.implicitRules",
            "path": "ImagingStudy.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ImagingStudy.language",
            "path": "ImagingStudy.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ImagingStudy.text",
            "path": "ImagingStudy.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.contained",
            "path": "ImagingStudy.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.extension",
            "path": "ImagingStudy.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.modifierExtension",
            "path": "ImagingStudy.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ImagingStudy.identifier",
            "path": "ImagingStudy.identifier",
            "comment": "See discussion under [Imaging Study Implementation Notes](imagingstudy.html#notes) for encoding of DICOM Study Instance UID. Accession Number should use ACSN Identifier type.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.status",
            "path": "ImagingStudy.status",
            "comment": "Unknown does not represent \"other\" - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImagingStudy.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImagingStudyStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the ImagingStudy.",
              "valueSet": "http://hl7.org/fhir/ValueSet/imagingstudy-status|4.0.1"
            }
          },
          {
            "id": "ImagingStudy.modality",
            "path": "ImagingStudy.modality",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.modality",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImagingModality"
                }
              ],
              "strength": "extensible",
              "description": "Type of acquired data in the instance.",
              "valueSet": "http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_29.html"
            }
          },
          {
            "id": "ImagingStudy.subject",
            "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.subject",
            "comment": "QA phantoms can be recorded with a Device; multiple subjects (such as mice) can be recorded with a Group.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImagingStudy.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.encounter",
            "path": "ImagingStudy.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission test).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.started",
            "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",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.started",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueDateTime": "2011-01-01T11:01:20+03:00"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.basedOn",
            "path": "ImagingStudy.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/Appointment",
                  "http://hl7.org/fhir/StructureDefinition/AppointmentResponse",
                  "http://hl7.org/fhir/StructureDefinition/Task"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.referrer",
            "path": "ImagingStudy.referrer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.referrer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.interpreter",
            "path": "ImagingStudy.interpreter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.interpreter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.endpoint",
            "path": "ImagingStudy.endpoint",
            "comment": "Typical endpoint types include DICOM WADO-RS, which is used to retrieve DICOM instances in native or rendered (e.g., JPG, PNG), formats using a RESTful API; DICOM WADO-URI, which can similarly retrieve native or rendered instances, except using an HTTP query-based approach; DICOM QIDO-RS, which allows RESTful query for DICOM information without retrieving the actual instances; or IHE Invoke Image Display (IID), which provides standard invocation of an imaging web viewer.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.endpoint",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.numberOfSeries",
            "path": "ImagingStudy.numberOfSeries",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.numberOfSeries",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.numberOfInstances",
            "path": "ImagingStudy.numberOfInstances",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.numberOfInstances",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.procedureReference",
            "path": "ImagingStudy.procedureReference",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.procedureReference",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.procedureCode",
            "path": "ImagingStudy.procedureCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.procedureCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImagingProcedureCode"
                }
              ],
              "strength": "extensible",
              "description": "The performed procedure type.",
              "valueSet": "http://www.rsna.org/RadLex_Playbook.aspx"
            }
          },
          {
            "id": "ImagingStudy.location",
            "path": "ImagingStudy.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.reasonCode",
            "path": "ImagingStudy.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImagingReason"
                }
              ],
              "strength": "example",
              "description": "The reason for the study.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason"
            }
          },
          {
            "id": "ImagingStudy.reasonReference",
            "path": "ImagingStudy.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/Media",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.note",
            "path": "ImagingStudy.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.description",
            "path": "ImagingStudy.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series",
            "path": "ImagingStudy.series",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.series",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.id",
            "path": "ImagingStudy.series.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.series.extension",
            "path": "ImagingStudy.series.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.series.modifierExtension",
            "path": "ImagingStudy.series.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.uid",
            "path": "ImagingStudy.series.uid",
            "comment": "See [DICOM PS3.3 C.7.3](http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.3.html).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.uid",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueId": "2.16.124.113543.6003.2588828330.45298.17418.2723805630"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.number",
            "path": "ImagingStudy.series.number",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.number",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueUnsignedInt": 3
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.modality",
            "path": "ImagingStudy.series.modality",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.modality",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImagingModality"
                }
              ],
              "strength": "extensible",
              "description": "Type of acquired data in the instance.",
              "valueSet": "http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_29.html"
            }
          },
          {
            "id": "ImagingStudy.series.description",
            "path": "ImagingStudy.series.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueString": "CT Surview 180"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.numberOfInstances",
            "path": "ImagingStudy.series.numberOfInstances",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.numberOfInstances",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.endpoint",
            "path": "ImagingStudy.series.endpoint",
            "comment": "Typical endpoint types include DICOM WADO-RS, which is used to retrieve DICOM instances in native or rendered (e.g., JPG, PNG) formats using a RESTful API; DICOM WADO-URI, which can similarly retrieve native or rendered instances, except using an HTTP query-based approach; and DICOM QIDO-RS, which allows RESTful query for DICOM information without retrieving the actual instances.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.series.endpoint",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.bodySite",
            "path": "ImagingStudy.series.bodySite",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.bodySite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "ImagingStudy.series.laterality",
            "path": "ImagingStudy.series.laterality",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.laterality",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Laterality"
                }
              ],
              "strength": "example",
              "description": "Codes describing body site laterality (left, right, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/bodysite-laterality"
            }
          },
          {
            "id": "ImagingStudy.series.specimen",
            "path": "ImagingStudy.series.specimen",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.series.specimen",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.started",
            "path": "ImagingStudy.series.started",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.started",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.performer",
            "path": "ImagingStudy.series.performer",
            "comment": "If the person who performed the series is not known, their Organization may be recorded. A patient, or related person, may be the performer, e.g. for patient-captured images.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.series.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.performer.id",
            "path": "ImagingStudy.series.performer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.series.performer.extension",
            "path": "ImagingStudy.series.performer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.series.performer.modifierExtension",
            "path": "ImagingStudy.series.performer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.performer.function",
            "path": "ImagingStudy.series.performer.function",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.performer.function",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EventPerformerFunction"
                }
              ],
              "strength": "extensible",
              "description": "The type of involvement of the performer.",
              "valueSet": "http://hl7.org/fhir/ValueSet/series-performer-function"
            }
          },
          {
            "id": "ImagingStudy.series.performer.actor",
            "path": "ImagingStudy.series.performer.actor",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.performer.actor",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.instance",
            "path": "ImagingStudy.series.instance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImagingStudy.series.instance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.series.instance.id",
            "path": "ImagingStudy.series.instance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.series.instance.extension",
            "path": "ImagingStudy.series.instance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.series.instance.modifierExtension",
            "path": "ImagingStudy.series.instance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.instance.uid",
            "path": "ImagingStudy.series.instance.uid",
            "comment": "See  [DICOM PS3.3 C.12.1](http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.12.html#sect_C.12.1).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.instance.uid",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueId": "2.16.124.113543.6003.189642796.63084.16748.2599092903"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.series.instance.sopClass",
            "path": "ImagingStudy.series.instance.sopClass",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.instance.sopClass",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "sopClass"
                }
              ],
              "strength": "extensible",
              "description": "The sopClass for the instance.",
              "valueSet": "http://dicom.nema.org/medical/dicom/current/output/chtml/part04/sect_B.5.html#table_B.5-1"
            }
          },
          {
            "id": "ImagingStudy.series.instance.number",
            "path": "ImagingStudy.series.instance.number",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.instance.number",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueUnsignedInt": 1
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImagingStudy.series.instance.title",
            "path": "ImagingStudy.series.instance.title",
            "comment": "Particularly for post-acquisition analytic objects, such as SR, presentation states, value mapping, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImagingStudy.series.instance.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ImagingStudy",
            "path": "ImagingStudy",
            "min": 0,
            "max": "*"
          },
          {
            "id": "ImagingStudy.identifier",
            "path": "ImagingStudy.identifier",
            "comment": "See discussion under [Imaging Study Implementation Notes](imagingstudy.html#notes) for encoding of DICOM Study Instance UID. Accession Number should use ACSN Identifier type.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.status",
            "path": "ImagingStudy.status",
            "comment": "Unknown does not represent \"other\" - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImagingStudyStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the ImagingStudy.",
              "valueSet": "http://hl7.org/fhir/ValueSet/imagingstudy-status|4.0.1"
            }
          },
          {
            "id": "ImagingStudy.modality",
            "path": "ImagingStudy.modality",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImagingModality"
                }
              ],
              "strength": "extensible",
              "description": "Type of acquired data in the instance.",
              "valueSet": "http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_29.html"
            }
          },
          {
            "id": "ImagingStudy.subject",
            "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.subject",
            "comment": "QA phantoms can be recorded with a Device; multiple subjects (such as mice) can be recorded with a Group.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.encounter",
            "path": "ImagingStudy.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission test).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.started",
            "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",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueDateTime": "2011-01-01T11:01:20+03:00"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.basedOn",
            "path": "ImagingStudy.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/Appointment",
                  "http://hl7.org/fhir/StructureDefinition/AppointmentResponse",
                  "http://hl7.org/fhir/StructureDefinition/Task"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.referrer",
            "path": "ImagingStudy.referrer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.interpreter",
            "path": "ImagingStudy.interpreter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.endpoint",
            "path": "ImagingStudy.endpoint",
            "comment": "Typical endpoint types include DICOM WADO-RS, which is used to retrieve DICOM instances in native or rendered (e.g., JPG, PNG), formats using a RESTful API; DICOM WADO-URI, which can similarly retrieve native or rendered instances, except using an HTTP query-based approach; DICOM QIDO-RS, which allows RESTful query for DICOM information without retrieving the actual instances; or IHE Invoke Image Display (IID), which provides standard invocation of an imaging web viewer.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.numberOfSeries",
            "path": "ImagingStudy.numberOfSeries",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.numberOfInstances",
            "path": "ImagingStudy.numberOfInstances",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.procedureReference",
            "path": "ImagingStudy.procedureReference",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.procedureCode",
            "path": "ImagingStudy.procedureCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImagingProcedureCode"
                }
              ],
              "strength": "extensible",
              "description": "The performed procedure type.",
              "valueSet": "http://www.rsna.org/RadLex_Playbook.aspx"
            }
          },
          {
            "id": "ImagingStudy.location",
            "path": "ImagingStudy.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.reasonCode",
            "path": "ImagingStudy.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImagingReason"
                }
              ],
              "strength": "example",
              "description": "The reason for the study.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason"
            }
          },
          {
            "id": "ImagingStudy.reasonReference",
            "path": "ImagingStudy.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/Media",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.note",
            "path": "ImagingStudy.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.description",
            "path": "ImagingStudy.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series",
            "path": "ImagingStudy.series",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.uid",
            "path": "ImagingStudy.series.uid",
            "comment": "See [DICOM PS3.3 C.7.3](http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.3.html).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueId": "2.16.124.113543.6003.2588828330.45298.17418.2723805630"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.number",
            "path": "ImagingStudy.series.number",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueUnsignedInt": 3
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.modality",
            "path": "ImagingStudy.series.modality",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImagingModality"
                }
              ],
              "strength": "extensible",
              "description": "Type of acquired data in the instance.",
              "valueSet": "http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_29.html"
            }
          },
          {
            "id": "ImagingStudy.series.description",
            "path": "ImagingStudy.series.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueString": "CT Surview 180"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.numberOfInstances",
            "path": "ImagingStudy.series.numberOfInstances",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.endpoint",
            "path": "ImagingStudy.series.endpoint",
            "comment": "Typical endpoint types include DICOM WADO-RS, which is used to retrieve DICOM instances in native or rendered (e.g., JPG, PNG) formats using a RESTful API; DICOM WADO-URI, which can similarly retrieve native or rendered instances, except using an HTTP query-based approach; and DICOM QIDO-RS, which allows RESTful query for DICOM information without retrieving the actual instances.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.bodySite",
            "path": "ImagingStudy.series.bodySite",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "ImagingStudy.series.laterality",
            "path": "ImagingStudy.series.laterality",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Laterality"
                }
              ],
              "strength": "example",
              "description": "Codes describing body site laterality (left, right, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/bodysite-laterality"
            }
          },
          {
            "id": "ImagingStudy.series.specimen",
            "path": "ImagingStudy.series.specimen",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.started",
            "path": "ImagingStudy.series.started",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.performer",
            "path": "ImagingStudy.series.performer",
            "comment": "If the person who performed the series is not known, their Organization may be recorded. A patient, or related person, may be the performer, e.g. for patient-captured images.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.performer.function",
            "path": "ImagingStudy.series.performer.function",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EventPerformerFunction"
                }
              ],
              "strength": "extensible",
              "description": "The type of involvement of the performer.",
              "valueSet": "http://hl7.org/fhir/ValueSet/series-performer-function"
            }
          },
          {
            "id": "ImagingStudy.series.performer.actor",
            "path": "ImagingStudy.series.performer.actor",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImagingStudy.series.instance",
            "path": "ImagingStudy.series.instance",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ImagingStudy.series.instance.uid",
            "path": "ImagingStudy.series.instance.uid",
            "comment": "See  [DICOM PS3.3 C.12.1](http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.12.html#sect_C.12.1).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueId": "2.16.124.113543.6003.189642796.63084.16748.2599092903"
              }
            ]
          },
          {
            "id": "ImagingStudy.series.instance.sopClass",
            "path": "ImagingStudy.series.instance.sopClass",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "sopClass"
                }
              ],
              "strength": "extensible",
              "description": "The sopClass for the instance.",
              "valueSet": "http://dicom.nema.org/medical/dicom/current/output/chtml/part04/sect_B.5.html#table_B.5-1"
            }
          },
          {
            "id": "ImagingStudy.series.instance.number",
            "path": "ImagingStudy.series.instance.number",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueUnsignedInt": 1
              }
            ]
          },
          {
            "id": "ImagingStudy.series.instance.title",
            "path": "ImagingStudy.series.instance.title",
            "comment": "Particularly for post-acquisition analytic objects, such as SR, presentation states, value mapping, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Immunization",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Immunization",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Medications"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pher"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Immunization",
      "version": "4.0.1",
      "name": "Immunization",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Immunization",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Immunization",
            "path": "Immunization",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.id",
            "path": "Immunization.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Immunization.meta",
            "path": "Immunization.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Immunization.implicitRules",
            "path": "Immunization.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Immunization.language",
            "path": "Immunization.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Immunization.text",
            "path": "Immunization.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.contained",
            "path": "Immunization.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.extension",
            "path": "Immunization.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.modifierExtension",
            "path": "Immunization.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Immunization.identifier",
            "path": "Immunization.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.status",
            "path": "Immunization.status",
            "comment": "Will generally be set to show that the immunization has been completed or not done.  This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Immunization.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains statuses entered-in-error and not-done which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationStatus"
                }
              ],
              "strength": "required",
              "description": "A set of codes indicating the current status of an Immunization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-status|4.0.1"
            }
          },
          {
            "id": "Immunization.statusReason",
            "path": "Immunization.statusReason",
            "comment": "This is generally only used for the status of \"not-done\". The reason for performing the immunization event is captured in reasonCode, not here.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.statusReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationStatusReason"
                }
              ],
              "strength": "example",
              "description": "The reason why a vaccine was not administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-status-reason"
            }
          },
          {
            "id": "Immunization.vaccineCode",
            "path": "Immunization.vaccineCode",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Immunization.vaccineCode",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VaccineCode"
                }
              ],
              "strength": "example",
              "description": "The code for vaccine product administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vaccine-code"
            }
          },
          {
            "id": "Immunization.patient",
            "path": "Immunization.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Immunization.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Immunization.encounter",
            "path": "Immunization.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.occurrence[x]",
            "path": "Immunization.occurrence[x]",
            "comment": "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. An exact date is always preferable, but the use of the String data type is acceptable when an exact date is not known. A small number of vaccines (e.g. live oral typhoid vaccine) are given as a series of patient self-administered dose over a span of time. In cases like this, often, only the first dose (typically a provider supervised dose) is recorded with the occurrence indicating the date/time of the first dose.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Immunization.occurrence[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Immunization.recorded",
            "path": "Immunization.recorded",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.recorded",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.primarySource",
            "path": "Immunization.primarySource",
            "comment": "Reflects the “reliability” of the content.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.primarySource",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Immunization.reportOrigin",
            "path": "Immunization.reportOrigin",
            "comment": "Should not be populated if primarySource = True, not required even if primarySource = False.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.reportOrigin",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationReportOrigin"
                }
              ],
              "strength": "example",
              "description": "The source of the data for a record which is not from a primary source.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-origin"
            }
          },
          {
            "id": "Immunization.location",
            "path": "Immunization.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.manufacturer",
            "path": "Immunization.manufacturer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.manufacturer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.lotNumber",
            "path": "Immunization.lotNumber",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.lotNumber",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.expirationDate",
            "path": "Immunization.expirationDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.expirationDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.site",
            "path": "Immunization.site",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.site",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationSite"
                }
              ],
              "strength": "example",
              "description": "The site at which the vaccine was administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-site"
            }
          },
          {
            "id": "Immunization.route",
            "path": "Immunization.route",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.route",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationRoute"
                }
              ],
              "strength": "example",
              "description": "The route by which the vaccine was administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-route"
            }
          },
          {
            "id": "Immunization.doseQuantity",
            "path": "Immunization.doseQuantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.doseQuantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.performer",
            "path": "Immunization.performer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Immunization.performer.id",
            "path": "Immunization.performer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.performer.extension",
            "path": "Immunization.performer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.performer.modifierExtension",
            "path": "Immunization.performer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Immunization.performer.function",
            "path": "Immunization.performer.function",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.performer.function",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationFunction"
                }
              ],
              "strength": "extensible",
              "description": "The role a practitioner or organization plays in the immunization event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-function"
            }
          },
          {
            "id": "Immunization.performer.actor",
            "path": "Immunization.performer.actor",
            "comment": "When the individual practitioner who performed the action is known, it is best to send.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Immunization.performer.actor",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Immunization.note",
            "path": "Immunization.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Immunization.reasonCode",
            "path": "Immunization.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationReason"
                }
              ],
              "strength": "example",
              "description": "The reason why a vaccine was administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-reason"
            }
          },
          {
            "id": "Immunization.reasonReference",
            "path": "Immunization.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.isSubpotent",
            "path": "Immunization.isSubpotent",
            "comment": "Typically, the recognition of the dose being sub-potent is retrospective, after the administration (ex. notification of a manufacturer recall after administration). However, in the case of a partial administration (the patient moves unexpectedly and only some of the dose is actually administered), subpotency may be recognized immediately, but it is still important to record the event.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.isSubpotent",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "By default, a dose should be considered to be potent.",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because an immunization event with a subpotent vaccine doesn't protect the patient the same way as a potent dose.",
            "isSummary": true
          },
          {
            "id": "Immunization.subpotentReason",
            "path": "Immunization.subpotentReason",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization.subpotentReason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubpotentReason"
                }
              ],
              "strength": "example",
              "description": "The reason why a dose is considered to be subpotent.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-subpotent-reason"
            }
          },
          {
            "id": "Immunization.education",
            "path": "Immunization.education",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization.education",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "imm-1",
                "severity": "error",
                "human": "One of documentType or reference SHALL be present",
                "expression": "documentType.exists() or reference.exists()",
                "xpath": "exists(f:documentType) or exists(f:reference)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.education.id",
            "path": "Immunization.education.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.education.extension",
            "path": "Immunization.education.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.education.modifierExtension",
            "path": "Immunization.education.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Immunization.education.documentType",
            "path": "Immunization.education.documentType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.education.documentType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.education.reference",
            "path": "Immunization.education.reference",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.education.reference",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.education.publicationDate",
            "path": "Immunization.education.publicationDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.education.publicationDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.education.presentationDate",
            "path": "Immunization.education.presentationDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.education.presentationDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.programEligibility",
            "path": "Immunization.programEligibility",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization.programEligibility",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramEligibility"
                }
              ],
              "strength": "example",
              "description": "The patient's eligibility for a vaccation program.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-program-eligibility"
            }
          },
          {
            "id": "Immunization.fundingSource",
            "path": "Immunization.fundingSource",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.fundingSource",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FundingSource"
                }
              ],
              "strength": "example",
              "description": "The source of funding used to purchase the vaccine administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-funding-source"
            }
          },
          {
            "id": "Immunization.reaction",
            "path": "Immunization.reaction",
            "comment": "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": "*",
            "base": {
              "path": "Immunization.reaction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.reaction.id",
            "path": "Immunization.reaction.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.reaction.extension",
            "path": "Immunization.reaction.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.reaction.modifierExtension",
            "path": "Immunization.reaction.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Immunization.reaction.date",
            "path": "Immunization.reaction.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.reaction.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.reaction.detail",
            "path": "Immunization.reaction.detail",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.reaction.detail",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.reaction.reported",
            "path": "Immunization.reaction.reported",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.reaction.reported",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.protocolApplied",
            "path": "Immunization.protocolApplied",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization.protocolApplied",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.protocolApplied.id",
            "path": "Immunization.protocolApplied.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.protocolApplied.extension",
            "path": "Immunization.protocolApplied.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.protocolApplied.modifierExtension",
            "path": "Immunization.protocolApplied.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Immunization.protocolApplied.series",
            "path": "Immunization.protocolApplied.series",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.protocolApplied.series",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.protocolApplied.authority",
            "path": "Immunization.protocolApplied.authority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.protocolApplied.authority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.protocolApplied.targetDisease",
            "path": "Immunization.protocolApplied.targetDisease",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Immunization.protocolApplied.targetDisease",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TargetDisease"
                }
              ],
              "strength": "example",
              "description": "The vaccine preventable disease the dose is being administered for.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-target-disease"
            }
          },
          {
            "id": "Immunization.protocolApplied.doseNumber[x]",
            "path": "Immunization.protocolApplied.doseNumber[x]",
            "comment": "The use of an integer is preferred if known. A string should only be used in cases where an integer is not available (such as when documenting a recurring booster dose).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Immunization.protocolApplied.doseNumber[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Immunization.protocolApplied.seriesDoses[x]",
            "path": "Immunization.protocolApplied.seriesDoses[x]",
            "comment": "The use of an integer is preferred if known. A string should only be used in cases where an integer is not available (such as when documenting a recurring booster dose).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Immunization.protocolApplied.seriesDoses[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Immunization",
            "path": "Immunization",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Immunization.identifier",
            "path": "Immunization.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Immunization.status",
            "path": "Immunization.status",
            "comment": "Will generally be set to show that the immunization has been completed or not done.  This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains statuses entered-in-error and not-done which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationStatus"
                }
              ],
              "strength": "required",
              "description": "A set of codes indicating the current status of an Immunization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-status|4.0.1"
            }
          },
          {
            "id": "Immunization.statusReason",
            "path": "Immunization.statusReason",
            "comment": "This is generally only used for the status of \"not-done\". The reason for performing the immunization event is captured in reasonCode, not here.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationStatusReason"
                }
              ],
              "strength": "example",
              "description": "The reason why a vaccine was not administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-status-reason"
            }
          },
          {
            "id": "Immunization.vaccineCode",
            "path": "Immunization.vaccineCode",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VaccineCode"
                }
              ],
              "strength": "example",
              "description": "The code for vaccine product administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vaccine-code"
            }
          },
          {
            "id": "Immunization.patient",
            "path": "Immunization.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Immunization.encounter",
            "path": "Immunization.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          },
          {
            "id": "Immunization.occurrence[x]",
            "path": "Immunization.occurrence[x]",
            "comment": "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. An exact date is always preferable, but the use of the String data type is acceptable when an exact date is not known. A small number of vaccines (e.g. live oral typhoid vaccine) are given as a series of patient self-administered dose over a span of time. In cases like this, often, only the first dose (typically a provider supervised dose) is recorded with the occurrence indicating the date/time of the first dose.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Immunization.recorded",
            "path": "Immunization.recorded",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Immunization.primarySource",
            "path": "Immunization.primarySource",
            "comment": "Reflects the “reliability” of the content.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Immunization.reportOrigin",
            "path": "Immunization.reportOrigin",
            "comment": "Should not be populated if primarySource = True, not required even if primarySource = False.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationReportOrigin"
                }
              ],
              "strength": "example",
              "description": "The source of the data for a record which is not from a primary source.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-origin"
            }
          },
          {
            "id": "Immunization.location",
            "path": "Immunization.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "Immunization.manufacturer",
            "path": "Immunization.manufacturer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Immunization.lotNumber",
            "path": "Immunization.lotNumber",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Immunization.expirationDate",
            "path": "Immunization.expirationDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "Immunization.site",
            "path": "Immunization.site",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationSite"
                }
              ],
              "strength": "example",
              "description": "The site at which the vaccine was administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-site"
            }
          },
          {
            "id": "Immunization.route",
            "path": "Immunization.route",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationRoute"
                }
              ],
              "strength": "example",
              "description": "The route by which the vaccine was administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-route"
            }
          },
          {
            "id": "Immunization.doseQuantity",
            "path": "Immunization.doseQuantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "Immunization.performer",
            "path": "Immunization.performer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Immunization.performer.function",
            "path": "Immunization.performer.function",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationFunction"
                }
              ],
              "strength": "extensible",
              "description": "The role a practitioner or organization plays in the immunization event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-function"
            }
          },
          {
            "id": "Immunization.performer.actor",
            "path": "Immunization.performer.actor",
            "comment": "When the individual practitioner who performed the action is known, it is best to send.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Immunization.note",
            "path": "Immunization.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Immunization.reasonCode",
            "path": "Immunization.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationReason"
                }
              ],
              "strength": "example",
              "description": "The reason why a vaccine was administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-reason"
            }
          },
          {
            "id": "Immunization.reasonReference",
            "path": "Immunization.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                ]
              }
            ]
          },
          {
            "id": "Immunization.isSubpotent",
            "path": "Immunization.isSubpotent",
            "comment": "Typically, the recognition of the dose being sub-potent is retrospective, after the administration (ex. notification of a manufacturer recall after administration). However, in the case of a partial administration (the patient moves unexpectedly and only some of the dose is actually administered), subpotency may be recognized immediately, but it is still important to record the event.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "By default, a dose should be considered to be potent.",
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because an immunization event with a subpotent vaccine doesn't protect the patient the same way as a potent dose.",
            "isSummary": true
          },
          {
            "id": "Immunization.subpotentReason",
            "path": "Immunization.subpotentReason",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubpotentReason"
                }
              ],
              "strength": "example",
              "description": "The reason why a dose is considered to be subpotent.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-subpotent-reason"
            }
          },
          {
            "id": "Immunization.education",
            "path": "Immunization.education",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "imm-1",
                "severity": "error",
                "human": "One of documentType or reference SHALL be present",
                "expression": "documentType.exists() or reference.exists()",
                "xpath": "exists(f:documentType) or exists(f:reference)"
              }
            ]
          },
          {
            "id": "Immunization.education.documentType",
            "path": "Immunization.education.documentType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Immunization.education.reference",
            "path": "Immunization.education.reference",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "Immunization.education.publicationDate",
            "path": "Immunization.education.publicationDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Immunization.education.presentationDate",
            "path": "Immunization.education.presentationDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Immunization.programEligibility",
            "path": "Immunization.programEligibility",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProgramEligibility"
                }
              ],
              "strength": "example",
              "description": "The patient's eligibility for a vaccation program.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-program-eligibility"
            }
          },
          {
            "id": "Immunization.fundingSource",
            "path": "Immunization.fundingSource",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FundingSource"
                }
              ],
              "strength": "example",
              "description": "The source of funding used to purchase the vaccine administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-funding-source"
            }
          },
          {
            "id": "Immunization.reaction",
            "path": "Immunization.reaction",
            "comment": "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"
              }
            ]
          },
          {
            "id": "Immunization.reaction.date",
            "path": "Immunization.reaction.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Immunization.reaction.detail",
            "path": "Immunization.reaction.detail",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ]
          },
          {
            "id": "Immunization.reaction.reported",
            "path": "Immunization.reaction.reported",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "Immunization.protocolApplied",
            "path": "Immunization.protocolApplied",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Immunization.protocolApplied.series",
            "path": "Immunization.protocolApplied.series",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Immunization.protocolApplied.authority",
            "path": "Immunization.protocolApplied.authority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Immunization.protocolApplied.targetDisease",
            "path": "Immunization.protocolApplied.targetDisease",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TargetDisease"
                }
              ],
              "strength": "example",
              "description": "The vaccine preventable disease the dose is being administered for.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-target-disease"
            }
          },
          {
            "id": "Immunization.protocolApplied.doseNumber[x]",
            "path": "Immunization.protocolApplied.doseNumber[x]",
            "comment": "The use of an integer is preferred if known. A string should only be used in cases where an integer is not available (such as when documenting a recurring booster dose).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Immunization.protocolApplied.seriesDoses[x]",
            "path": "Immunization.protocolApplied.seriesDoses[x]",
            "comment": "The use of an integer is preferred if known. A string should only be used in cases where an integer is not available (such as when documenting a recurring booster dose).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ImmunizationEvaluation",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ImmunizationEvaluation",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Medications"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pher"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ImmunizationEvaluation",
      "version": "4.0.1",
      "name": "ImmunizationEvaluation",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ImmunizationEvaluation",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ImmunizationEvaluation",
            "path": "ImmunizationEvaluation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationEvaluation",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.id",
            "path": "ImmunizationEvaluation.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationEvaluation.meta",
            "path": "ImmunizationEvaluation.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationEvaluation.implicitRules",
            "path": "ImmunizationEvaluation.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ImmunizationEvaluation.language",
            "path": "ImmunizationEvaluation.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ImmunizationEvaluation.text",
            "path": "ImmunizationEvaluation.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.contained",
            "path": "ImmunizationEvaluation.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.extension",
            "path": "ImmunizationEvaluation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.modifierExtension",
            "path": "ImmunizationEvaluation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.identifier",
            "path": "ImmunizationEvaluation.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationEvaluation.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.status",
            "path": "ImmunizationEvaluation.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid).",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationEvaluationStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the evaluation being done.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-evaluation-status|4.0.1"
            }
          },
          {
            "id": "ImmunizationEvaluation.patient",
            "path": "ImmunizationEvaluation.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationEvaluation.date",
            "path": "ImmunizationEvaluation.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.authority",
            "path": "ImmunizationEvaluation.authority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.authority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.targetDisease",
            "path": "ImmunizationEvaluation.targetDisease",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.targetDisease",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvaluationTargetDisease"
                }
              ],
              "strength": "example",
              "description": "The vaccine preventable disease the dose is being evaluated against.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-evaluation-target-disease"
            }
          },
          {
            "id": "ImmunizationEvaluation.immunizationEvent",
            "path": "ImmunizationEvaluation.immunizationEvent",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.immunizationEvent",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Immunization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationEvaluation.doseStatus",
            "path": "ImmunizationEvaluation.doseStatus",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.doseStatus",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvaluationDoseStatus"
                }
              ],
              "strength": "example",
              "description": "The status of the administered dose relative to the published recommendations for the target disease.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-evaluation-dose-status"
            }
          },
          {
            "id": "ImmunizationEvaluation.doseStatusReason",
            "path": "ImmunizationEvaluation.doseStatusReason",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationEvaluation.doseStatusReason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvaluationDoseStatusReason"
                }
              ],
              "strength": "example",
              "description": "The reason the dose status was assigned.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-evaluation-dose-status-reason"
            }
          },
          {
            "id": "ImmunizationEvaluation.description",
            "path": "ImmunizationEvaluation.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.series",
            "path": "ImmunizationEvaluation.series",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.series",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.doseNumber[x]",
            "path": "ImmunizationEvaluation.doseNumber[x]",
            "comment": "The use of an integer is preferred if known. A string should only be used in cases where an integer is not available (such as when documenting a recurring booster dose).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.doseNumber[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationEvaluation.seriesDoses[x]",
            "path": "ImmunizationEvaluation.seriesDoses[x]",
            "comment": "The use of an integer is preferred if known. A string should only be used in cases where an integer is not available (such as when documenting a recurring booster dose).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationEvaluation.seriesDoses[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ImmunizationEvaluation",
            "path": "ImmunizationEvaluation",
            "min": 0,
            "max": "*"
          },
          {
            "id": "ImmunizationEvaluation.identifier",
            "path": "ImmunizationEvaluation.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "ImmunizationEvaluation.status",
            "path": "ImmunizationEvaluation.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid).",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationEvaluationStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the evaluation being done.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-evaluation-status|4.0.1"
            }
          },
          {
            "id": "ImmunizationEvaluation.patient",
            "path": "ImmunizationEvaluation.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImmunizationEvaluation.date",
            "path": "ImmunizationEvaluation.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "ImmunizationEvaluation.authority",
            "path": "ImmunizationEvaluation.authority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "ImmunizationEvaluation.targetDisease",
            "path": "ImmunizationEvaluation.targetDisease",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvaluationTargetDisease"
                }
              ],
              "strength": "example",
              "description": "The vaccine preventable disease the dose is being evaluated against.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-evaluation-target-disease"
            }
          },
          {
            "id": "ImmunizationEvaluation.immunizationEvent",
            "path": "ImmunizationEvaluation.immunizationEvent",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Immunization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImmunizationEvaluation.doseStatus",
            "path": "ImmunizationEvaluation.doseStatus",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvaluationDoseStatus"
                }
              ],
              "strength": "example",
              "description": "The status of the administered dose relative to the published recommendations for the target disease.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-evaluation-dose-status"
            }
          },
          {
            "id": "ImmunizationEvaluation.doseStatusReason",
            "path": "ImmunizationEvaluation.doseStatusReason",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EvaluationDoseStatusReason"
                }
              ],
              "strength": "example",
              "description": "The reason the dose status was assigned.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-evaluation-dose-status-reason"
            }
          },
          {
            "id": "ImmunizationEvaluation.description",
            "path": "ImmunizationEvaluation.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImmunizationEvaluation.series",
            "path": "ImmunizationEvaluation.series",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImmunizationEvaluation.doseNumber[x]",
            "path": "ImmunizationEvaluation.doseNumber[x]",
            "comment": "The use of an integer is preferred if known. A string should only be used in cases where an integer is not available (such as when documenting a recurring booster dose).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImmunizationEvaluation.seriesDoses[x]",
            "path": "ImmunizationEvaluation.seriesDoses[x]",
            "comment": "The use of an integer is preferred if known. A string should only be used in cases where an integer is not available (such as when documenting a recurring booster dose).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ImmunizationRecommendation",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Medications"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pher"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
      "version": "4.0.1",
      "name": "ImmunizationRecommendation",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ImmunizationRecommendation",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ImmunizationRecommendation",
            "path": "ImmunizationRecommendation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationRecommendation",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.id",
            "path": "ImmunizationRecommendation.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.meta",
            "path": "ImmunizationRecommendation.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.implicitRules",
            "path": "ImmunizationRecommendation.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.language",
            "path": "ImmunizationRecommendation.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ImmunizationRecommendation.text",
            "path": "ImmunizationRecommendation.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.contained",
            "path": "ImmunizationRecommendation.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.extension",
            "path": "ImmunizationRecommendation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.modifierExtension",
            "path": "ImmunizationRecommendation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.identifier",
            "path": "ImmunizationRecommendation.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationRecommendation.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.patient",
            "path": "ImmunizationRecommendation.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.date",
            "path": "ImmunizationRecommendation.date",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.date",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.authority",
            "path": "ImmunizationRecommendation.authority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.authority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation",
            "path": "ImmunizationRecommendation.recommendation",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ImmunizationRecommendation.recommendation",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "imr-1",
                "severity": "error",
                "human": "One of vaccineCode or targetDisease SHALL be present",
                "expression": "vaccineCode.exists() or targetDisease.exists()",
                "xpath": "exists(f:vaccineCode) or exists(f:targetDisease)"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.recommendation.id",
            "path": "ImmunizationRecommendation.recommendation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation.extension",
            "path": "ImmunizationRecommendation.recommendation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation.modifierExtension",
            "path": "ImmunizationRecommendation.recommendation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.recommendation.vaccineCode",
            "path": "ImmunizationRecommendation.recommendation.vaccineCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.vaccineCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VaccineCode"
                }
              ],
              "strength": "example",
              "description": "The type of vaccine administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vaccine-code"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.targetDisease",
            "path": "ImmunizationRecommendation.recommendation.targetDisease",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.targetDisease",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TargetDisease"
                }
              ],
              "strength": "example",
              "description": "The disease that the recommended vaccination targets.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-recommendation-target-disease"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.contraindicatedVaccineCode",
            "path": "ImmunizationRecommendation.recommendation.contraindicatedVaccineCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.contraindicatedVaccineCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VaccineCode"
                }
              ],
              "strength": "example",
              "description": "The type of vaccine administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vaccine-code"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.forecastStatus",
            "path": "ImmunizationRecommendation.recommendation.forecastStatus",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.forecastStatus",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the forecastStatus indicates whether a patient needs additional doses (due, overdue, etc) or not  (contraindicated, complete, etc).",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationRecommendationStatus"
                }
              ],
              "strength": "example",
              "description": "The patient's status with respect to a vaccination protocol.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-recommendation-status"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.forecastReason",
            "path": "ImmunizationRecommendation.recommendation.forecastReason",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.forecastReason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationRecommendationReason"
                }
              ],
              "strength": "example",
              "description": "The reason for the patient's status with respect to a vaccination protocol.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-recommendation-reason"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.dateCriterion",
            "path": "ImmunizationRecommendation.recommendation.dateCriterion",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation.dateCriterion.id",
            "path": "ImmunizationRecommendation.recommendation.dateCriterion.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation.dateCriterion.extension",
            "path": "ImmunizationRecommendation.recommendation.dateCriterion.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation.dateCriterion.modifierExtension",
            "path": "ImmunizationRecommendation.recommendation.dateCriterion.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.recommendation.dateCriterion.code",
            "path": "ImmunizationRecommendation.recommendation.dateCriterion.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationRecommendationDateCriterion"
                }
              ],
              "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.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-recommendation-date-criterion"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.dateCriterion.value",
            "path": "ImmunizationRecommendation.recommendation.dateCriterion.value",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.dateCriterion.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation.description",
            "path": "ImmunizationRecommendation.recommendation.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation.series",
            "path": "ImmunizationRecommendation.recommendation.series",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.series",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation.doseNumber[x]",
            "path": "ImmunizationRecommendation.recommendation.doseNumber[x]",
            "comment": "The use of an integer is prefered if known. A string should only be used in cases where an interger is not available (such as when documenting a recurring booster dose).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.doseNumber[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.recommendation.seriesDoses[x]",
            "path": "ImmunizationRecommendation.recommendation.seriesDoses[x]",
            "comment": "The use of an integer is prefered if known. A string should only be used in cases where an interger is not available (such as when documenting a recurring booster dose).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.seriesDoses[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation.supportingImmunization",
            "path": "ImmunizationRecommendation.recommendation.supportingImmunization",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.supportingImmunization",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Immunization",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationEvaluation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImmunizationRecommendation.recommendation.supportingPatientInformation",
            "path": "ImmunizationRecommendation.recommendation.supportingPatientInformation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImmunizationRecommendation.recommendation.supportingPatientInformation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ImmunizationRecommendation",
            "path": "ImmunizationRecommendation",
            "min": 0,
            "max": "*"
          },
          {
            "id": "ImmunizationRecommendation.identifier",
            "path": "ImmunizationRecommendation.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.patient",
            "path": "ImmunizationRecommendation.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.date",
            "path": "ImmunizationRecommendation.date",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.authority",
            "path": "ImmunizationRecommendation.authority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "ImmunizationRecommendation.recommendation",
            "path": "ImmunizationRecommendation.recommendation",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "imr-1",
                "severity": "error",
                "human": "One of vaccineCode or targetDisease SHALL be present",
                "expression": "vaccineCode.exists() or targetDisease.exists()",
                "xpath": "exists(f:vaccineCode) or exists(f:targetDisease)"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.recommendation.vaccineCode",
            "path": "ImmunizationRecommendation.recommendation.vaccineCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VaccineCode"
                }
              ],
              "strength": "example",
              "description": "The type of vaccine administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vaccine-code"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.targetDisease",
            "path": "ImmunizationRecommendation.recommendation.targetDisease",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TargetDisease"
                }
              ],
              "strength": "example",
              "description": "The disease that the recommended vaccination targets.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-recommendation-target-disease"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.contraindicatedVaccineCode",
            "path": "ImmunizationRecommendation.recommendation.contraindicatedVaccineCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VaccineCode"
                }
              ],
              "strength": "example",
              "description": "The type of vaccine administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vaccine-code"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.forecastStatus",
            "path": "ImmunizationRecommendation.recommendation.forecastStatus",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the forecastStatus indicates whether a patient needs additional doses (due, overdue, etc) or not  (contraindicated, complete, etc).",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationRecommendationStatus"
                }
              ],
              "strength": "example",
              "description": "The patient's status with respect to a vaccination protocol.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-recommendation-status"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.forecastReason",
            "path": "ImmunizationRecommendation.recommendation.forecastReason",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationRecommendationReason"
                }
              ],
              "strength": "example",
              "description": "The reason for the patient's status with respect to a vaccination protocol.",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-recommendation-reason"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.dateCriterion",
            "path": "ImmunizationRecommendation.recommendation.dateCriterion",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ImmunizationRecommendation.recommendation.dateCriterion.code",
            "path": "ImmunizationRecommendation.recommendation.dateCriterion.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ImmunizationRecommendationDateCriterion"
                }
              ],
              "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.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/immunization-recommendation-date-criterion"
            }
          },
          {
            "id": "ImmunizationRecommendation.recommendation.dateCriterion.value",
            "path": "ImmunizationRecommendation.recommendation.dateCriterion.value",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "ImmunizationRecommendation.recommendation.description",
            "path": "ImmunizationRecommendation.recommendation.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImmunizationRecommendation.recommendation.series",
            "path": "ImmunizationRecommendation.recommendation.series",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImmunizationRecommendation.recommendation.doseNumber[x]",
            "path": "ImmunizationRecommendation.recommendation.doseNumber[x]",
            "comment": "The use of an integer is prefered if known. A string should only be used in cases where an interger is not available (such as when documenting a recurring booster dose).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImmunizationRecommendation.recommendation.seriesDoses[x]",
            "path": "ImmunizationRecommendation.recommendation.seriesDoses[x]",
            "comment": "The use of an integer is prefered if known. A string should only be used in cases where an interger is not available (such as when documenting a recurring booster dose).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImmunizationRecommendation.recommendation.supportingImmunization",
            "path": "ImmunizationRecommendation.recommendation.supportingImmunization",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Immunization",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationEvaluation"
                ]
              }
            ]
          },
          {
            "id": "ImmunizationRecommendation.recommendation.supportingPatientInformation",
            "path": "ImmunizationRecommendation.recommendation.supportingPatientInformation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ImplementationGuide",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ImplementationGuide",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Conformance"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ImplementationGuide",
      "version": "4.0.1",
      "name": "ImplementationGuide",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "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": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ImplementationGuide",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ImplementationGuide",
            "path": "ImplementationGuide",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "ig-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "ig-2",
                "severity": "error",
                "human": "If a resource has a fhirVersion, it must be oe of the versions defined for the Implementation Guide",
                "expression": "definition.resource.fhirVersion.all(%context.fhirVersion contains $this)",
                "xpath": "count(for $id in (f:resource/f:fhirVersion) return $id[not(ancestor::f:fhirVersion/@value=$id/@value)])=0"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.id",
            "path": "ImplementationGuide.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.meta",
            "path": "ImplementationGuide.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.implicitRules",
            "path": "ImplementationGuide.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.language",
            "path": "ImplementationGuide.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ImplementationGuide.text",
            "path": "ImplementationGuide.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.contained",
            "path": "ImplementationGuide.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.extension",
            "path": "ImplementationGuide.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.modifierExtension",
            "path": "ImplementationGuide.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.url",
            "path": "ImplementationGuide.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.version",
            "path": "ImplementationGuide.version",
            "comment": "There may be different implementation guide instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the implementation guide with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.name",
            "path": "ImplementationGuide.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.title",
            "path": "ImplementationGuide.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.status",
            "path": "ImplementationGuide.status",
            "comment": "Allows filtering of implementation guides that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.experimental",
            "path": "ImplementationGuide.experimental",
            "comment": "Allows filtering of implementation guides that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.date",
            "path": "ImplementationGuide.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the implementation guide. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.publisher",
            "path": "ImplementationGuide.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the implementation guide is the organization or individual primarily responsible for the maintenance and upkeep of the implementation guide. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the implementation guide. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.contact",
            "path": "ImplementationGuide.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.description",
            "path": "ImplementationGuide.description",
            "comment": "This description can be used to capture details such as why the implementation guide was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the implementation guide as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the implementation guide is presumed to be the predominant language in the place the implementation guide was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.useContext",
            "path": "ImplementationGuide.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.jurisdiction",
            "path": "ImplementationGuide.jurisdiction",
            "comment": "It may be possible for the implementation guide to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ImplementationGuide.copyright",
            "path": "ImplementationGuide.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.packageId",
            "path": "ImplementationGuide.packageId",
            "comment": "Many (if not all) IG publishing tools will require that this element be present. For implementation guides published through HL7 or the FHIR foundation, the FHIR product director assigns package IDs.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.packageId",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.license",
            "path": "ImplementationGuide.license",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.license",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SPDXLicense"
                }
              ],
              "strength": "required",
              "description": "The license that applies to an Implementation Guide (using an SPDX license Identifiers, or 'not-open-source'). The binding is required but new SPDX license Identifiers are allowed to be used (https://spdx.org/licenses/).",
              "valueSet": "http://hl7.org/fhir/ValueSet/spdx-license|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.fhirVersion",
            "path": "ImplementationGuide.fhirVersion",
            "comment": "Most implementation guides target a single version - e.g. they describe how to use a particular version, and the profiles and examples etc are valid for that version. But some implementation guides describe how to use multiple different versions of FHIR to solve the same problem, or in concert with each other. Typically, the requirement to support multiple versions arises as implementation matures and different implementation communities are stuck at different versions by regulation or market dynamics.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.fhirVersion",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRVersion"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "All published FHIR Versions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/FHIR-version|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.dependsOn",
            "path": "ImplementationGuide.dependsOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.dependsOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.dependsOn.id",
            "path": "ImplementationGuide.dependsOn.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.dependsOn.extension",
            "path": "ImplementationGuide.dependsOn.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.dependsOn.modifierExtension",
            "path": "ImplementationGuide.dependsOn.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.dependsOn.uri",
            "path": "ImplementationGuide.dependsOn.uri",
            "comment": "Usually, A canonical reference to the implementation guide is the same as the master location at which the implementation guide is published.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.dependsOn.uri",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ImplementationGuide"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.dependsOn.packageId",
            "path": "ImplementationGuide.dependsOn.packageId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.dependsOn.packageId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.dependsOn.version",
            "path": "ImplementationGuide.dependsOn.version",
            "comment": "This follows the syntax of the NPM packaging version field - see [[reference]].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.dependsOn.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.global",
            "path": "ImplementationGuide.global",
            "comment": "See [Default Profiles](implementationguide.html#default) for a discussion of which resources are 'covered' by an implementation guide.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.global",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.global.id",
            "path": "ImplementationGuide.global.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.global.extension",
            "path": "ImplementationGuide.global.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.global.modifierExtension",
            "path": "ImplementationGuide.global.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.global.type",
            "path": "ImplementationGuide.global.type",
            "comment": "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",
            "base": {
              "path": "ImplementationGuide.global.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.global.profile",
            "path": "ImplementationGuide.global.profile",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.global.profile",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.definition",
            "path": "ImplementationGuide.definition",
            "comment": "Principally, this consists of information abuot source resource and file locations, and build parameters and templates.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ig-1",
                "severity": "error",
                "human": "If a resource has a groupingId, it must refer to a grouping defined in the Implementation Guide",
                "expression": "resource.groupingId.all(%context.grouping.id contains $this)",
                "xpath": "count(for $id in (f:resource/f:groupingId) return $id[not(ancestor::f:grouping/@id=$id/@value)])=0"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.id",
            "path": "ImplementationGuide.definition.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.extension",
            "path": "ImplementationGuide.definition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.modifierExtension",
            "path": "ImplementationGuide.definition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.definition.grouping",
            "path": "ImplementationGuide.definition.grouping",
            "comment": "Groupings are arbitrary sub-divisions of content. Typically, they are used to help build Table of Contents automatically.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.definition.grouping",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.grouping.id",
            "path": "ImplementationGuide.definition.grouping.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.grouping.extension",
            "path": "ImplementationGuide.definition.grouping.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.grouping.modifierExtension",
            "path": "ImplementationGuide.definition.grouping.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.definition.grouping.name",
            "path": "ImplementationGuide.definition.grouping.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.grouping.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.grouping.description",
            "path": "ImplementationGuide.definition.grouping.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.grouping.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.resource",
            "path": "ImplementationGuide.definition.resource",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.definition.resource",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.resource.id",
            "path": "ImplementationGuide.definition.resource.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.resource.extension",
            "path": "ImplementationGuide.definition.resource.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.resource.modifierExtension",
            "path": "ImplementationGuide.definition.resource.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.definition.resource.reference",
            "path": "ImplementationGuide.definition.resource.reference",
            "comment": "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",
            "base": {
              "path": "ImplementationGuide.definition.resource.reference",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.resource.fhirVersion",
            "path": "ImplementationGuide.definition.resource.fhirVersion",
            "comment": "The resource SHALL be valid against all the versions it is specified to apply to. If the resource referred to is a StructureDefinition, the fhirVersion stated in the StructureDefinition cannot disagree with the version specified here; the specified versions SHALL include the version specified by the StructureDefinition, and may include additional versions using the [applicable-version](extension-structuredefinition-applicable-version.html) extension.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.definition.resource.fhirVersion",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRVersion"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "All published FHIR Versions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/FHIR-version|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.definition.resource.name",
            "path": "ImplementationGuide.definition.resource.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.resource.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.resource.description",
            "path": "ImplementationGuide.definition.resource.description",
            "comment": "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",
            "base": {
              "path": "ImplementationGuide.definition.resource.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.resource.example[x]",
            "path": "ImplementationGuide.definition.resource.example[x]",
            "comment": "Examples: \n\n* StructureDefinition -> Any \n* ValueSet -> expansion \n* OperationDefinition -> Parameters \n* Questionnaire -> QuestionnaireResponse.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.resource.example[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.resource.groupingId",
            "path": "ImplementationGuide.definition.resource.groupingId",
            "comment": "This must correspond to a package.id element within this implementation guide.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.resource.groupingId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.page",
            "path": "ImplementationGuide.definition.page",
            "comment": "Pages automatically become sections if they have sub-pages. By convention, the home page is called index.html.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.page",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.page.id",
            "path": "ImplementationGuide.definition.page.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.page.extension",
            "path": "ImplementationGuide.definition.page.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.page.modifierExtension",
            "path": "ImplementationGuide.definition.page.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.definition.page.name[x]",
            "path": "ImplementationGuide.definition.page.name[x]",
            "comment": "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",
            "base": {
              "path": "ImplementationGuide.definition.page.name[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "url"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Binary"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.page.title",
            "path": "ImplementationGuide.definition.page.title",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.page.title",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.page.generation",
            "path": "ImplementationGuide.definition.page.generation",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.page.generation",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GuidePageGeneration"
                }
              ],
              "strength": "required",
              "description": "A code that indicates how the page is generated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/guide-page-generation|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.definition.page.page",
            "path": "ImplementationGuide.definition.page.page",
            "comment": "The implementation guide breadcrumbs are generated from this structure.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.definition.page.page",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ImplementationGuide.definition.page",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.parameter",
            "path": "ImplementationGuide.definition.parameter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.definition.parameter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.parameter.id",
            "path": "ImplementationGuide.definition.parameter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.parameter.extension",
            "path": "ImplementationGuide.definition.parameter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.parameter.modifierExtension",
            "path": "ImplementationGuide.definition.parameter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.definition.parameter.code",
            "path": "ImplementationGuide.definition.parameter.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.parameter.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GuideParameterCode"
                }
              ],
              "strength": "required",
              "description": "Code of parameter that is input to the guide.",
              "valueSet": "http://hl7.org/fhir/ValueSet/guide-parameter-code|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.definition.parameter.value",
            "path": "ImplementationGuide.definition.parameter.value",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.parameter.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.template",
            "path": "ImplementationGuide.definition.template",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.definition.template",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.template.id",
            "path": "ImplementationGuide.definition.template.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.template.extension",
            "path": "ImplementationGuide.definition.template.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.template.modifierExtension",
            "path": "ImplementationGuide.definition.template.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.definition.template.code",
            "path": "ImplementationGuide.definition.template.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.template.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.template.source",
            "path": "ImplementationGuide.definition.template.source",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.template.source",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.definition.template.scope",
            "path": "ImplementationGuide.definition.template.scope",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.definition.template.scope",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest",
            "path": "ImplementationGuide.manifest",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.manifest",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.id",
            "path": "ImplementationGuide.manifest.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.extension",
            "path": "ImplementationGuide.manifest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.modifierExtension",
            "path": "ImplementationGuide.manifest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.manifest.rendering",
            "path": "ImplementationGuide.manifest.rendering",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.manifest.rendering",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "url"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.manifest.resource",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ManifestResource"
              }
            ],
            "path": "ImplementationGuide.manifest.resource",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.manifest.resource",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.manifest.resource.id",
            "path": "ImplementationGuide.manifest.resource.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.resource.extension",
            "path": "ImplementationGuide.manifest.resource.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.resource.modifierExtension",
            "path": "ImplementationGuide.manifest.resource.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.manifest.resource.reference",
            "path": "ImplementationGuide.manifest.resource.reference",
            "comment": "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",
            "base": {
              "path": "ImplementationGuide.manifest.resource.reference",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.manifest.resource.example[x]",
            "path": "ImplementationGuide.manifest.resource.example[x]",
            "comment": "Typically, conformance resources and knowledge resources are directly part of the implementation guide, with their normal meaning, and patient linked resources are usually examples. However this is not always true.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.manifest.resource.example[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.resource.relativePath",
            "path": "ImplementationGuide.manifest.resource.relativePath",
            "comment": "Appending 'rendering' + \"/\" + this should resolve to the resource page.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.manifest.resource.relativePath",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "url"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.page",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ManifestPage"
              }
            ],
            "path": "ImplementationGuide.manifest.page",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.manifest.page",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.page.id",
            "path": "ImplementationGuide.manifest.page.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.page.extension",
            "path": "ImplementationGuide.manifest.page.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.page.modifierExtension",
            "path": "ImplementationGuide.manifest.page.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.manifest.page.name",
            "path": "ImplementationGuide.manifest.page.name",
            "comment": "Appending 'rendering' + \"/\" + this should resolve to the page.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.manifest.page.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.page.title",
            "path": "ImplementationGuide.manifest.page.title",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ImplementationGuide.manifest.page.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.page.anchor",
            "path": "ImplementationGuide.manifest.page.anchor",
            "comment": "Appending 'rendering' + \"/\" + page.name + \"#\" + page.anchor should resolve to the anchor.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.manifest.page.anchor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.image",
            "path": "ImplementationGuide.manifest.image",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.manifest.image",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ImplementationGuide.manifest.other",
            "path": "ImplementationGuide.manifest.other",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ImplementationGuide.manifest.other",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ImplementationGuide",
            "path": "ImplementationGuide",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "ig-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "ig-2",
                "severity": "error",
                "human": "If a resource has a fhirVersion, it must be oe of the versions defined for the Implementation Guide",
                "expression": "definition.resource.fhirVersion.all(%context.fhirVersion contains $this)",
                "xpath": "count(for $id in (f:resource/f:fhirVersion) return $id[not(ancestor::f:fhirVersion/@value=$id/@value)])=0"
              }
            ]
          },
          {
            "id": "ImplementationGuide.url",
            "path": "ImplementationGuide.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.version",
            "path": "ImplementationGuide.version",
            "comment": "There may be different implementation guide instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the implementation guide with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.name",
            "path": "ImplementationGuide.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.title",
            "path": "ImplementationGuide.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.status",
            "path": "ImplementationGuide.status",
            "comment": "Allows filtering of implementation guides that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.experimental",
            "path": "ImplementationGuide.experimental",
            "comment": "Allows filtering of implementation guides that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.date",
            "path": "ImplementationGuide.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the implementation guide. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.publisher",
            "path": "ImplementationGuide.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the implementation guide is the organization or individual primarily responsible for the maintenance and upkeep of the implementation guide. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the implementation guide. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.contact",
            "path": "ImplementationGuide.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.description",
            "path": "ImplementationGuide.description",
            "comment": "This description can be used to capture details such as why the implementation guide was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the implementation guide as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the implementation guide is presumed to be the predominant language in the place the implementation guide was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ImplementationGuide.useContext",
            "path": "ImplementationGuide.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.jurisdiction",
            "path": "ImplementationGuide.jurisdiction",
            "comment": "It may be possible for the implementation guide to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ImplementationGuide.copyright",
            "path": "ImplementationGuide.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ImplementationGuide.packageId",
            "path": "ImplementationGuide.packageId",
            "comment": "Many (if not all) IG publishing tools will require that this element be present. For implementation guides published through HL7 or the FHIR foundation, the FHIR product director assigns package IDs.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.license",
            "path": "ImplementationGuide.license",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SPDXLicense"
                }
              ],
              "strength": "required",
              "description": "The license that applies to an Implementation Guide (using an SPDX license Identifiers, or 'not-open-source'). The binding is required but new SPDX license Identifiers are allowed to be used (https://spdx.org/licenses/).",
              "valueSet": "http://hl7.org/fhir/ValueSet/spdx-license|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.fhirVersion",
            "path": "ImplementationGuide.fhirVersion",
            "comment": "Most implementation guides target a single version - e.g. they describe how to use a particular version, and the profiles and examples etc are valid for that version. But some implementation guides describe how to use multiple different versions of FHIR to solve the same problem, or in concert with each other. Typically, the requirement to support multiple versions arises as implementation matures and different implementation communities are stuck at different versions by regulation or market dynamics.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRVersion"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "All published FHIR Versions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/FHIR-version|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.dependsOn",
            "path": "ImplementationGuide.dependsOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.dependsOn.uri",
            "path": "ImplementationGuide.dependsOn.uri",
            "comment": "Usually, A canonical reference to the implementation guide is the same as the master location at which the implementation guide is published.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ImplementationGuide"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.dependsOn.packageId",
            "path": "ImplementationGuide.dependsOn.packageId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.dependsOn.version",
            "path": "ImplementationGuide.dependsOn.version",
            "comment": "This follows the syntax of the NPM packaging version field - see [[reference]].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.global",
            "path": "ImplementationGuide.global",
            "comment": "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
          },
          {
            "id": "ImplementationGuide.global.type",
            "path": "ImplementationGuide.global.type",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.global.profile",
            "path": "ImplementationGuide.global.profile",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.definition",
            "path": "ImplementationGuide.definition",
            "comment": "Principally, this consists of information abuot source resource and file locations, and build parameters and templates.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ig-1",
                "severity": "error",
                "human": "If a resource has a groupingId, it must refer to a grouping defined in the Implementation Guide",
                "expression": "resource.groupingId.all(%context.grouping.id contains $this)",
                "xpath": "count(for $id in (f:resource/f:groupingId) return $id[not(ancestor::f:grouping/@id=$id/@value)])=0"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.grouping",
            "path": "ImplementationGuide.definition.grouping",
            "comment": "Groupings are arbitrary sub-divisions of content. Typically, they are used to help build Table of Contents automatically.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.grouping.name",
            "path": "ImplementationGuide.definition.grouping.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.grouping.description",
            "path": "ImplementationGuide.definition.grouping.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.resource",
            "path": "ImplementationGuide.definition.resource",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.resource.reference",
            "path": "ImplementationGuide.definition.resource.reference",
            "comment": "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": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.resource.fhirVersion",
            "path": "ImplementationGuide.definition.resource.fhirVersion",
            "comment": "The resource SHALL be valid against all the versions it is specified to apply to. If the resource referred to is a StructureDefinition, the fhirVersion stated in the StructureDefinition cannot disagree with the version specified here; the specified versions SHALL include the version specified by the StructureDefinition, and may include additional versions using the [applicable-version](extension-structuredefinition-applicable-version.html) extension.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRVersion"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "All published FHIR Versions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/FHIR-version|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.definition.resource.name",
            "path": "ImplementationGuide.definition.resource.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.resource.description",
            "path": "ImplementationGuide.definition.resource.description",
            "comment": "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"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.resource.example[x]",
            "path": "ImplementationGuide.definition.resource.example[x]",
            "comment": "Examples: \n\n* StructureDefinition -> Any \n* ValueSet -> expansion \n* OperationDefinition -> Parameters \n* Questionnaire -> QuestionnaireResponse.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.resource.groupingId",
            "path": "ImplementationGuide.definition.resource.groupingId",
            "comment": "This must correspond to a package.id element within this implementation guide.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.page",
            "path": "ImplementationGuide.definition.page",
            "comment": "Pages automatically become sections if they have sub-pages. By convention, the home page is called index.html.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.page.name[x]",
            "path": "ImplementationGuide.definition.page.name[x]",
            "comment": "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": "url"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Binary"
                ]
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.page.title",
            "path": "ImplementationGuide.definition.page.title",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.page.generation",
            "path": "ImplementationGuide.definition.page.generation",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GuidePageGeneration"
                }
              ],
              "strength": "required",
              "description": "A code that indicates how the page is generated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/guide-page-generation|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.definition.page.page",
            "path": "ImplementationGuide.definition.page.page",
            "comment": "The implementation guide breadcrumbs are generated from this structure.",
            "min": 0,
            "max": "*",
            "contentReference": "#ImplementationGuide.definition.page"
          },
          {
            "id": "ImplementationGuide.definition.parameter",
            "path": "ImplementationGuide.definition.parameter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.parameter.code",
            "path": "ImplementationGuide.definition.parameter.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GuideParameterCode"
                }
              ],
              "strength": "required",
              "description": "Code of parameter that is input to the guide.",
              "valueSet": "http://hl7.org/fhir/ValueSet/guide-parameter-code|4.0.1"
            }
          },
          {
            "id": "ImplementationGuide.definition.parameter.value",
            "path": "ImplementationGuide.definition.parameter.value",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.template",
            "path": "ImplementationGuide.definition.template",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.template.code",
            "path": "ImplementationGuide.definition.template.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.template.source",
            "path": "ImplementationGuide.definition.template.source",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.definition.template.scope",
            "path": "ImplementationGuide.definition.template.scope",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.manifest",
            "path": "ImplementationGuide.manifest",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ImplementationGuide.manifest.rendering",
            "path": "ImplementationGuide.manifest.rendering",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "url"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.manifest.resource",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ManifestResource"
              }
            ],
            "path": "ImplementationGuide.manifest.resource",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.manifest.resource.reference",
            "path": "ImplementationGuide.manifest.resource.reference",
            "comment": "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": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ImplementationGuide.manifest.resource.example[x]",
            "path": "ImplementationGuide.manifest.resource.example[x]",
            "comment": "Typically, conformance resources and knowledge resources are directly part of the implementation guide, with their normal meaning, and patient linked resources are usually examples. However this is not always true.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ]
          },
          {
            "id": "ImplementationGuide.manifest.resource.relativePath",
            "path": "ImplementationGuide.manifest.resource.relativePath",
            "comment": "Appending 'rendering' + \"/\" + this should resolve to the resource page.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "url"
              }
            ]
          },
          {
            "id": "ImplementationGuide.manifest.page",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ManifestPage"
              }
            ],
            "path": "ImplementationGuide.manifest.page",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ImplementationGuide.manifest.page.name",
            "path": "ImplementationGuide.manifest.page.name",
            "comment": "Appending 'rendering' + \"/\" + this should resolve to the page.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.manifest.page.title",
            "path": "ImplementationGuide.manifest.page.title",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.manifest.page.anchor",
            "path": "ImplementationGuide.manifest.page.anchor",
            "comment": "Appending 'rendering' + \"/\" + page.name + \"#\" + page.anchor should resolve to the anchor.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.manifest.image",
            "path": "ImplementationGuide.manifest.image",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ImplementationGuide.manifest.other",
            "path": "ImplementationGuide.manifest.other",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/InsurancePlan",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "InsurancePlan",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.General"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/InsurancePlan",
      "version": "4.0.1",
      "name": "InsurancePlan",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "InsurancePlan",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "InsurancePlan",
            "path": "InsurancePlan",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "ipn-1",
                "severity": "error",
                "human": "The organization SHALL at least have a name or an idendtifier, and possibly more than one",
                "expression": "(identifier.count() + name.count()) > 0",
                "xpath": "count(f:identifier | f:name) > 0"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.id",
            "path": "InsurancePlan.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "InsurancePlan.meta",
            "path": "InsurancePlan.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "InsurancePlan.implicitRules",
            "path": "InsurancePlan.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "InsurancePlan.language",
            "path": "InsurancePlan.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "InsurancePlan.text",
            "path": "InsurancePlan.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.contained",
            "path": "InsurancePlan.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.extension",
            "path": "InsurancePlan.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.modifierExtension",
            "path": "InsurancePlan.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "InsurancePlan.identifier",
            "path": "InsurancePlan.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "condition": [
              "ipn-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "InsurancePlan.status",
            "path": "InsurancePlan.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "Default interpretation is active.",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains codes which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "InsurancePlan.type",
            "path": "InsurancePlan.type",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InsurancePlanType"
                }
              ],
              "strength": "example",
              "description": "Used to categorize the product/plan.",
              "valueSet": "http://hl7.org/fhir/ValueSet/insuranceplan-type"
            }
          },
          {
            "id": "InsurancePlan.name",
            "path": "InsurancePlan.name",
            "comment": "If the name of the product/plan changes, consider putting the old name in the alias column so that it can still be located through searches.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "ipn-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "InsurancePlan.alias",
            "path": "InsurancePlan.alias",
            "comment": "There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the product/plan.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.alias",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.period",
            "path": "InsurancePlan.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.ownedBy",
            "path": "InsurancePlan.ownedBy",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.ownedBy",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "InsurancePlan.administeredBy",
            "path": "InsurancePlan.administeredBy",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.administeredBy",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "InsurancePlan.coverageArea",
            "path": "InsurancePlan.coverageArea",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.coverageArea",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "InsurancePlan.contact",
            "path": "InsurancePlan.contact",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.contact.id",
            "path": "InsurancePlan.contact.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.contact.extension",
            "path": "InsurancePlan.contact.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.contact.modifierExtension",
            "path": "InsurancePlan.contact.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "InsurancePlan.contact.purpose",
            "path": "InsurancePlan.contact.purpose",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.contact.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContactPartyType"
                }
              ],
              "strength": "extensible",
              "description": "The purpose for which you would contact a contact party.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contactentity-type"
            }
          },
          {
            "id": "InsurancePlan.contact.name",
            "path": "InsurancePlan.contact.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.contact.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.contact.telecom",
            "path": "InsurancePlan.contact.telecom",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.contact.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.contact.address",
            "path": "InsurancePlan.contact.address",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.contact.address",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Address"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.endpoint",
            "path": "InsurancePlan.endpoint",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.endpoint",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.network",
            "path": "InsurancePlan.network",
            "comment": "Networks are represented as a hierarchy of organization resources.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.network",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage",
            "path": "InsurancePlan.coverage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.coverage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.id",
            "path": "InsurancePlan.coverage.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.extension",
            "path": "InsurancePlan.coverage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.modifierExtension",
            "path": "InsurancePlan.coverage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "InsurancePlan.coverage.type",
            "path": "InsurancePlan.coverage.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "InsurancePlan.coverage.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.network",
            "path": "InsurancePlan.coverage.network",
            "comment": "Networks are represented as a hierarchy of organization resources.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.coverage.network",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.benefit",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "CoverageBenefit"
              }
            ],
            "path": "InsurancePlan.coverage.benefit",
            "min": 1,
            "max": "*",
            "base": {
              "path": "InsurancePlan.coverage.benefit",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.benefit.id",
            "path": "InsurancePlan.coverage.benefit.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.benefit.extension",
            "path": "InsurancePlan.coverage.benefit.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.benefit.modifierExtension",
            "path": "InsurancePlan.coverage.benefit.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "InsurancePlan.coverage.benefit.type",
            "path": "InsurancePlan.coverage.benefit.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "InsurancePlan.coverage.benefit.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.benefit.requirement",
            "path": "InsurancePlan.coverage.benefit.requirement",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.coverage.benefit.requirement",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.benefit.limit",
            "path": "InsurancePlan.coverage.benefit.limit",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.coverage.benefit.limit",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.benefit.limit.id",
            "path": "InsurancePlan.coverage.benefit.limit.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.benefit.limit.extension",
            "path": "InsurancePlan.coverage.benefit.limit.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.benefit.limit.modifierExtension",
            "path": "InsurancePlan.coverage.benefit.limit.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "InsurancePlan.coverage.benefit.limit.value",
            "path": "InsurancePlan.coverage.benefit.limit.value",
            "comment": "May also be called “eligible expense,” “payment allowance,” or “negotiated rate.”.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.coverage.benefit.limit.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.coverage.benefit.limit.code",
            "path": "InsurancePlan.coverage.benefit.limit.code",
            "comment": "Use `CodeableConcept.text` element if the data is free (uncoded) text.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.coverage.benefit.limit.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan",
            "path": "InsurancePlan.plan",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.plan",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.id",
            "path": "InsurancePlan.plan.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.extension",
            "path": "InsurancePlan.plan.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.modifierExtension",
            "path": "InsurancePlan.plan.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "InsurancePlan.plan.identifier",
            "path": "InsurancePlan.plan.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.plan.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "InsurancePlan.plan.type",
            "path": "InsurancePlan.plan.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.plan.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.coverageArea",
            "path": "InsurancePlan.plan.coverageArea",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.plan.coverageArea",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "InsurancePlan.plan.network",
            "path": "InsurancePlan.plan.network",
            "comment": "Networks are represented as a hierarchy of organization resources.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.plan.network",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.generalCost",
            "path": "InsurancePlan.plan.generalCost",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.plan.generalCost",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.generalCost.id",
            "path": "InsurancePlan.plan.generalCost.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.generalCost.extension",
            "path": "InsurancePlan.plan.generalCost.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.generalCost.modifierExtension",
            "path": "InsurancePlan.plan.generalCost.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "InsurancePlan.plan.generalCost.type",
            "path": "InsurancePlan.plan.generalCost.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.plan.generalCost.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.generalCost.groupSize",
            "path": "InsurancePlan.plan.generalCost.groupSize",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.plan.generalCost.groupSize",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.generalCost.cost",
            "path": "InsurancePlan.plan.generalCost.cost",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.plan.generalCost.cost",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.generalCost.comment",
            "path": "InsurancePlan.plan.generalCost.comment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.plan.generalCost.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost",
            "path": "InsurancePlan.plan.specificCost",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.plan.specificCost",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.id",
            "path": "InsurancePlan.plan.specificCost.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.extension",
            "path": "InsurancePlan.plan.specificCost.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.modifierExtension",
            "path": "InsurancePlan.plan.specificCost.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "InsurancePlan.plan.specificCost.category",
            "path": "InsurancePlan.plan.specificCost.category",
            "min": 1,
            "max": "1",
            "base": {
              "path": "InsurancePlan.plan.specificCost.category",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "PlanBenefit"
              }
            ],
            "path": "InsurancePlan.plan.specificCost.benefit",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.plan.specificCost.benefit",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.id",
            "path": "InsurancePlan.plan.specificCost.benefit.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.extension",
            "path": "InsurancePlan.plan.specificCost.benefit.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.modifierExtension",
            "path": "InsurancePlan.plan.specificCost.benefit.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.type",
            "path": "InsurancePlan.plan.specificCost.benefit.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "InsurancePlan.plan.specificCost.benefit.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost",
            "path": "InsurancePlan.plan.specificCost.benefit.cost",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.plan.specificCost.benefit.cost",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.id",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.extension",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.modifierExtension",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.type",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "InsurancePlan.plan.specificCost.benefit.cost.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.applicability",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.applicability",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.plan.specificCost.benefit.cost.applicability",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCostApplicability"
                }
              ],
              "strength": "required",
              "description": "Whether the cost applies to in-network or out-of-network providers.",
              "valueSet": "http://hl7.org/fhir/ValueSet/insuranceplan-applicability|4.0.1"
            }
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.qualifiers",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.qualifiers",
            "min": 0,
            "max": "*",
            "base": {
              "path": "InsurancePlan.plan.specificCost.benefit.cost.qualifiers",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.value",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.value",
            "min": 0,
            "max": "1",
            "base": {
              "path": "InsurancePlan.plan.specificCost.benefit.cost.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "InsurancePlan",
            "path": "InsurancePlan",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "ipn-1",
                "severity": "error",
                "human": "The organization SHALL at least have a name or an idendtifier, and possibly more than one",
                "expression": "(identifier.count() + name.count()) > 0",
                "xpath": "count(f:identifier | f:name) > 0"
              }
            ]
          },
          {
            "id": "InsurancePlan.identifier",
            "path": "InsurancePlan.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "condition": [
              "ipn-1"
            ],
            "isSummary": true
          },
          {
            "id": "InsurancePlan.status",
            "path": "InsurancePlan.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "Default interpretation is active.",
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains codes which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "InsurancePlan.type",
            "path": "InsurancePlan.type",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InsurancePlanType"
                }
              ],
              "strength": "example",
              "description": "Used to categorize the product/plan.",
              "valueSet": "http://hl7.org/fhir/ValueSet/insuranceplan-type"
            }
          },
          {
            "id": "InsurancePlan.name",
            "path": "InsurancePlan.name",
            "comment": "If the name of the product/plan changes, consider putting the old name in the alias column so that it can still be located through searches.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "ipn-1"
            ],
            "isSummary": true
          },
          {
            "id": "InsurancePlan.alias",
            "path": "InsurancePlan.alias",
            "comment": "There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the product/plan.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "InsurancePlan.period",
            "path": "InsurancePlan.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "InsurancePlan.ownedBy",
            "path": "InsurancePlan.ownedBy",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "InsurancePlan.administeredBy",
            "path": "InsurancePlan.administeredBy",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "InsurancePlan.coverageArea",
            "path": "InsurancePlan.coverageArea",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "InsurancePlan.contact",
            "path": "InsurancePlan.contact",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "InsurancePlan.contact.purpose",
            "path": "InsurancePlan.contact.purpose",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContactPartyType"
                }
              ],
              "strength": "extensible",
              "description": "The purpose for which you would contact a contact party.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contactentity-type"
            }
          },
          {
            "id": "InsurancePlan.contact.name",
            "path": "InsurancePlan.contact.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "HumanName"
              }
            ]
          },
          {
            "id": "InsurancePlan.contact.telecom",
            "path": "InsurancePlan.contact.telecom",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ]
          },
          {
            "id": "InsurancePlan.contact.address",
            "path": "InsurancePlan.contact.address",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Address"
              }
            ]
          },
          {
            "id": "InsurancePlan.endpoint",
            "path": "InsurancePlan.endpoint",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ]
          },
          {
            "id": "InsurancePlan.network",
            "path": "InsurancePlan.network",
            "comment": "Networks are represented as a hierarchy of organization resources.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "InsurancePlan.coverage",
            "path": "InsurancePlan.coverage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "InsurancePlan.coverage.type",
            "path": "InsurancePlan.coverage.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "InsurancePlan.coverage.network",
            "path": "InsurancePlan.coverage.network",
            "comment": "Networks are represented as a hierarchy of organization resources.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "InsurancePlan.coverage.benefit",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "CoverageBenefit"
              }
            ],
            "path": "InsurancePlan.coverage.benefit",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "InsurancePlan.coverage.benefit.type",
            "path": "InsurancePlan.coverage.benefit.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "InsurancePlan.coverage.benefit.requirement",
            "path": "InsurancePlan.coverage.benefit.requirement",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "InsurancePlan.coverage.benefit.limit",
            "path": "InsurancePlan.coverage.benefit.limit",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "InsurancePlan.coverage.benefit.limit.value",
            "path": "InsurancePlan.coverage.benefit.limit.value",
            "comment": "May also be called “eligible expense,” “payment allowance,” or “negotiated rate.”.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ]
          },
          {
            "id": "InsurancePlan.coverage.benefit.limit.code",
            "path": "InsurancePlan.coverage.benefit.limit.code",
            "comment": "Use `CodeableConcept.text` element if the data is free (uncoded) text.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan",
            "path": "InsurancePlan.plan",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.identifier",
            "path": "InsurancePlan.plan.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "InsurancePlan.plan.type",
            "path": "InsurancePlan.plan.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.coverageArea",
            "path": "InsurancePlan.plan.coverageArea",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "InsurancePlan.plan.network",
            "path": "InsurancePlan.plan.network",
            "comment": "Networks are represented as a hierarchy of organization resources.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.generalCost",
            "path": "InsurancePlan.plan.generalCost",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.generalCost.type",
            "path": "InsurancePlan.plan.generalCost.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.generalCost.groupSize",
            "path": "InsurancePlan.plan.generalCost.groupSize",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.generalCost.cost",
            "path": "InsurancePlan.plan.generalCost.cost",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.generalCost.comment",
            "path": "InsurancePlan.plan.generalCost.comment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.specificCost",
            "path": "InsurancePlan.plan.specificCost",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.specificCost.category",
            "path": "InsurancePlan.plan.specificCost.category",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "PlanBenefit"
              }
            ],
            "path": "InsurancePlan.plan.specificCost.benefit",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.type",
            "path": "InsurancePlan.plan.specificCost.benefit.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost",
            "path": "InsurancePlan.plan.specificCost.benefit.cost",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.type",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.applicability",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.applicability",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BenefitCostApplicability"
                }
              ],
              "strength": "required",
              "description": "Whether the cost applies to in-network or out-of-network providers.",
              "valueSet": "http://hl7.org/fhir/ValueSet/insuranceplan-applicability|4.0.1"
            }
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.qualifiers",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.qualifiers",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "InsurancePlan.plan.specificCost.benefit.cost.value",
            "path": "InsurancePlan.plan.specificCost.benefit.cost.value",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Invoice",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Invoice",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.Billing"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Invoice",
      "version": "4.0.1",
      "name": "Invoice",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Invoice",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Invoice",
            "path": "Invoice",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Invoice",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.id",
            "path": "Invoice.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Invoice.meta",
            "path": "Invoice.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Invoice.implicitRules",
            "path": "Invoice.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Invoice.language",
            "path": "Invoice.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Invoice.text",
            "path": "Invoice.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.contained",
            "path": "Invoice.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.extension",
            "path": "Invoice.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.modifierExtension",
            "path": "Invoice.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Invoice.identifier",
            "path": "Invoice.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Invoice.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Invoice.status",
            "path": "Invoice.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Invoice.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InvoiceStatus"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the lifecycle stage of an Invoice.",
              "valueSet": "http://hl7.org/fhir/ValueSet/invoice-status|4.0.1"
            }
          },
          {
            "id": "Invoice.cancelledReason",
            "path": "Invoice.cancelledReason",
            "comment": "Derived Profiles may choose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.cancelledReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.type",
            "path": "Invoice.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Invoice.subject",
            "path": "Invoice.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Invoice.recipient",
            "path": "Invoice.recipient",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.recipient",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Invoice.date",
            "path": "Invoice.date",
            "comment": "The list of types may be constrained as appropriate for the type of charge item.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Invoice.participant",
            "path": "Invoice.participant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Invoice.participant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.participant.id",
            "path": "Invoice.participant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.participant.extension",
            "path": "Invoice.participant.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.participant.modifierExtension",
            "path": "Invoice.participant.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Invoice.participant.role",
            "path": "Invoice.participant.role",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.participant.role",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.participant.actor",
            "path": "Invoice.participant.actor",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Invoice.participant.actor",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.issuer",
            "path": "Invoice.issuer",
            "comment": "Practitioners and Devices can be associated with multiple organizations. It has to be made clear, on behalf of which Organization the services have been rendered.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.issuer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.account",
            "path": "Invoice.account",
            "comment": "Systems posting the ChargeItems might not always be able to determine, which accounts the Items need to be places into. It is up to the potprocessing Financial System to apply internal rules to decide based on the Encounter/EpisodeOfCare/Patient/Coverage context and the type of ChargeItem, which Account is appropriate.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.account",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Account"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem",
            "path": "Invoice.lineItem",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Invoice.lineItem",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.id",
            "path": "Invoice.lineItem.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.extension",
            "path": "Invoice.lineItem.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.modifierExtension",
            "path": "Invoice.lineItem.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Invoice.lineItem.sequence",
            "path": "Invoice.lineItem.sequence",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.lineItem.sequence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.chargeItem[x]",
            "path": "Invoice.lineItem.chargeItem[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Invoice.lineItem.chargeItem[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ChargeItem"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.priceComponent",
            "path": "Invoice.lineItem.priceComponent",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Invoice.lineItem.priceComponent",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.priceComponent.id",
            "path": "Invoice.lineItem.priceComponent.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.priceComponent.extension",
            "path": "Invoice.lineItem.priceComponent.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.priceComponent.modifierExtension",
            "path": "Invoice.lineItem.priceComponent.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Invoice.lineItem.priceComponent.type",
            "path": "Invoice.lineItem.priceComponent.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Invoice.lineItem.priceComponent.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InvoicePriceComponentType"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the kind of the price component.",
              "valueSet": "http://hl7.org/fhir/ValueSet/invoice-priceComponentType|4.0.1"
            }
          },
          {
            "id": "Invoice.lineItem.priceComponent.code",
            "path": "Invoice.lineItem.priceComponent.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.lineItem.priceComponent.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.priceComponent.factor",
            "path": "Invoice.lineItem.priceComponent.factor",
            "comment": "There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.lineItem.priceComponent.factor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.priceComponent.amount",
            "path": "Invoice.lineItem.priceComponent.amount",
            "comment": "There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.lineItem.priceComponent.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.totalPriceComponent",
            "path": "Invoice.totalPriceComponent",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Invoice.totalPriceComponent",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#Invoice.lineItem.priceComponent",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.totalNet",
            "path": "Invoice.totalNet",
            "comment": "There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.totalNet",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Invoice.totalGross",
            "path": "Invoice.totalGross",
            "comment": "There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.totalGross",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Invoice.paymentTerms",
            "path": "Invoice.paymentTerms",
            "comment": "Derived Profiles may chose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Invoice.paymentTerms",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Invoice.note",
            "path": "Invoice.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Invoice.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Invoice",
            "path": "Invoice",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Invoice.identifier",
            "path": "Invoice.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Invoice.status",
            "path": "Invoice.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InvoiceStatus"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the lifecycle stage of an Invoice.",
              "valueSet": "http://hl7.org/fhir/ValueSet/invoice-status|4.0.1"
            }
          },
          {
            "id": "Invoice.cancelledReason",
            "path": "Invoice.cancelledReason",
            "comment": "Derived Profiles may choose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.type",
            "path": "Invoice.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Invoice.subject",
            "path": "Invoice.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Invoice.recipient",
            "path": "Invoice.recipient",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Invoice.date",
            "path": "Invoice.date",
            "comment": "The list of types may be constrained as appropriate for the type of charge item.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Invoice.participant",
            "path": "Invoice.participant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.participant.role",
            "path": "Invoice.participant.role",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.participant.actor",
            "path": "Invoice.participant.actor",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.issuer",
            "path": "Invoice.issuer",
            "comment": "Practitioners and Devices can be associated with multiple organizations. It has to be made clear, on behalf of which Organization the services have been rendered.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.account",
            "path": "Invoice.account",
            "comment": "Systems posting the ChargeItems might not always be able to determine, which accounts the Items need to be places into. It is up to the potprocessing Financial System to apply internal rules to decide based on the Encounter/EpisodeOfCare/Patient/Coverage context and the type of ChargeItem, which Account is appropriate.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Account"
                ]
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem",
            "path": "Invoice.lineItem",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.sequence",
            "path": "Invoice.lineItem.sequence",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.chargeItem[x]",
            "path": "Invoice.lineItem.chargeItem[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ChargeItem"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.priceComponent",
            "path": "Invoice.lineItem.priceComponent",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.priceComponent.type",
            "path": "Invoice.lineItem.priceComponent.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "InvoicePriceComponentType"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the kind of the price component.",
              "valueSet": "http://hl7.org/fhir/ValueSet/invoice-priceComponentType|4.0.1"
            }
          },
          {
            "id": "Invoice.lineItem.priceComponent.code",
            "path": "Invoice.lineItem.priceComponent.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.priceComponent.factor",
            "path": "Invoice.lineItem.priceComponent.factor",
            "comment": "There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.lineItem.priceComponent.amount",
            "path": "Invoice.lineItem.priceComponent.amount",
            "comment": "There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.totalPriceComponent",
            "path": "Invoice.totalPriceComponent",
            "min": 0,
            "max": "*",
            "contentReference": "#Invoice.lineItem.priceComponent",
            "isSummary": false
          },
          {
            "id": "Invoice.totalNet",
            "path": "Invoice.totalNet",
            "comment": "There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Invoice.totalGross",
            "path": "Invoice.totalGross",
            "comment": "There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Invoice.paymentTerms",
            "path": "Invoice.paymentTerms",
            "comment": "Derived Profiles may chose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": false
          },
          {
            "id": "Invoice.note",
            "path": "Invoice.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "isSummary": false
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Library",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Library",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Management"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Library",
      "version": "4.0.1",
      "name": "Library",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Library",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Library",
            "path": "Library",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "lib-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.id",
            "path": "Library.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.meta",
            "path": "Library.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.implicitRules",
            "path": "Library.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Library.language",
            "path": "Library.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Library.text",
            "path": "Library.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.contained",
            "path": "Library.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.extension",
            "path": "Library.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.modifierExtension",
            "path": "Library.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Library.url",
            "path": "Library.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.identifier",
            "path": "Library.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this library outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.version",
            "path": "Library.version",
            "comment": "There may be different library instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the library with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.name",
            "path": "Library.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.title",
            "path": "Library.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.subtitle",
            "path": "Library.subtitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.subtitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.status",
            "path": "Library.status",
            "comment": "Allows filtering of libraries that are appropriate for use vs. not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Library.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "Library.experimental",
            "path": "Library.experimental",
            "comment": "Allows filtering of librarys that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.type",
            "path": "Library.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Library.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LibraryType"
                }
              ],
              "strength": "extensible",
              "description": "The type of knowledge asset this library contains.",
              "valueSet": "http://hl7.org/fhir/ValueSet/library-type"
            }
          },
          {
            "id": "Library.subject[x]",
            "path": "Library.subject[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.subject[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for a library (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "Library.date",
            "path": "Library.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the library. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.publisher",
            "path": "Library.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the library is the organization or individual primarily responsible for the maintenance and upkeep of the library. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the library. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.contact",
            "path": "Library.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.description",
            "path": "Library.description",
            "comment": "This description can be used to capture details such as why the library was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the library as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the library is presumed to be the predominant language in the place the library was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.useContext",
            "path": "Library.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.jurisdiction",
            "path": "Library.jurisdiction",
            "comment": "It may be possible for the library to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "Library.purpose",
            "path": "Library.purpose",
            "comment": "This element does not describe the usage of the library. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this library.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.usage",
            "path": "Library.usage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.usage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.copyright",
            "path": "Library.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.approvalDate",
            "path": "Library.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.lastReviewDate",
            "path": "Library.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.effectivePeriod",
            "path": "Library.effectivePeriod",
            "comment": "The effective period for a library  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Library.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Library.topic",
            "path": "Library.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "Library.author",
            "path": "Library.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.editor",
            "path": "Library.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.reviewer",
            "path": "Library.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.endorser",
            "path": "Library.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.relatedArtifact",
            "path": "Library.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.parameter",
            "path": "Library.parameter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.parameter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ParameterDefinition"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.dataRequirement",
            "path": "Library.dataRequirement",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.dataRequirement",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "DataRequirement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Library.content",
            "path": "Library.content",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Library.content",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Library",
            "path": "Library",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "lib-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "Library.url",
            "path": "Library.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.identifier",
            "path": "Library.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this library outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.version",
            "path": "Library.version",
            "comment": "There may be different library instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the library with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.name",
            "path": "Library.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "Library.title",
            "path": "Library.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.subtitle",
            "path": "Library.subtitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Library.status",
            "path": "Library.status",
            "comment": "Allows filtering of libraries that are appropriate for use vs. not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "Library.experimental",
            "path": "Library.experimental",
            "comment": "Allows filtering of librarys that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.type",
            "path": "Library.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LibraryType"
                }
              ],
              "strength": "extensible",
              "description": "The type of knowledge asset this library contains.",
              "valueSet": "http://hl7.org/fhir/ValueSet/library-type"
            }
          },
          {
            "id": "Library.subject[x]",
            "path": "Library.subject[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for a library (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "Library.date",
            "path": "Library.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the library. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.publisher",
            "path": "Library.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the library is the organization or individual primarily responsible for the maintenance and upkeep of the library. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the library. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.contact",
            "path": "Library.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.description",
            "path": "Library.description",
            "comment": "This description can be used to capture details such as why the library was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the library as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the library is presumed to be the predominant language in the place the library was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.useContext",
            "path": "Library.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.jurisdiction",
            "path": "Library.jurisdiction",
            "comment": "It may be possible for the library to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "Library.purpose",
            "path": "Library.purpose",
            "comment": "This element does not describe the usage of the library. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this library.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "Library.usage",
            "path": "Library.usage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Library.copyright",
            "path": "Library.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "Library.approvalDate",
            "path": "Library.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "Library.lastReviewDate",
            "path": "Library.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "Library.effectivePeriod",
            "path": "Library.effectivePeriod",
            "comment": "The effective period for a library  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Library.topic",
            "path": "Library.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "Library.author",
            "path": "Library.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Library.editor",
            "path": "Library.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Library.reviewer",
            "path": "Library.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Library.endorser",
            "path": "Library.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Library.relatedArtifact",
            "path": "Library.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "Library.parameter",
            "path": "Library.parameter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ParameterDefinition"
              }
            ]
          },
          {
            "id": "Library.dataRequirement",
            "path": "Library.dataRequirement",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "DataRequirement"
              }
            ]
          },
          {
            "id": "Library.content",
            "path": "Library.content",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Linkage",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Linkage",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Other"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Linkage",
      "version": "4.0.1",
      "name": "Linkage",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Linkage",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Linkage",
            "path": "Linkage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Linkage",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "lnk-1",
                "severity": "error",
                "human": "Must have at least two items",
                "expression": "item.count()>1",
                "xpath": "count(f:item)>1"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Linkage.id",
            "path": "Linkage.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Linkage.meta",
            "path": "Linkage.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Linkage.implicitRules",
            "path": "Linkage.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Linkage.language",
            "path": "Linkage.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Linkage.text",
            "path": "Linkage.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Linkage.contained",
            "path": "Linkage.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Linkage.extension",
            "path": "Linkage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Linkage.modifierExtension",
            "path": "Linkage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Linkage.active",
            "path": "Linkage.active",
            "comment": "If false, any asserted linkages should not be considered current/relevant/applicable.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Linkage.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Linkage.author",
            "path": "Linkage.author",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Linkage.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Linkage.item",
            "path": "Linkage.item",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Linkage.item",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "lnk-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Linkage.item.id",
            "path": "Linkage.item.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Linkage.item.extension",
            "path": "Linkage.item.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Linkage.item.modifierExtension",
            "path": "Linkage.item.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Linkage.item.type",
            "path": "Linkage.item.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Linkage.item.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LinkageType"
                }
              ],
              "strength": "required",
              "description": "Used to distinguish different roles a resource can play within a set of linked resources.",
              "valueSet": "http://hl7.org/fhir/ValueSet/linkage-type|4.0.1"
            }
          },
          {
            "id": "Linkage.item.resource",
            "path": "Linkage.item.resource",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Linkage.item.resource",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Linkage",
            "path": "Linkage",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "lnk-1",
                "severity": "error",
                "human": "Must have at least two items",
                "expression": "item.count()>1",
                "xpath": "count(f:item)>1"
              }
            ]
          },
          {
            "id": "Linkage.active",
            "path": "Linkage.active",
            "comment": "If false, any asserted linkages should not be considered current/relevant/applicable.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isSummary": true
          },
          {
            "id": "Linkage.author",
            "path": "Linkage.author",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Linkage.item",
            "path": "Linkage.item",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "lnk-1"
            ],
            "isSummary": true
          },
          {
            "id": "Linkage.item.type",
            "path": "Linkage.item.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LinkageType"
                }
              ],
              "strength": "required",
              "description": "Used to distinguish different roles a resource can play within a set of linked resources.",
              "valueSet": "http://hl7.org/fhir/ValueSet/linkage-type|4.0.1"
            }
          },
          {
            "id": "Linkage.item.resource",
            "path": "Linkage.item.resource",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/List",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "List",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Management"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/List",
      "version": "4.0.1",
      "name": "List",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "List",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "List",
            "path": "List",
            "min": 0,
            "max": "*",
            "base": {
              "path": "List",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "lst-1",
                "severity": "error",
                "human": "A list can only have an emptyReason if it is empty",
                "expression": "emptyReason.empty() or entry.empty()",
                "xpath": "not(exists(f:emptyReason) and exists(f:entry))"
              },
              {
                "key": "lst-2",
                "severity": "error",
                "human": "The deleted flag can only be used if the mode of the list is \"changes\"",
                "expression": "mode = 'changes' or entry.deleted.empty()",
                "xpath": "(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"
              },
              {
                "key": "lst-3",
                "severity": "error",
                "human": "An entry date can only be used if the mode of the list is \"working\"",
                "expression": "mode = 'working' or entry.date.empty()",
                "xpath": "(f:mode/@value = 'working') or not(exists(f:entry/f:date))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.id",
            "path": "List.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "List.meta",
            "path": "List.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "List.implicitRules",
            "path": "List.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "List.language",
            "path": "List.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "List.text",
            "path": "List.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.contained",
            "path": "List.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.extension",
            "path": "List.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.modifierExtension",
            "path": "List.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "List.identifier",
            "path": "List.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "List.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.status",
            "path": "List.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "List.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListStatus"
                }
              ],
              "strength": "required",
              "description": "The current state of the list.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-status|4.0.1"
            }
          },
          {
            "id": "List.mode",
            "path": "List.mode",
            "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "List.mode",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If set to \"changes\", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListMode"
                }
              ],
              "strength": "required",
              "description": "The processing mode that applies to this list.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
            }
          },
          {
            "id": "List.title",
            "path": "List.title",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueString": "Dr. Jane's Patients"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "List.code",
            "path": "List.code",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListPurpose"
                }
              ],
              "strength": "example",
              "description": "What the purpose of a list is.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-example-codes"
            }
          },
          {
            "id": "List.subject",
            "path": "List.subject",
            "comment": "Some purely arbitrary lists do not have a common subject, so this is optional.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "List.encounter",
            "path": "List.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.date",
            "path": "List.date",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "List.source",
            "path": "List.source",
            "comment": "The primary source is the entity that made the decisions what items are in the list. This may be software or user.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.source",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "List.orderedBy",
            "path": "List.orderedBy",
            "comment": "Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.orderedBy",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListOrder"
                }
              ],
              "strength": "preferred",
              "description": "What order applies to the items in a list.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
            }
          },
          {
            "id": "List.note",
            "path": "List.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "List.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.entry",
            "path": "List.entry",
            "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "List.entry",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "lst-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.entry.id",
            "path": "List.entry.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.entry.extension",
            "path": "List.entry.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.entry.modifierExtension",
            "path": "List.entry.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "List.entry.flag",
            "path": "List.entry.flag",
            "comment": "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\".",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.entry.flag",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListItemFlag"
                }
              ],
              "strength": "example",
              "description": "Codes that provide further information about the reason and meaning of the item in the list.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-item-flag"
            }
          },
          {
            "id": "List.entry.deleted",
            "path": "List.entry.deleted",
            "comment": "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.  This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.entry.deleted",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'",
            "condition": [
              "lst-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If deleted is true, then the item included in the list isn't actually part of the list anymore",
            "isSummary": false
          },
          {
            "id": "List.entry.date",
            "path": "List.entry.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.entry.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.entry.item",
            "path": "List.entry.item",
            "min": 1,
            "max": "1",
            "base": {
              "path": "List.entry.item",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "List.emptyReason",
            "path": "List.emptyReason",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "List.emptyReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "lst-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListEmptyReason"
                }
              ],
              "strength": "preferred",
              "description": "If a list is empty, why it is empty.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "List",
            "path": "List",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "lst-3",
                "severity": "error",
                "human": "An entry date can only be used if the mode of the list is \"working\"",
                "expression": "mode = 'working' or entry.date.empty()",
                "xpath": "(f:mode/@value = 'working') or not(exists(f:entry/f:date))"
              },
              {
                "key": "lst-2",
                "severity": "error",
                "human": "The deleted flag can only be used if the mode of the list is \"changes\"",
                "expression": "mode = 'changes' or entry.deleted.empty()",
                "xpath": "(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"
              },
              {
                "key": "lst-1",
                "severity": "error",
                "human": "A list can only have an emptyReason if it is empty",
                "expression": "emptyReason.empty() or entry.empty()",
                "xpath": "not(exists(f:emptyReason) and exists(f:entry))"
              }
            ]
          },
          {
            "id": "List.identifier",
            "path": "List.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "List.status",
            "path": "List.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListStatus"
                }
              ],
              "strength": "required",
              "description": "The current state of the list.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-status|4.0.1"
            }
          },
          {
            "id": "List.mode",
            "path": "List.mode",
            "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If set to \"changes\", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListMode"
                }
              ],
              "strength": "required",
              "description": "The processing mode that applies to this list.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
            }
          },
          {
            "id": "List.title",
            "path": "List.title",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueString": "Dr. Jane's Patients"
              }
            ],
            "isSummary": true
          },
          {
            "id": "List.code",
            "path": "List.code",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListPurpose"
                }
              ],
              "strength": "example",
              "description": "What the purpose of a list is.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-example-codes"
            }
          },
          {
            "id": "List.subject",
            "path": "List.subject",
            "comment": "Some purely arbitrary lists do not have a common subject, so this is optional.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "List.encounter",
            "path": "List.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          },
          {
            "id": "List.date",
            "path": "List.date",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "List.source",
            "path": "List.source",
            "comment": "The primary source is the entity that made the decisions what items are in the list. This may be software or user.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "List.orderedBy",
            "path": "List.orderedBy",
            "comment": "Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListOrder"
                }
              ],
              "strength": "preferred",
              "description": "What order applies to the items in a list.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
            }
          },
          {
            "id": "List.note",
            "path": "List.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "List.entry",
            "path": "List.entry",
            "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "lst-1"
            ]
          },
          {
            "id": "List.entry.flag",
            "path": "List.entry.flag",
            "comment": "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\".",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListItemFlag"
                }
              ],
              "strength": "example",
              "description": "Codes that provide further information about the reason and meaning of the item in the list.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-item-flag"
            }
          },
          {
            "id": "List.entry.deleted",
            "path": "List.entry.deleted",
            "comment": "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.  This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'",
            "condition": [
              "lst-2"
            ],
            "isModifier": true,
            "isModifierReason": "If deleted is true, then the item included in the list isn't actually part of the list anymore"
          },
          {
            "id": "List.entry.date",
            "path": "List.entry.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "List.entry.item",
            "path": "List.entry.item",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "List.emptyReason",
            "path": "List.emptyReason",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "lst-1"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ListEmptyReason"
                }
              ],
              "strength": "preferred",
              "description": "If a list is empty, why it is empty.",
              "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Location",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Location",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Entities"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Location",
      "version": "4.0.1",
      "name": "Location",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Location",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Location",
            "path": "Location",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Location",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.id",
            "path": "Location.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Location.meta",
            "path": "Location.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Location.implicitRules",
            "path": "Location.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Location.language",
            "path": "Location.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Location.text",
            "path": "Location.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.contained",
            "path": "Location.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.extension",
            "path": "Location.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.modifierExtension",
            "path": "Location.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Location.identifier",
            "path": "Location.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Location.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Location.status",
            "path": "Location.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LocationStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates whether the location is still in use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/location-status|4.0.1"
            }
          },
          {
            "id": "Location.operationalStatus",
            "path": "Location.operationalStatus",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.operationalStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OperationalStatus"
                }
              ],
              "strength": "preferred",
              "description": "The operational status if the location (where typically a bed/room).",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0116"
            }
          },
          {
            "id": "Location.name",
            "path": "Location.name",
            "comment": "If the name of a location changes, consider putting the old name in the alias column so that it can still be located through searches.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Location.alias",
            "path": "Location.alias",
            "comment": "There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the location.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Location.alias",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.description",
            "path": "Location.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Location.mode",
            "path": "Location.mode",
            "comment": "This is labeled as a modifier because whether or not the location is a class of locations changes how it can be used and understood.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.mode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LocationMode"
                }
              ],
              "strength": "required",
              "description": "Indicates whether a resource instance represents a specific location or a class of locations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/location-mode|4.0.1"
            }
          },
          {
            "id": "Location.type",
            "path": "Location.type",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Location.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LocationType"
                }
              ],
              "strength": "extensible",
              "description": "Indicates the type of function performed at the location.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType"
            }
          },
          {
            "id": "Location.telecom",
            "path": "Location.telecom",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Location.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.address",
            "path": "Location.address",
            "comment": "Additional addresses should be recorded using another instance of the Location resource, or via the Organization.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.address",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Address"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.physicalType",
            "path": "Location.physicalType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.physicalType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PhysicalType"
                }
              ],
              "strength": "example",
              "description": "Physical form of the location.",
              "valueSet": "http://hl7.org/fhir/ValueSet/location-physical-type"
            }
          },
          {
            "id": "Location.position",
            "path": "Location.position",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.position",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.position.id",
            "path": "Location.position.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.position.extension",
            "path": "Location.position.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.position.modifierExtension",
            "path": "Location.position.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Location.position.longitude",
            "path": "Location.position.longitude",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Location.position.longitude",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.position.latitude",
            "path": "Location.position.latitude",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Location.position.latitude",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.position.altitude",
            "path": "Location.position.altitude",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.position.altitude",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.managingOrganization",
            "path": "Location.managingOrganization",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.managingOrganization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Location.partOf",
            "path": "Location.partOf",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.partOf",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.hoursOfOperation",
            "path": "Location.hoursOfOperation",
            "comment": "This type of information is commonly found published in directories and on websites informing customers when the facility is available.\n\nSpecific services within the location may have their own hours which could be shorter (or longer) than the locations hours.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Location.hoursOfOperation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.hoursOfOperation.id",
            "path": "Location.hoursOfOperation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.hoursOfOperation.extension",
            "path": "Location.hoursOfOperation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.hoursOfOperation.modifierExtension",
            "path": "Location.hoursOfOperation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Location.hoursOfOperation.daysOfWeek",
            "path": "Location.hoursOfOperation.daysOfWeek",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Location.hoursOfOperation.daysOfWeek",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DaysOfWeek"
                }
              ],
              "strength": "required",
              "description": "The days of the week.",
              "valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1"
            }
          },
          {
            "id": "Location.hoursOfOperation.allDay",
            "path": "Location.hoursOfOperation.allDay",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.hoursOfOperation.allDay",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.hoursOfOperation.openingTime",
            "path": "Location.hoursOfOperation.openingTime",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.hoursOfOperation.openingTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "time"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.hoursOfOperation.closingTime",
            "path": "Location.hoursOfOperation.closingTime",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.hoursOfOperation.closingTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "time"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.availabilityExceptions",
            "path": "Location.availabilityExceptions",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Location.availabilityExceptions",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Location.endpoint",
            "path": "Location.endpoint",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Location.endpoint",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Location",
            "path": "Location",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Location.identifier",
            "path": "Location.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Location.status",
            "path": "Location.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LocationStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates whether the location is still in use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/location-status|4.0.1"
            }
          },
          {
            "id": "Location.operationalStatus",
            "path": "Location.operationalStatus",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OperationalStatus"
                }
              ],
              "strength": "preferred",
              "description": "The operational status if the location (where typically a bed/room).",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0116"
            }
          },
          {
            "id": "Location.name",
            "path": "Location.name",
            "comment": "If the name of a location changes, consider putting the old name in the alias column so that it can still be located through searches.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Location.alias",
            "path": "Location.alias",
            "comment": "There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the location.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Location.description",
            "path": "Location.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Location.mode",
            "path": "Location.mode",
            "comment": "This is labeled as a modifier because whether or not the location is a class of locations changes how it can be used and understood.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LocationMode"
                }
              ],
              "strength": "required",
              "description": "Indicates whether a resource instance represents a specific location or a class of locations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/location-mode|4.0.1"
            }
          },
          {
            "id": "Location.type",
            "path": "Location.type",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LocationType"
                }
              ],
              "strength": "extensible",
              "description": "Indicates the type of function performed at the location.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType"
            }
          },
          {
            "id": "Location.telecom",
            "path": "Location.telecom",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ]
          },
          {
            "id": "Location.address",
            "path": "Location.address",
            "comment": "Additional addresses should be recorded using another instance of the Location resource, or via the Organization.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Address"
              }
            ]
          },
          {
            "id": "Location.physicalType",
            "path": "Location.physicalType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PhysicalType"
                }
              ],
              "strength": "example",
              "description": "Physical form of the location.",
              "valueSet": "http://hl7.org/fhir/ValueSet/location-physical-type"
            }
          },
          {
            "id": "Location.position",
            "path": "Location.position",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Location.position.longitude",
            "path": "Location.position.longitude",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "Location.position.latitude",
            "path": "Location.position.latitude",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "Location.position.altitude",
            "path": "Location.position.altitude",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "Location.managingOrganization",
            "path": "Location.managingOrganization",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Location.partOf",
            "path": "Location.partOf",
            "min": 0,
            "max": "1",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "Location.hoursOfOperation",
            "path": "Location.hoursOfOperation",
            "comment": "This type of information is commonly found published in directories and on websites informing customers when the facility is available.\n\nSpecific services within the location may have their own hours which could be shorter (or longer) than the locations hours.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Location.hoursOfOperation.daysOfWeek",
            "path": "Location.hoursOfOperation.daysOfWeek",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DaysOfWeek"
                }
              ],
              "strength": "required",
              "description": "The days of the week.",
              "valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1"
            }
          },
          {
            "id": "Location.hoursOfOperation.allDay",
            "path": "Location.hoursOfOperation.allDay",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "Location.hoursOfOperation.openingTime",
            "path": "Location.hoursOfOperation.openingTime",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "time"
              }
            ]
          },
          {
            "id": "Location.hoursOfOperation.closingTime",
            "path": "Location.hoursOfOperation.closingTime",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "time"
              }
            ]
          },
          {
            "id": "Location.availabilityExceptions",
            "path": "Location.availabilityExceptions",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Location.endpoint",
            "path": "Location.endpoint",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Measure",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Measure",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Quality Reporting & Testing"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cqi"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Measure",
      "version": "4.0.1",
      "name": "Measure",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Measure",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Measure",
            "path": "Measure",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "mea-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "mea-1",
                "severity": "error",
                "human": "Stratifier SHALL be either a single criteria or a set of criteria components",
                "expression": "group.stratifier.all((code | description | criteria).exists() xor component.exists())",
                "xpath": "exists(f:group/stratifier/code) or exists(f:group/stratifier/component)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.id",
            "path": "Measure.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.meta",
            "path": "Measure.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.implicitRules",
            "path": "Measure.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Measure.language",
            "path": "Measure.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Measure.text",
            "path": "Measure.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.contained",
            "path": "Measure.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.extension",
            "path": "Measure.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.modifierExtension",
            "path": "Measure.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Measure.url",
            "path": "Measure.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.identifier",
            "path": "Measure.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this measure outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.version",
            "path": "Measure.version",
            "comment": "There may be different measure instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the measure with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.name",
            "path": "Measure.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.title",
            "path": "Measure.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.subtitle",
            "path": "Measure.subtitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.subtitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.status",
            "path": "Measure.status",
            "comment": "Allows filtering of measures that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Measure.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "Measure.experimental",
            "path": "Measure.experimental",
            "comment": "Allows filtering of measures that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.subject[x]",
            "path": "Measure.subject[x]",
            "comment": "The subject of the measure is critical in interpreting the criteria definitions, as the logic in the measures is evaluated with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what content is available based on its relationship to the subject. In CQL, this corresponds to the context declaration.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.subject[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for a measure (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "Measure.date",
            "path": "Measure.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the measure. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.publisher",
            "path": "Measure.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the measure is the organization or individual primarily responsible for the maintenance and upkeep of the measure. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the measure. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.contact",
            "path": "Measure.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.description",
            "path": "Measure.description",
            "comment": "This description can be used to capture details such as why the measure was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the measure as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the measure is presumed to be the predominant language in the place the measure was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.useContext",
            "path": "Measure.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.jurisdiction",
            "path": "Measure.jurisdiction",
            "comment": "It may be possible for the measure to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "Measure.purpose",
            "path": "Measure.purpose",
            "comment": "This element does not describe the usage of the measure. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this measure.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.usage",
            "path": "Measure.usage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.usage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.copyright",
            "path": "Measure.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.approvalDate",
            "path": "Measure.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.lastReviewDate",
            "path": "Measure.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.effectivePeriod",
            "path": "Measure.effectivePeriod",
            "comment": "The effective period for a measure  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.topic",
            "path": "Measure.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "Measure.author",
            "path": "Measure.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.editor",
            "path": "Measure.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.reviewer",
            "path": "Measure.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.endorser",
            "path": "Measure.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.relatedArtifact",
            "path": "Measure.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.library",
            "path": "Measure.library",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.library",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Library"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.disclaimer",
            "path": "Measure.disclaimer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.disclaimer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.scoring",
            "path": "Measure.scoring",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.scoring",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureScoring"
                }
              ],
              "strength": "extensible",
              "description": "The scoring type of the measure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-scoring"
            }
          },
          {
            "id": "Measure.compositeScoring",
            "path": "Measure.compositeScoring",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.compositeScoring",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompositeMeasureScoring"
                }
              ],
              "strength": "extensible",
              "description": "The composite scoring method of the measure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/composite-measure-scoring"
            }
          },
          {
            "id": "Measure.type",
            "path": "Measure.type",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureType"
                }
              ],
              "strength": "extensible",
              "description": "The type of measure (includes codes from 2.16.840.1.113883.1.11.20368).",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-type"
            }
          },
          {
            "id": "Measure.riskAdjustment",
            "path": "Measure.riskAdjustment",
            "comment": "Describes the method of adjusting for clinical severity and conditions present at the start of care that can influence patient outcomes for making valid comparisons of outcome measures across providers. Indicates whether a measure is subject to the statistical process for reducing, removing, or clarifying the influences of confounding factors to allow for more useful comparisons.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.riskAdjustment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.rateAggregation",
            "path": "Measure.rateAggregation",
            "comment": "The measure rate for an organization or clinician is based upon the entities’ aggregate data and summarizes the performance of the entity over a given time period (e.g., monthly, quarterly, yearly). The aggregated data are derived from the results of a specific measure algorithm and, if appropriate, the application of specific risk adjustment models.  Can also be used to describe how to risk adjust the data based on supplemental data elements described in the eMeasure (e.g., pneumonia hospital measures antibiotic selection in the ICU versus non-ICU and then the roll-up of the two). This could be applied to aggregated cohort measure definitions (e.g., CDC's aggregate reporting for TB at the state level).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.rateAggregation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.rationale",
            "path": "Measure.rationale",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.rationale",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.clinicalRecommendationStatement",
            "path": "Measure.clinicalRecommendationStatement",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.clinicalRecommendationStatement",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.improvementNotation",
            "path": "Measure.improvementNotation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.improvementNotation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureImprovementNotation"
                }
              ],
              "strength": "required",
              "description": "Observation values that indicate what change in a measurement value or score is indicative of an improvement in the measured item or scored issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-improvement-notation|4.0.1"
            }
          },
          {
            "id": "Measure.definition",
            "path": "Measure.definition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.definition",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.guidance",
            "path": "Measure.guidance",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.guidance",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Measure.group",
            "path": "Measure.group",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.group",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.id",
            "path": "Measure.group.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.extension",
            "path": "Measure.group.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.modifierExtension",
            "path": "Measure.group.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Measure.group.code",
            "path": "Measure.group.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.group.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.description",
            "path": "Measure.group.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.group.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.population",
            "path": "Measure.group.population",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.group.population",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.population.id",
            "path": "Measure.group.population.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.population.extension",
            "path": "Measure.group.population.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.population.modifierExtension",
            "path": "Measure.group.population.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Measure.group.population.code",
            "path": "Measure.group.population.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.group.population.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasurePopulationType"
                }
              ],
              "strength": "extensible",
              "description": "The type of population.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-population"
            }
          },
          {
            "id": "Measure.group.population.description",
            "path": "Measure.group.population.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.group.population.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.population.criteria",
            "path": "Measure.group.population.criteria",
            "comment": "In the case of a continuous-variable or ratio measure, this may be the name of a function that calculates the value of the individual observation for each patient or event in the population. For these types of measures, individual observations are reported as observation resources included in the evaluatedResources bundle for each patient. See the MeasureReport resource or the Quality Reporting topic for more information.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Measure.group.population.criteria",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Expression"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier",
            "path": "Measure.group.stratifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.group.stratifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.id",
            "path": "Measure.group.stratifier.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.extension",
            "path": "Measure.group.stratifier.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.modifierExtension",
            "path": "Measure.group.stratifier.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Measure.group.stratifier.code",
            "path": "Measure.group.stratifier.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.group.stratifier.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.description",
            "path": "Measure.group.stratifier.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.group.stratifier.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.criteria",
            "path": "Measure.group.stratifier.criteria",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.group.stratifier.criteria",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Expression"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.component",
            "path": "Measure.group.stratifier.component",
            "comment": "Stratifiers are defined either as a single criteria, or as a set of component criteria.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.group.stratifier.component",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.component.id",
            "path": "Measure.group.stratifier.component.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.component.extension",
            "path": "Measure.group.stratifier.component.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.component.modifierExtension",
            "path": "Measure.group.stratifier.component.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Measure.group.stratifier.component.code",
            "path": "Measure.group.stratifier.component.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.group.stratifier.component.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.component.description",
            "path": "Measure.group.stratifier.component.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.group.stratifier.component.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.group.stratifier.component.criteria",
            "path": "Measure.group.stratifier.component.criteria",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Measure.group.stratifier.component.criteria",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Expression"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.supplementalData",
            "path": "Measure.supplementalData",
            "comment": "Note that supplemental data are reported as observations for each patient and included in the evaluatedResources bundle. See the MeasureReport resource or the Quality Reporting topic for more information.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.supplementalData",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.supplementalData.id",
            "path": "Measure.supplementalData.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.supplementalData.extension",
            "path": "Measure.supplementalData.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.supplementalData.modifierExtension",
            "path": "Measure.supplementalData.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Measure.supplementalData.code",
            "path": "Measure.supplementalData.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.supplementalData.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.supplementalData.usage",
            "path": "Measure.supplementalData.usage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Measure.supplementalData.usage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureDataUsage"
                }
              ],
              "strength": "extensible",
              "description": "The intended usage for supplemental data elements in the measure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-data-usage"
            }
          },
          {
            "id": "Measure.supplementalData.description",
            "path": "Measure.supplementalData.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Measure.supplementalData.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Measure.supplementalData.criteria",
            "path": "Measure.supplementalData.criteria",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Measure.supplementalData.criteria",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Expression"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Measure",
            "path": "Measure",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "mea-1",
                "severity": "error",
                "human": "Stratifier SHALL be either a single criteria or a set of criteria components",
                "expression": "group.stratifier.all((code | description | criteria).exists() xor component.exists())",
                "xpath": "exists(f:group/stratifier/code) or exists(f:group/stratifier/component)"
              },
              {
                "key": "mea-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "Measure.url",
            "path": "Measure.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.identifier",
            "path": "Measure.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this measure outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.version",
            "path": "Measure.version",
            "comment": "There may be different measure instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the measure with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.name",
            "path": "Measure.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "Measure.title",
            "path": "Measure.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.subtitle",
            "path": "Measure.subtitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Measure.status",
            "path": "Measure.status",
            "comment": "Allows filtering of measures that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "Measure.experimental",
            "path": "Measure.experimental",
            "comment": "Allows filtering of measures that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.subject[x]",
            "path": "Measure.subject[x]",
            "comment": "The subject of the measure is critical in interpreting the criteria definitions, as the logic in the measures is evaluated with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what content is available based on its relationship to the subject. In CQL, this corresponds to the context declaration.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for a measure (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "Measure.date",
            "path": "Measure.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the measure. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.publisher",
            "path": "Measure.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the measure is the organization or individual primarily responsible for the maintenance and upkeep of the measure. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the measure. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.contact",
            "path": "Measure.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.description",
            "path": "Measure.description",
            "comment": "This description can be used to capture details such as why the measure was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the measure as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the measure is presumed to be the predominant language in the place the measure was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.useContext",
            "path": "Measure.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.jurisdiction",
            "path": "Measure.jurisdiction",
            "comment": "It may be possible for the measure to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "Measure.purpose",
            "path": "Measure.purpose",
            "comment": "This element does not describe the usage of the measure. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this measure.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "Measure.usage",
            "path": "Measure.usage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Measure.copyright",
            "path": "Measure.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "Measure.approvalDate",
            "path": "Measure.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "Measure.lastReviewDate",
            "path": "Measure.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "Measure.effectivePeriod",
            "path": "Measure.effectivePeriod",
            "comment": "The effective period for a measure  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.topic",
            "path": "Measure.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "Measure.author",
            "path": "Measure.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Measure.editor",
            "path": "Measure.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Measure.reviewer",
            "path": "Measure.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Measure.endorser",
            "path": "Measure.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "Measure.relatedArtifact",
            "path": "Measure.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "Measure.library",
            "path": "Measure.library",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Library"
                ]
              }
            ]
          },
          {
            "id": "Measure.disclaimer",
            "path": "Measure.disclaimer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.scoring",
            "path": "Measure.scoring",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureScoring"
                }
              ],
              "strength": "extensible",
              "description": "The scoring type of the measure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-scoring"
            }
          },
          {
            "id": "Measure.compositeScoring",
            "path": "Measure.compositeScoring",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CompositeMeasureScoring"
                }
              ],
              "strength": "extensible",
              "description": "The composite scoring method of the measure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/composite-measure-scoring"
            }
          },
          {
            "id": "Measure.type",
            "path": "Measure.type",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureType"
                }
              ],
              "strength": "extensible",
              "description": "The type of measure (includes codes from 2.16.840.1.113883.1.11.20368).",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-type"
            }
          },
          {
            "id": "Measure.riskAdjustment",
            "path": "Measure.riskAdjustment",
            "comment": "Describes the method of adjusting for clinical severity and conditions present at the start of care that can influence patient outcomes for making valid comparisons of outcome measures across providers. Indicates whether a measure is subject to the statistical process for reducing, removing, or clarifying the influences of confounding factors to allow for more useful comparisons.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.rateAggregation",
            "path": "Measure.rateAggregation",
            "comment": "The measure rate for an organization or clinician is based upon the entities’ aggregate data and summarizes the performance of the entity over a given time period (e.g., monthly, quarterly, yearly). The aggregated data are derived from the results of a specific measure algorithm and, if appropriate, the application of specific risk adjustment models.  Can also be used to describe how to risk adjust the data based on supplemental data elements described in the eMeasure (e.g., pneumonia hospital measures antibiotic selection in the ICU versus non-ICU and then the roll-up of the two). This could be applied to aggregated cohort measure definitions (e.g., CDC's aggregate reporting for TB at the state level).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.rationale",
            "path": "Measure.rationale",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.clinicalRecommendationStatement",
            "path": "Measure.clinicalRecommendationStatement",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.improvementNotation",
            "path": "Measure.improvementNotation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureImprovementNotation"
                }
              ],
              "strength": "required",
              "description": "Observation values that indicate what change in a measurement value or score is indicative of an improvement in the measured item or scored issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-improvement-notation|4.0.1"
            }
          },
          {
            "id": "Measure.definition",
            "path": "Measure.definition",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.guidance",
            "path": "Measure.guidance",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Measure.group",
            "path": "Measure.group",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Measure.group.code",
            "path": "Measure.group.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "Measure.group.description",
            "path": "Measure.group.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Measure.group.population",
            "path": "Measure.group.population",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Measure.group.population.code",
            "path": "Measure.group.population.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasurePopulationType"
                }
              ],
              "strength": "extensible",
              "description": "The type of population.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-population"
            }
          },
          {
            "id": "Measure.group.population.description",
            "path": "Measure.group.population.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Measure.group.population.criteria",
            "path": "Measure.group.population.criteria",
            "comment": "In the case of a continuous-variable or ratio measure, this may be the name of a function that calculates the value of the individual observation for each patient or event in the population. For these types of measures, individual observations are reported as observation resources included in the evaluatedResources bundle for each patient. See the MeasureReport resource or the Quality Reporting topic for more information.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Expression"
              }
            ]
          },
          {
            "id": "Measure.group.stratifier",
            "path": "Measure.group.stratifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Measure.group.stratifier.code",
            "path": "Measure.group.stratifier.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "Measure.group.stratifier.description",
            "path": "Measure.group.stratifier.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Measure.group.stratifier.criteria",
            "path": "Measure.group.stratifier.criteria",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Expression"
              }
            ]
          },
          {
            "id": "Measure.group.stratifier.component",
            "path": "Measure.group.stratifier.component",
            "comment": "Stratifiers are defined either as a single criteria, or as a set of component criteria.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Measure.group.stratifier.component.code",
            "path": "Measure.group.stratifier.component.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "Measure.group.stratifier.component.description",
            "path": "Measure.group.stratifier.component.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Measure.group.stratifier.component.criteria",
            "path": "Measure.group.stratifier.component.criteria",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Expression"
              }
            ]
          },
          {
            "id": "Measure.supplementalData",
            "path": "Measure.supplementalData",
            "comment": "Note that supplemental data are reported as observations for each patient and included in the evaluatedResources bundle. See the MeasureReport resource or the Quality Reporting topic for more information.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Measure.supplementalData.code",
            "path": "Measure.supplementalData.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "Measure.supplementalData.usage",
            "path": "Measure.supplementalData.usage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureDataUsage"
                }
              ],
              "strength": "extensible",
              "description": "The intended usage for supplemental data elements in the measure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-data-usage"
            }
          },
          {
            "id": "Measure.supplementalData.description",
            "path": "Measure.supplementalData.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Measure.supplementalData.criteria",
            "path": "Measure.supplementalData.criteria",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Expression"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MeasureReport",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MeasureReport",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Quality Reporting & Testing"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cqi"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MeasureReport",
      "version": "4.0.1",
      "name": "MeasureReport",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MeasureReport",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MeasureReport",
            "path": "MeasureReport",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MeasureReport",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "mrp-1",
                "severity": "error",
                "human": "Measure Reports used for data collection SHALL NOT communicate group and score information",
                "expression": "(type != 'data-collection') or group.exists().not()",
                "xpath": "not(f:kind/@value='data-collection') or not(exists(f:group))"
              },
              {
                "key": "mrp-2",
                "severity": "error",
                "human": "Stratifiers SHALL be either a single criteria or a set of criteria components",
                "expression": "group.stratifier.stratum.all(value.exists() xor component.exists())",
                "xpath": "not(f:kind/@value='data-collection') or not(exists(f:group))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.id",
            "path": "MeasureReport.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MeasureReport.meta",
            "path": "MeasureReport.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MeasureReport.implicitRules",
            "path": "MeasureReport.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MeasureReport.language",
            "path": "MeasureReport.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MeasureReport.text",
            "path": "MeasureReport.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.contained",
            "path": "MeasureReport.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.extension",
            "path": "MeasureReport.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.modifierExtension",
            "path": "MeasureReport.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MeasureReport.identifier",
            "path": "MeasureReport.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II data type - e.g. to identify this {{title}} outside of FHIR, where the logical URL is not possible to use.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MeasureReport.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MeasureReport.status",
            "path": "MeasureReport.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MeasureReport.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureReportStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the measure report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-report-status|4.0.1"
            }
          },
          {
            "id": "MeasureReport.type",
            "path": "MeasureReport.type",
            "comment": "Data-collection reports are used only to communicate data-of-interest for a measure. They do not necessarily include all the data for a particular subject or population, but they may.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MeasureReport.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "mrp-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureReportType"
                }
              ],
              "strength": "required",
              "description": "The type of the measure report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-report-type|4.0.1"
            }
          },
          {
            "id": "MeasureReport.measure",
            "path": "MeasureReport.measure",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MeasureReport.measure",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Measure"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MeasureReport.subject",
            "path": "MeasureReport.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MeasureReport.date",
            "path": "MeasureReport.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MeasureReport.reporter",
            "path": "MeasureReport.reporter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.reporter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MeasureReport.period",
            "path": "MeasureReport.period",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MeasureReport.period",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MeasureReport.improvementNotation",
            "path": "MeasureReport.improvementNotation",
            "comment": "This element is typically defined by the measure, but reproduced here to ensure the measure score can be interpreted. The element is labeled as a modifier because it changes the interpretation of the reported measure score.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.improvementNotation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Improvement notation determines how to interpret the measure score (i.e. whether an increase is an improvement)",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureImprovementNotation"
                }
              ],
              "strength": "required",
              "description": "Observation values that indicate what change in a measurement value or score is indicative of an improvement in the measured item or scored issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-improvement-notation|4.0.1"
            }
          },
          {
            "id": "MeasureReport.group",
            "path": "MeasureReport.group",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MeasureReport.group",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "mrp-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.id",
            "path": "MeasureReport.group.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.extension",
            "path": "MeasureReport.group.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.modifierExtension",
            "path": "MeasureReport.group.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MeasureReport.group.code",
            "path": "MeasureReport.group.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MeasureReport.group.population",
            "path": "MeasureReport.group.population",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MeasureReport.group.population",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.population.id",
            "path": "MeasureReport.group.population.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.population.extension",
            "path": "MeasureReport.group.population.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.population.modifierExtension",
            "path": "MeasureReport.group.population.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MeasureReport.group.population.code",
            "path": "MeasureReport.group.population.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.population.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasurePopulation"
                }
              ],
              "strength": "extensible",
              "description": "The type of population (e.g. initial, numerator, denominator, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-population"
            }
          },
          {
            "id": "MeasureReport.group.population.count",
            "path": "MeasureReport.group.population.count",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.population.count",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.population.subjectResults",
            "path": "MeasureReport.group.population.subjectResults",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.population.subjectResults",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/List"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.measureScore",
            "path": "MeasureReport.group.measureScore",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.measureScore",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MeasureReport.group.stratifier",
            "path": "MeasureReport.group.stratifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MeasureReport.group.stratifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.id",
            "path": "MeasureReport.group.stratifier.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.extension",
            "path": "MeasureReport.group.stratifier.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.modifierExtension",
            "path": "MeasureReport.group.stratifier.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MeasureReport.group.stratifier.code",
            "path": "MeasureReport.group.stratifier.code",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MeasureReport.group.stratifier.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "StratifierGroup"
              }
            ],
            "path": "MeasureReport.group.stratifier.stratum",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MeasureReport.group.stratifier.stratum",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.id",
            "path": "MeasureReport.group.stratifier.stratum.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.extension",
            "path": "MeasureReport.group.stratifier.stratum.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.modifierExtension",
            "path": "MeasureReport.group.stratifier.stratum.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.value",
            "path": "MeasureReport.group.stratifier.stratum.value",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.stratifier.stratum.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.component",
            "path": "MeasureReport.group.stratifier.stratum.component",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MeasureReport.group.stratifier.stratum.component",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.component.id",
            "path": "MeasureReport.group.stratifier.stratum.component.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.component.extension",
            "path": "MeasureReport.group.stratifier.stratum.component.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.component.modifierExtension",
            "path": "MeasureReport.group.stratifier.stratum.component.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.component.code",
            "path": "MeasureReport.group.stratifier.stratum.component.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.stratifier.stratum.component.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.component.value",
            "path": "MeasureReport.group.stratifier.stratum.component.value",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.stratifier.stratum.component.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "StratifierGroupPopulation"
              }
            ],
            "path": "MeasureReport.group.stratifier.stratum.population",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MeasureReport.group.stratifier.stratum.population",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population.id",
            "path": "MeasureReport.group.stratifier.stratum.population.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population.extension",
            "path": "MeasureReport.group.stratifier.stratum.population.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population.modifierExtension",
            "path": "MeasureReport.group.stratifier.stratum.population.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population.code",
            "path": "MeasureReport.group.stratifier.stratum.population.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.stratifier.stratum.population.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasurePopulation"
                }
              ],
              "strength": "extensible",
              "description": "The type of population (e.g. initial, numerator, denominator, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-population"
            }
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population.count",
            "path": "MeasureReport.group.stratifier.stratum.population.count",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.stratifier.stratum.population.count",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population.subjectResults",
            "path": "MeasureReport.group.stratifier.stratum.population.subjectResults",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.stratifier.stratum.population.subjectResults",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/List"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.measureScore",
            "path": "MeasureReport.group.stratifier.stratum.measureScore",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MeasureReport.group.stratifier.stratum.measureScore",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MeasureReport.evaluatedResource",
            "path": "MeasureReport.evaluatedResource",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MeasureReport.evaluatedResource",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MeasureReport",
            "path": "MeasureReport",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "mrp-2",
                "severity": "error",
                "human": "Stratifiers SHALL be either a single criteria or a set of criteria components",
                "expression": "group.stratifier.stratum.all(value.exists() xor component.exists())",
                "xpath": "not(f:kind/@value='data-collection') or not(exists(f:group))"
              },
              {
                "key": "mrp-1",
                "severity": "error",
                "human": "Measure Reports used for data collection SHALL NOT communicate group and score information",
                "expression": "(type != 'data-collection') or group.exists().not()",
                "xpath": "not(f:kind/@value='data-collection') or not(exists(f:group))"
              }
            ]
          },
          {
            "id": "MeasureReport.identifier",
            "path": "MeasureReport.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II data type - e.g. to identify this {{title}} outside of FHIR, where the logical URL is not possible to use.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MeasureReport.status",
            "path": "MeasureReport.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureReportStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the measure report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-report-status|4.0.1"
            }
          },
          {
            "id": "MeasureReport.type",
            "path": "MeasureReport.type",
            "comment": "Data-collection reports are used only to communicate data-of-interest for a measure. They do not necessarily include all the data for a particular subject or population, but they may.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "mrp-1"
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureReportType"
                }
              ],
              "strength": "required",
              "description": "The type of the measure report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-report-type|4.0.1"
            }
          },
          {
            "id": "MeasureReport.measure",
            "path": "MeasureReport.measure",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Measure"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MeasureReport.subject",
            "path": "MeasureReport.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MeasureReport.date",
            "path": "MeasureReport.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MeasureReport.reporter",
            "path": "MeasureReport.reporter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MeasureReport.period",
            "path": "MeasureReport.period",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MeasureReport.improvementNotation",
            "path": "MeasureReport.improvementNotation",
            "comment": "This element is typically defined by the measure, but reproduced here to ensure the measure score can be interpreted. The element is labeled as a modifier because it changes the interpretation of the reported measure score.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Improvement notation determines how to interpret the measure score (i.e. whether an increase is an improvement)",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasureImprovementNotation"
                }
              ],
              "strength": "required",
              "description": "Observation values that indicate what change in a measurement value or score is indicative of an improvement in the measured item or scored issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-improvement-notation|4.0.1"
            }
          },
          {
            "id": "MeasureReport.group",
            "path": "MeasureReport.group",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "mrp-1"
            ]
          },
          {
            "id": "MeasureReport.group.code",
            "path": "MeasureReport.group.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MeasureReport.group.population",
            "path": "MeasureReport.group.population",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MeasureReport.group.population.code",
            "path": "MeasureReport.group.population.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasurePopulation"
                }
              ],
              "strength": "extensible",
              "description": "The type of population (e.g. initial, numerator, denominator, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-population"
            }
          },
          {
            "id": "MeasureReport.group.population.count",
            "path": "MeasureReport.group.population.count",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "MeasureReport.group.population.subjectResults",
            "path": "MeasureReport.group.population.subjectResults",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/List"
                ]
              }
            ]
          },
          {
            "id": "MeasureReport.group.measureScore",
            "path": "MeasureReport.group.measureScore",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MeasureReport.group.stratifier",
            "path": "MeasureReport.group.stratifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MeasureReport.group.stratifier.code",
            "path": "MeasureReport.group.stratifier.code",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MeasureReport.group.stratifier.stratum",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "StratifierGroup"
              }
            ],
            "path": "MeasureReport.group.stratifier.stratum",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.value",
            "path": "MeasureReport.group.stratifier.stratum.value",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.component",
            "path": "MeasureReport.group.stratifier.stratum.component",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.component.code",
            "path": "MeasureReport.group.stratifier.stratum.component.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.component.value",
            "path": "MeasureReport.group.stratifier.stratum.component.value",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "StratifierGroupPopulation"
              }
            ],
            "path": "MeasureReport.group.stratifier.stratum.population",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population.code",
            "path": "MeasureReport.group.stratifier.stratum.population.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MeasurePopulation"
                }
              ],
              "strength": "extensible",
              "description": "The type of population (e.g. initial, numerator, denominator, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/measure-population"
            }
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population.count",
            "path": "MeasureReport.group.stratifier.stratum.population.count",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.population.subjectResults",
            "path": "MeasureReport.group.stratifier.stratum.population.subjectResults",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/List"
                ]
              }
            ]
          },
          {
            "id": "MeasureReport.group.stratifier.stratum.measureScore",
            "path": "MeasureReport.group.stratifier.stratum.measureScore",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ]
          },
          {
            "id": "MeasureReport.evaluatedResource",
            "path": "MeasureReport.evaluatedResource",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Media",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Media",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Diagnostics"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Media",
      "version": "4.0.1",
      "name": "Media",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Media",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Media",
            "path": "Media",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Media",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Media.id",
            "path": "Media.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.meta",
            "path": "Media.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.implicitRules",
            "path": "Media.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Media.language",
            "path": "Media.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Media.text",
            "path": "Media.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Media.contained",
            "path": "Media.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Media.extension",
            "path": "Media.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Media.modifierExtension",
            "path": "Media.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Media.identifier",
            "path": "Media.identifier",
            "comment": "The identifier label and use can be used to determine what kind of identifier it is.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Media.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.basedOn",
            "path": "Media.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Media.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/CarePlan"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.partOf",
            "path": "Media.partOf",
            "comment": "Not to be used to link an event to an Encounter - use Media.encounter for that.\r\r[The allowed reference resources may be adjusted as appropriate for the event resource].",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Media.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.status",
            "path": "Media.status",
            "comment": "A nominal state-transition diagram can be found in the [[event.html#statemachine | Event pattern]] documentation\r\rUnknown does not represent \"other\" - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Media.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MediaStatus"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the lifecycle stage of an event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/event-status|4.0.1"
            }
          },
          {
            "id": "Media.type",
            "path": "Media.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MediaType"
                }
              ],
              "strength": "extensible",
              "description": "Codes for high level media categories.",
              "valueSet": "http://hl7.org/fhir/ValueSet/media-type"
            }
          },
          {
            "id": "Media.modality",
            "path": "Media.modality",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.modality",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MediaModality"
                }
              ],
              "strength": "example",
              "description": "Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it.",
              "valueSet": "http://hl7.org/fhir/ValueSet/media-modality"
            }
          },
          {
            "id": "Media.view",
            "path": "Media.view",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.view",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MediaView"
                }
              ],
              "strength": "example",
              "description": "Imaging view (projection) used when collecting an image.",
              "valueSet": "http://hl7.org/fhir/ValueSet/media-view"
            }
          },
          {
            "id": "Media.subject",
            "path": "Media.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Specimen",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.encounter",
            "path": "Media.encounter",
            "comment": "This will typically be the encounter the media occurred within.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.created[x]",
            "path": "Media.created[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.created[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.issued",
            "path": "Media.issued",
            "comment": "It may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that does not require the new version to be reviewed and verified again.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.issued",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.operator",
            "path": "Media.operator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.operator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.reasonCode",
            "path": "Media.reasonCode",
            "comment": "Textual reasons can be captured using reasonCode.text.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Media.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MediaReason"
                }
              ],
              "strength": "example",
              "description": "The reason for the media.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason"
            }
          },
          {
            "id": "Media.bodySite",
            "path": "Media.bodySite",
            "comment": "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.bodySite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "Media.deviceName",
            "path": "Media.deviceName",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.deviceName",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.device",
            "path": "Media.device",
            "comment": "An extension should be used if further typing of the device is needed.  Secondary devices used to support collecting a media can be represented using either extension or through the Observation.related element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.device",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.height",
            "path": "Media.height",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.height",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.width",
            "path": "Media.width",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.width",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.frames",
            "path": "Media.frames",
            "comment": "if the number of frames is not supplied, the value may be unknown. Applications should not assume that there is only one frame unless it is explicitly stated.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.frames",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.duration",
            "path": "Media.duration",
            "comment": "The duration might differ from occurrencePeriod if recording was paused.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Media.duration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.content",
            "path": "Media.content",
            "comment": "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 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",
            "base": {
              "path": "Media.content",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Media.note",
            "path": "Media.note",
            "comment": "Not to be used for observations, conclusions, etc. Instead use an [Observation](observation.html) based on the Media/ImagingStudy resource.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Media.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Media",
            "path": "Media",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Media.identifier",
            "path": "Media.identifier",
            "comment": "The identifier label and use can be used to determine what kind of identifier it is.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.basedOn",
            "path": "Media.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/CarePlan"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.partOf",
            "path": "Media.partOf",
            "comment": "Not to be used to link an event to an Encounter - use Media.encounter for that.\r\r[The allowed reference resources may be adjusted as appropriate for the event resource].",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.status",
            "path": "Media.status",
            "comment": "A nominal state-transition diagram can be found in the [[event.html#statemachine | Event pattern]] documentation\r\rUnknown does not represent \"other\" - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MediaStatus"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the lifecycle stage of an event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/event-status|4.0.1"
            }
          },
          {
            "id": "Media.type",
            "path": "Media.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MediaType"
                }
              ],
              "strength": "extensible",
              "description": "Codes for high level media categories.",
              "valueSet": "http://hl7.org/fhir/ValueSet/media-type"
            }
          },
          {
            "id": "Media.modality",
            "path": "Media.modality",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MediaModality"
                }
              ],
              "strength": "example",
              "description": "Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it.",
              "valueSet": "http://hl7.org/fhir/ValueSet/media-modality"
            }
          },
          {
            "id": "Media.view",
            "path": "Media.view",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MediaView"
                }
              ],
              "strength": "example",
              "description": "Imaging view (projection) used when collecting an image.",
              "valueSet": "http://hl7.org/fhir/ValueSet/media-view"
            }
          },
          {
            "id": "Media.subject",
            "path": "Media.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Specimen",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.encounter",
            "path": "Media.encounter",
            "comment": "This will typically be the encounter the media occurred within.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.created[x]",
            "path": "Media.created[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.issued",
            "path": "Media.issued",
            "comment": "It may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that does not require the new version to be reviewed and verified again.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.operator",
            "path": "Media.operator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.reasonCode",
            "path": "Media.reasonCode",
            "comment": "Textual reasons can be captured using reasonCode.text.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MediaReason"
                }
              ],
              "strength": "example",
              "description": "The reason for the media.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason"
            }
          },
          {
            "id": "Media.bodySite",
            "path": "Media.bodySite",
            "comment": "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "Media.deviceName",
            "path": "Media.deviceName",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.device",
            "path": "Media.device",
            "comment": "An extension should be used if further typing of the device is needed.  Secondary devices used to support collecting a media can be represented using either extension or through the Observation.related element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.height",
            "path": "Media.height",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.width",
            "path": "Media.width",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.frames",
            "path": "Media.frames",
            "comment": "if the number of frames is not supplied, the value may be unknown. Applications should not assume that there is only one frame unless it is explicitly stated.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.duration",
            "path": "Media.duration",
            "comment": "The duration might differ from occurrencePeriod if recording was paused.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.content",
            "path": "Media.content",
            "comment": "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 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"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Media.note",
            "path": "Media.note",
            "comment": "Not to be used for observations, conclusions, etc. Instead use an [Observation](observation.html) based on the Media/ImagingStudy resource.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Medication",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Medication",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Medications"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "phx"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Medication",
      "version": "4.0.1",
      "name": "Medication",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Medication",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Medication",
            "path": "Medication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Medication",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.id",
            "path": "Medication.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Medication.meta",
            "path": "Medication.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Medication.implicitRules",
            "path": "Medication.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Medication.language",
            "path": "Medication.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Medication.text",
            "path": "Medication.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.contained",
            "path": "Medication.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.extension",
            "path": "Medication.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.modifierExtension",
            "path": "Medication.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Medication.identifier",
            "path": "Medication.identifier",
            "comment": "The serial number could be included as an identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Medication.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Medication.code",
            "path": "Medication.code",
            "comment": "Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true.  As described in the coding datatype: \"A coding may be marked as a \"userSelected\" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc. 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",
            "base": {
              "path": "Medication.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationFormalRepresentation"
                }
              ],
              "strength": "example",
              "description": "A coded concept that defines the type of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "Medication.status",
            "path": "Medication.status",
            "comment": "This status is intended to identify if the medication in a local system is in active use within a drug database or inventory.  For example, a pharmacy system may create a new drug file record for a compounded product \"ABC Hospital Special Cream\" with an active status.  At some point in the future, it may be determined that the drug record was created with an error and the status is changed to \"entered in error\".   This status is not intended to specify if a medication is part of a particular formulary.  It is possible that the drug record may be referenced by multiple formularies or catalogues and each of those entries would have a separate status.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Medication.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept defining if the medication is in active use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-status|4.0.1"
            }
          },
          {
            "id": "Medication.manufacturer",
            "path": "Medication.manufacturer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Medication.manufacturer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Medication.form",
            "path": "Medication.form",
            "comment": "When Medication is referenced from MedicationRequest, this is the ordered form.  When Medication is referenced within MedicationDispense, this is the dispensed form.  When Medication is referenced within MedicationAdministration, this is administered form.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Medication.form",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationForm"
                }
              ],
              "strength": "example",
              "description": "A coded concept defining the form of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-form-codes"
            }
          },
          {
            "id": "Medication.amount",
            "path": "Medication.amount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Medication.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Medication.ingredient",
            "path": "Medication.ingredient",
            "comment": "The ingredients need not be a complete list.  If an ingredient is not specified, this does not indicate whether an ingredient is present or absent.  If an ingredient is specified it does not mean that all ingredients are specified.  It is possible to specify both inactive and active ingredients.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Medication.ingredient",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.ingredient.id",
            "path": "Medication.ingredient.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.ingredient.extension",
            "path": "Medication.ingredient.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.ingredient.modifierExtension",
            "path": "Medication.ingredient.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Medication.ingredient.item[x]",
            "path": "Medication.ingredient.item[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Medication.ingredient.item[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.ingredient.isActive",
            "path": "Medication.ingredient.isActive",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Medication.ingredient.isActive",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.ingredient.strength",
            "path": "Medication.ingredient.strength",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Medication.ingredient.strength",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.batch",
            "path": "Medication.batch",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Medication.batch",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.batch.id",
            "path": "Medication.batch.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.batch.extension",
            "path": "Medication.batch.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.batch.modifierExtension",
            "path": "Medication.batch.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Medication.batch.lotNumber",
            "path": "Medication.batch.lotNumber",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Medication.batch.lotNumber",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Medication.batch.expirationDate",
            "path": "Medication.batch.expirationDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Medication.batch.expirationDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Medication",
            "path": "Medication",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Medication.identifier",
            "path": "Medication.identifier",
            "comment": "The serial number could be included as an identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Medication.code",
            "path": "Medication.code",
            "comment": "Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true.  As described in the coding datatype: \"A coding may be marked as a \"userSelected\" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc. 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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationFormalRepresentation"
                }
              ],
              "strength": "example",
              "description": "A coded concept that defines the type of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "Medication.status",
            "path": "Medication.status",
            "comment": "This status is intended to identify if the medication in a local system is in active use within a drug database or inventory.  For example, a pharmacy system may create a new drug file record for a compounded product \"ABC Hospital Special Cream\" with an active status.  At some point in the future, it may be determined that the drug record was created with an error and the status is changed to \"entered in error\".   This status is not intended to specify if a medication is part of a particular formulary.  It is possible that the drug record may be referenced by multiple formularies or catalogues and each of those entries would have a separate status.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept defining if the medication is in active use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-status|4.0.1"
            }
          },
          {
            "id": "Medication.manufacturer",
            "path": "Medication.manufacturer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Medication.form",
            "path": "Medication.form",
            "comment": "When Medication is referenced from MedicationRequest, this is the ordered form.  When Medication is referenced within MedicationDispense, this is the dispensed form.  When Medication is referenced within MedicationAdministration, this is administered form.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationForm"
                }
              ],
              "strength": "example",
              "description": "A coded concept defining the form of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-form-codes"
            }
          },
          {
            "id": "Medication.amount",
            "path": "Medication.amount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Medication.ingredient",
            "path": "Medication.ingredient",
            "comment": "The ingredients need not be a complete list.  If an ingredient is not specified, this does not indicate whether an ingredient is present or absent.  If an ingredient is specified it does not mean that all ingredients are specified.  It is possible to specify both inactive and active ingredients.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Medication.ingredient.item[x]",
            "path": "Medication.ingredient.item[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ]
          },
          {
            "id": "Medication.ingredient.isActive",
            "path": "Medication.ingredient.isActive",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "Medication.ingredient.strength",
            "path": "Medication.ingredient.strength",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ]
          },
          {
            "id": "Medication.batch",
            "path": "Medication.batch",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Medication.batch.lotNumber",
            "path": "Medication.batch.lotNumber",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Medication.batch.expirationDate",
            "path": "Medication.batch.expirationDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicationAdministration",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Medications"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "phx"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
      "version": "4.0.1",
      "name": "MedicationAdministration",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicationAdministration",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicationAdministration",
            "path": "MedicationAdministration",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.id",
            "path": "MedicationAdministration.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.meta",
            "path": "MedicationAdministration.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.implicitRules",
            "path": "MedicationAdministration.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.language",
            "path": "MedicationAdministration.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicationAdministration.text",
            "path": "MedicationAdministration.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.contained",
            "path": "MedicationAdministration.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.extension",
            "path": "MedicationAdministration.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.modifierExtension",
            "path": "MedicationAdministration.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.identifier",
            "path": "MedicationAdministration.identifier",
            "comment": "This is a business identifier, not a resource identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.instantiates",
            "path": "MedicationAdministration.instantiates",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.instantiates",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.partOf",
            "path": "MedicationAdministration.partOf",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.status",
            "path": "MedicationAdministration.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationStatus"
                }
              ],
              "strength": "required",
              "description": "A set of codes indicating the current status of a MedicationAdministration.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-admin-status|4.0.1"
            }
          },
          {
            "id": "MedicationAdministration.statusReason",
            "path": "MedicationAdministration.statusReason",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.statusReason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationNegationReason"
                }
              ],
              "strength": "example",
              "description": "A set of codes indicating the reason why the MedicationAdministration is negated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes"
            }
          },
          {
            "id": "MedicationAdministration.category",
            "path": "MedicationAdministration.category",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationCategory"
                }
              ],
              "strength": "preferred",
              "description": "A coded concept describing where the medication administered is expected to occur.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-admin-category"
            }
          },
          {
            "id": "MedicationAdministration.medication[x]",
            "path": "MedicationAdministration.medication[x]",
            "comment": "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.  For example, if you require form or lot number, then you must reference the Medication resource.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.medication[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationCode"
                }
              ],
              "strength": "example",
              "description": "Codes identifying substance or product that can be administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "MedicationAdministration.subject",
            "path": "MedicationAdministration.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.context",
            "path": "MedicationAdministration.context",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.context",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.supportingInformation",
            "path": "MedicationAdministration.supportingInformation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.supportingInformation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.effective[x]",
            "path": "MedicationAdministration.effective[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.effective[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.performer",
            "path": "MedicationAdministration.performer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.performer.id",
            "path": "MedicationAdministration.performer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.performer.extension",
            "path": "MedicationAdministration.performer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.performer.modifierExtension",
            "path": "MedicationAdministration.performer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.performer.function",
            "path": "MedicationAdministration.performer.function",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.performer.function",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationPerformerFunction"
                }
              ],
              "strength": "example",
              "description": "A code describing the role an individual played in administering the medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/med-admin-perform-function"
            }
          },
          {
            "id": "MedicationAdministration.performer.actor",
            "path": "MedicationAdministration.performer.actor",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.performer.actor",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.reasonCode",
            "path": "MedicationAdministration.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationReason"
                }
              ],
              "strength": "example",
              "description": "A set of codes indicating the reason why the MedicationAdministration was made.",
              "valueSet": "http://hl7.org/fhir/ValueSet/reason-medication-given-codes"
            }
          },
          {
            "id": "MedicationAdministration.reasonReference",
            "path": "MedicationAdministration.reasonReference",
            "comment": "This is a reference to a condition that is the reason for the medication request.  If only a code exists, use reasonCode.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.request",
            "path": "MedicationAdministration.request",
            "comment": "This is a reference to the MedicationRequest  where the intent is either order or instance-order.  It should not reference MedicationRequests where the intent is any other value.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.request",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.device",
            "path": "MedicationAdministration.device",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.device",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.note",
            "path": "MedicationAdministration.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.dosage",
            "path": "MedicationAdministration.dosage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.dosage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "mad-1",
                "severity": "error",
                "human": "SHALL have at least one of dosage.dose or dosage.rate[x]",
                "expression": "dose.exists() or rate.exists()",
                "xpath": "exists(f:dose) or exists(f:*[starts-with(local-name(.), 'rate')])"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.dosage.id",
            "path": "MedicationAdministration.dosage.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.dosage.extension",
            "path": "MedicationAdministration.dosage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.dosage.modifierExtension",
            "path": "MedicationAdministration.dosage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.dosage.text",
            "path": "MedicationAdministration.dosage.text",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.dosage.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.dosage.site",
            "path": "MedicationAdministration.dosage.site",
            "comment": "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html).  May be a summary code, or a reference to a very precise definition of the location, or both.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.dosage.site",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationSite"
                }
              ],
              "strength": "example",
              "description": "A coded concept describing the site location the medicine enters into or onto the body.",
              "valueSet": "http://hl7.org/fhir/ValueSet/approach-site-codes"
            }
          },
          {
            "id": "MedicationAdministration.dosage.route",
            "path": "MedicationAdministration.dosage.route",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.dosage.route",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RouteOfAdministration"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/route-codes"
            }
          },
          {
            "id": "MedicationAdministration.dosage.method",
            "path": "MedicationAdministration.dosage.method",
            "comment": "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",
            "base": {
              "path": "MedicationAdministration.dosage.method",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationMethod"
                }
              ],
              "strength": "example",
              "description": "A coded concept describing the technique by which the medicine is administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administration-method-codes"
            }
          },
          {
            "id": "MedicationAdministration.dosage.dose",
            "path": "MedicationAdministration.dosage.dose",
            "comment": "If the administration is not instantaneous (rate is present), this can be specified to convey the total amount administered over period of time of a single administration.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationAdministration.dosage.dose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.dosage.rate[x]",
            "path": "MedicationAdministration.dosage.rate[x]",
            "comment": "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",
            "base": {
              "path": "MedicationAdministration.dosage.rate[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              },
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationAdministration.eventHistory",
            "path": "MedicationAdministration.eventHistory",
            "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationAdministration.eventHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicationAdministration",
            "path": "MedicationAdministration",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicationAdministration.identifier",
            "path": "MedicationAdministration.identifier",
            "comment": "This is a business identifier, not a resource identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "MedicationAdministration.instantiates",
            "path": "MedicationAdministration.instantiates",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.partOf",
            "path": "MedicationAdministration.partOf",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.status",
            "path": "MedicationAdministration.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationStatus"
                }
              ],
              "strength": "required",
              "description": "A set of codes indicating the current status of a MedicationAdministration.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-admin-status|4.0.1"
            }
          },
          {
            "id": "MedicationAdministration.statusReason",
            "path": "MedicationAdministration.statusReason",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationNegationReason"
                }
              ],
              "strength": "example",
              "description": "A set of codes indicating the reason why the MedicationAdministration is negated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes"
            }
          },
          {
            "id": "MedicationAdministration.category",
            "path": "MedicationAdministration.category",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationCategory"
                }
              ],
              "strength": "preferred",
              "description": "A coded concept describing where the medication administered is expected to occur.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-admin-category"
            }
          },
          {
            "id": "MedicationAdministration.medication[x]",
            "path": "MedicationAdministration.medication[x]",
            "comment": "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.  For example, if you require form or lot number, then you must reference the Medication resource.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationCode"
                }
              ],
              "strength": "example",
              "description": "Codes identifying substance or product that can be administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "MedicationAdministration.subject",
            "path": "MedicationAdministration.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.context",
            "path": "MedicationAdministration.context",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ]
          },
          {
            "id": "MedicationAdministration.supportingInformation",
            "path": "MedicationAdministration.supportingInformation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "MedicationAdministration.effective[x]",
            "path": "MedicationAdministration.effective[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.performer",
            "path": "MedicationAdministration.performer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.performer.function",
            "path": "MedicationAdministration.performer.function",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationPerformerFunction"
                }
              ],
              "strength": "example",
              "description": "A code describing the role an individual played in administering the medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/med-admin-perform-function"
            }
          },
          {
            "id": "MedicationAdministration.performer.actor",
            "path": "MedicationAdministration.performer.actor",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationAdministration.reasonCode",
            "path": "MedicationAdministration.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationReason"
                }
              ],
              "strength": "example",
              "description": "A set of codes indicating the reason why the MedicationAdministration was made.",
              "valueSet": "http://hl7.org/fhir/ValueSet/reason-medication-given-codes"
            }
          },
          {
            "id": "MedicationAdministration.reasonReference",
            "path": "MedicationAdministration.reasonReference",
            "comment": "This is a reference to a condition that is the reason for the medication request.  If only a code exists, use reasonCode.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                ]
              }
            ]
          },
          {
            "id": "MedicationAdministration.request",
            "path": "MedicationAdministration.request",
            "comment": "This is a reference to the MedicationRequest  where the intent is either order or instance-order.  It should not reference MedicationRequests where the intent is any other value.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
                ]
              }
            ]
          },
          {
            "id": "MedicationAdministration.device",
            "path": "MedicationAdministration.device",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "MedicationAdministration.note",
            "path": "MedicationAdministration.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "MedicationAdministration.dosage",
            "path": "MedicationAdministration.dosage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "mad-1",
                "severity": "error",
                "human": "SHALL have at least one of dosage.dose or dosage.rate[x]",
                "expression": "dose.exists() or rate.exists()",
                "xpath": "exists(f:dose) or exists(f:*[starts-with(local-name(.), 'rate')])"
              }
            ]
          },
          {
            "id": "MedicationAdministration.dosage.text",
            "path": "MedicationAdministration.dosage.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "MedicationAdministration.dosage.site",
            "path": "MedicationAdministration.dosage.site",
            "comment": "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html).  May be a summary code, or a reference to a very precise definition of the location, or both.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationSite"
                }
              ],
              "strength": "example",
              "description": "A coded concept describing the site location the medicine enters into or onto the body.",
              "valueSet": "http://hl7.org/fhir/ValueSet/approach-site-codes"
            }
          },
          {
            "id": "MedicationAdministration.dosage.route",
            "path": "MedicationAdministration.dosage.route",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RouteOfAdministration"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/route-codes"
            }
          },
          {
            "id": "MedicationAdministration.dosage.method",
            "path": "MedicationAdministration.dosage.method",
            "comment": "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"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationAdministrationMethod"
                }
              ],
              "strength": "example",
              "description": "A coded concept describing the technique by which the medicine is administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administration-method-codes"
            }
          },
          {
            "id": "MedicationAdministration.dosage.dose",
            "path": "MedicationAdministration.dosage.dose",
            "comment": "If the administration is not instantaneous (rate is present), this can be specified to convey the total amount administered over period of time of a single administration.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationAdministration.dosage.rate[x]",
            "path": "MedicationAdministration.dosage.rate[x]",
            "comment": "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": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationAdministration.eventHistory",
            "path": "MedicationAdministration.eventHistory",
            "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicationDispense",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Medications"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "phx"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
      "version": "4.0.1",
      "name": "MedicationDispense",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicationDispense",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicationDispense",
            "path": "MedicationDispense",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "mdd-1",
                "severity": "error",
                "human": "whenHandedOver cannot be before whenPrepared",
                "expression": "whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared",
                "xpath": "not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.id",
            "path": "MedicationDispense.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationDispense.meta",
            "path": "MedicationDispense.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationDispense.implicitRules",
            "path": "MedicationDispense.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicationDispense.language",
            "path": "MedicationDispense.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicationDispense.text",
            "path": "MedicationDispense.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.contained",
            "path": "MedicationDispense.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.extension",
            "path": "MedicationDispense.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.modifierExtension",
            "path": "MedicationDispense.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicationDispense.identifier",
            "path": "MedicationDispense.identifier",
            "comment": "This is a business identifier, not a resource identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.partOf",
            "path": "MedicationDispense.partOf",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.status",
            "path": "MedicationDispense.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationDispense.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationDispenseStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept specifying the state of the dispense event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1"
            }
          },
          {
            "id": "MedicationDispense.statusReason[x]",
            "path": "MedicationDispense.statusReason[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.statusReason[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationDispenseStatusReason"
                }
              ],
              "strength": "example",
              "description": "A code describing why a dispense was not performed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-status-reason"
            }
          },
          {
            "id": "MedicationDispense.category",
            "path": "MedicationDispense.category",
            "comment": "The category can be used to include where the medication is expected to be consumed or other types of dispenses.  Invariants can be used to bind to different value sets when profiling to bind.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationDispenseCategory"
                }
              ],
              "strength": "preferred",
              "description": "A code describing where the dispensed medication is expected to be consumed or administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-category"
            }
          },
          {
            "id": "MedicationDispense.medication[x]",
            "path": "MedicationDispense.medication[x]",
            "comment": "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.  For example, if you require form or lot number, then you must reference the Medication resource.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationDispense.medication[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationCode"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying which substance or product can be dispensed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "MedicationDispense.subject",
            "path": "MedicationDispense.subject",
            "comment": "SubstanceAdministration->subject->Patient.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationDispense.context",
            "path": "MedicationDispense.context",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.context",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.supportingInformation",
            "path": "MedicationDispense.supportingInformation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.supportingInformation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.performer",
            "path": "MedicationDispense.performer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.performer.id",
            "path": "MedicationDispense.performer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.performer.extension",
            "path": "MedicationDispense.performer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.performer.modifierExtension",
            "path": "MedicationDispense.performer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationDispense.performer.function",
            "path": "MedicationDispense.performer.function",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.performer.function",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationDispensePerformerFunction"
                }
              ],
              "strength": "example",
              "description": "A code describing the role an individual played in dispensing a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-performer-function"
            }
          },
          {
            "id": "MedicationDispense.performer.actor",
            "path": "MedicationDispense.performer.actor",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationDispense.performer.actor",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.location",
            "path": "MedicationDispense.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.authorizingPrescription",
            "path": "MedicationDispense.authorizingPrescription",
            "comment": "Maps to basedOn in Event logical model.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.authorizingPrescription",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.type",
            "path": "MedicationDispense.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationDispenseType"
                }
              ],
              "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.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType"
            }
          },
          {
            "id": "MedicationDispense.quantity",
            "path": "MedicationDispense.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.daysSupply",
            "path": "MedicationDispense.daysSupply",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.daysSupply",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.whenPrepared",
            "path": "MedicationDispense.whenPrepared",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.whenPrepared",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationDispense.whenHandedOver",
            "path": "MedicationDispense.whenHandedOver",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.whenHandedOver",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.destination",
            "path": "MedicationDispense.destination",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.destination",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.receiver",
            "path": "MedicationDispense.receiver",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.receiver",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.note",
            "path": "MedicationDispense.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.dosageInstruction",
            "path": "MedicationDispense.dosageInstruction",
            "comment": "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.\rThe pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.dosageInstruction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Dosage"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.substitution",
            "path": "MedicationDispense.substitution",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.substitution",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.substitution.id",
            "path": "MedicationDispense.substitution.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.substitution.extension",
            "path": "MedicationDispense.substitution.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.substitution.modifierExtension",
            "path": "MedicationDispense.substitution.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationDispense.substitution.wasSubstituted",
            "path": "MedicationDispense.substitution.wasSubstituted",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationDispense.substitution.wasSubstituted",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.substitution.type",
            "path": "MedicationDispense.substitution.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationDispense.substitution.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationIntendedSubstitutionType"
                }
              ],
              "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.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
            }
          },
          {
            "id": "MedicationDispense.substitution.reason",
            "path": "MedicationDispense.substitution.reason",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.substitution.reason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationIntendedSubstitutionReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason"
            }
          },
          {
            "id": "MedicationDispense.substitution.responsibleParty",
            "path": "MedicationDispense.substitution.responsibleParty",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.substitution.responsibleParty",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.detectedIssue",
            "path": "MedicationDispense.detectedIssue",
            "comment": "This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.detectedIssue",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationDispense.eventHistory",
            "path": "MedicationDispense.eventHistory",
            "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationDispense.eventHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicationDispense",
            "path": "MedicationDispense",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "mdd-1",
                "severity": "error",
                "human": "whenHandedOver cannot be before whenPrepared",
                "expression": "whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared",
                "xpath": "not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)"
              }
            ]
          },
          {
            "id": "MedicationDispense.identifier",
            "path": "MedicationDispense.identifier",
            "comment": "This is a business identifier, not a resource identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "MedicationDispense.partOf",
            "path": "MedicationDispense.partOf",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.status",
            "path": "MedicationDispense.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationDispenseStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept specifying the state of the dispense event.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1"
            }
          },
          {
            "id": "MedicationDispense.statusReason[x]",
            "path": "MedicationDispense.statusReason[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationDispenseStatusReason"
                }
              ],
              "strength": "example",
              "description": "A code describing why a dispense was not performed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-status-reason"
            }
          },
          {
            "id": "MedicationDispense.category",
            "path": "MedicationDispense.category",
            "comment": "The category can be used to include where the medication is expected to be consumed or other types of dispenses.  Invariants can be used to bind to different value sets when profiling to bind.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationDispenseCategory"
                }
              ],
              "strength": "preferred",
              "description": "A code describing where the dispensed medication is expected to be consumed or administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-category"
            }
          },
          {
            "id": "MedicationDispense.medication[x]",
            "path": "MedicationDispense.medication[x]",
            "comment": "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.  For example, if you require form or lot number, then you must reference the Medication resource.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationCode"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying which substance or product can be dispensed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "MedicationDispense.subject",
            "path": "MedicationDispense.subject",
            "comment": "SubstanceAdministration->subject->Patient.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationDispense.context",
            "path": "MedicationDispense.context",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.supportingInformation",
            "path": "MedicationDispense.supportingInformation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.performer",
            "path": "MedicationDispense.performer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationDispense.performer.function",
            "path": "MedicationDispense.performer.function",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationDispensePerformerFunction"
                }
              ],
              "strength": "example",
              "description": "A code describing the role an individual played in dispensing a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-performer-function"
            }
          },
          {
            "id": "MedicationDispense.performer.actor",
            "path": "MedicationDispense.performer.actor",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.location",
            "path": "MedicationDispense.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.authorizingPrescription",
            "path": "MedicationDispense.authorizingPrescription",
            "comment": "Maps to basedOn in Event logical model.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.type",
            "path": "MedicationDispense.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationDispenseType"
                }
              ],
              "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.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType"
            }
          },
          {
            "id": "MedicationDispense.quantity",
            "path": "MedicationDispense.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.daysSupply",
            "path": "MedicationDispense.daysSupply",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.whenPrepared",
            "path": "MedicationDispense.whenPrepared",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationDispense.whenHandedOver",
            "path": "MedicationDispense.whenHandedOver",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "MedicationDispense.destination",
            "path": "MedicationDispense.destination",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.receiver",
            "path": "MedicationDispense.receiver",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.note",
            "path": "MedicationDispense.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "MedicationDispense.dosageInstruction",
            "path": "MedicationDispense.dosageInstruction",
            "comment": "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.\rThe pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Dosage"
              }
            ]
          },
          {
            "id": "MedicationDispense.substitution",
            "path": "MedicationDispense.substitution",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationDispense.substitution.wasSubstituted",
            "path": "MedicationDispense.substitution.wasSubstituted",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "MedicationDispense.substitution.type",
            "path": "MedicationDispense.substitution.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationIntendedSubstitutionType"
                }
              ],
              "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.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
            }
          },
          {
            "id": "MedicationDispense.substitution.reason",
            "path": "MedicationDispense.substitution.reason",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationIntendedSubstitutionReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason"
            }
          },
          {
            "id": "MedicationDispense.substitution.responsibleParty",
            "path": "MedicationDispense.substitution.responsibleParty",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.detectedIssue",
            "path": "MedicationDispense.detectedIssue",
            "comment": "This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
                ]
              }
            ]
          },
          {
            "id": "MedicationDispense.eventHistory",
            "path": "MedicationDispense.eventHistory",
            "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicationKnowledge",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicationKnowledge",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Medications"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "phx"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicationKnowledge",
      "version": "4.0.1",
      "name": "MedicationKnowledge",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicationKnowledge",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicationKnowledge",
            "path": "MedicationKnowledge",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.id",
            "path": "MedicationKnowledge.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.meta",
            "path": "MedicationKnowledge.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.implicitRules",
            "path": "MedicationKnowledge.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.language",
            "path": "MedicationKnowledge.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicationKnowledge.text",
            "path": "MedicationKnowledge.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.contained",
            "path": "MedicationKnowledge.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.extension",
            "path": "MedicationKnowledge.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.modifierExtension",
            "path": "MedicationKnowledge.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.code",
            "path": "MedicationKnowledge.code",
            "comment": "Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true.  As described in the coding datatype: \"A coding may be marked as a \"userSelected\" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc. 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",
            "base": {
              "path": "MedicationKnowledge.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationFormalRepresentation"
                }
              ],
              "strength": "example",
              "description": "A coded concept that defines the type of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "MedicationKnowledge.status",
            "path": "MedicationKnowledge.status",
            "comment": "This status is intended to identify if the medication in a local system is in active use within a drug database or inventory.  For example, a pharmacy system may create a new drug file record for a compounded product \"ABC Hospital Special Cream\" with an active status.  At some point in the future, it may be determined that the drug record was created with an error and the status is changed to \"entered in error\".   This status is not intended to specify if a medication is part of a particular formulary.  It is possible that the drug record may be referenced by multiple formularies or catalogues and each of those entries would have a separate status.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationKnowledgeStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept defining if the medication is in active use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-status|4.0.1"
            }
          },
          {
            "id": "MedicationKnowledge.manufacturer",
            "path": "MedicationKnowledge.manufacturer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.manufacturer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.doseForm",
            "path": "MedicationKnowledge.doseForm",
            "comment": "When Medication is referenced from MedicationRequest, this is the ordered form.  When Medication is referenced within MedicationDispense, this is the dispensed form.  When Medication is referenced within MedicationAdministration, this is administered form.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.doseForm",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationForm"
                }
              ],
              "strength": "example",
              "description": "A coded concept defining the form of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-form-codes"
            }
          },
          {
            "id": "MedicationKnowledge.amount",
            "path": "MedicationKnowledge.amount",
            "comment": "This is the quantity of medication in a package.  To specify the strength of the medication, the Ingredient.strength attribute is used.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.synonym",
            "path": "MedicationKnowledge.synonym",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.synonym",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.relatedMedicationKnowledge",
            "path": "MedicationKnowledge.relatedMedicationKnowledge",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.relatedMedicationKnowledge",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.relatedMedicationKnowledge.id",
            "path": "MedicationKnowledge.relatedMedicationKnowledge.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.relatedMedicationKnowledge.extension",
            "path": "MedicationKnowledge.relatedMedicationKnowledge.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.relatedMedicationKnowledge.modifierExtension",
            "path": "MedicationKnowledge.relatedMedicationKnowledge.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.relatedMedicationKnowledge.type",
            "path": "MedicationKnowledge.relatedMedicationKnowledge.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.relatedMedicationKnowledge.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.relatedMedicationKnowledge.reference",
            "path": "MedicationKnowledge.relatedMedicationKnowledge.reference",
            "min": 1,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.relatedMedicationKnowledge.reference",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationKnowledge"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.associatedMedication",
            "path": "MedicationKnowledge.associatedMedication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.associatedMedication",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.productType",
            "path": "MedicationKnowledge.productType",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.productType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.monograph",
            "path": "MedicationKnowledge.monograph",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.monograph",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.monograph.id",
            "path": "MedicationKnowledge.monograph.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.monograph.extension",
            "path": "MedicationKnowledge.monograph.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.monograph.modifierExtension",
            "path": "MedicationKnowledge.monograph.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.monograph.type",
            "path": "MedicationKnowledge.monograph.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.monograph.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.monograph.source",
            "path": "MedicationKnowledge.monograph.source",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.monograph.source",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/Media"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.ingredient",
            "path": "MedicationKnowledge.ingredient",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.ingredient",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.ingredient.id",
            "path": "MedicationKnowledge.ingredient.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.ingredient.extension",
            "path": "MedicationKnowledge.ingredient.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.ingredient.modifierExtension",
            "path": "MedicationKnowledge.ingredient.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.ingredient.item[x]",
            "path": "MedicationKnowledge.ingredient.item[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.ingredient.item[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.ingredient.isActive",
            "path": "MedicationKnowledge.ingredient.isActive",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.ingredient.isActive",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.ingredient.strength",
            "path": "MedicationKnowledge.ingredient.strength",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.ingredient.strength",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.preparationInstruction",
            "path": "MedicationKnowledge.preparationInstruction",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.preparationInstruction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.intendedRoute",
            "path": "MedicationKnowledge.intendedRoute",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.intendedRoute",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRoute"
                }
              ],
              "strength": "example",
              "description": "A coded concept defining the intended route of administration.",
              "valueSet": "http://hl7.org/fhir/ValueSet/route-codes"
            }
          },
          {
            "id": "MedicationKnowledge.cost",
            "path": "MedicationKnowledge.cost",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.cost",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.cost.id",
            "path": "MedicationKnowledge.cost.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.cost.extension",
            "path": "MedicationKnowledge.cost.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.cost.modifierExtension",
            "path": "MedicationKnowledge.cost.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.cost.type",
            "path": "MedicationKnowledge.cost.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.cost.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.cost.source",
            "path": "MedicationKnowledge.cost.source",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.cost.source",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.cost.cost",
            "path": "MedicationKnowledge.cost.cost",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.cost.cost",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.monitoringProgram",
            "path": "MedicationKnowledge.monitoringProgram",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.monitoringProgram",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.monitoringProgram.id",
            "path": "MedicationKnowledge.monitoringProgram.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.monitoringProgram.extension",
            "path": "MedicationKnowledge.monitoringProgram.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.monitoringProgram.modifierExtension",
            "path": "MedicationKnowledge.monitoringProgram.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.monitoringProgram.type",
            "path": "MedicationKnowledge.monitoringProgram.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.monitoringProgram.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.monitoringProgram.name",
            "path": "MedicationKnowledge.monitoringProgram.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.monitoringProgram.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines",
            "path": "MedicationKnowledge.administrationGuidelines",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.administrationGuidelines",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.id",
            "path": "MedicationKnowledge.administrationGuidelines.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.extension",
            "path": "MedicationKnowledge.administrationGuidelines.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.modifierExtension",
            "path": "MedicationKnowledge.administrationGuidelines.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.dosage",
            "path": "MedicationKnowledge.administrationGuidelines.dosage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.administrationGuidelines.dosage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.dosage.id",
            "path": "MedicationKnowledge.administrationGuidelines.dosage.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.dosage.extension",
            "path": "MedicationKnowledge.administrationGuidelines.dosage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.dosage.modifierExtension",
            "path": "MedicationKnowledge.administrationGuidelines.dosage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.dosage.type",
            "path": "MedicationKnowledge.administrationGuidelines.dosage.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.administrationGuidelines.dosage.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.dosage.dosage",
            "path": "MedicationKnowledge.administrationGuidelines.dosage.dosage",
            "min": 1,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.administrationGuidelines.dosage.dosage",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "Dosage"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.indication[x]",
            "path": "MedicationKnowledge.administrationGuidelines.indication[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.administrationGuidelines.indication[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ObservationDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics",
            "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.id",
            "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.extension",
            "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.modifierExtension",
            "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]",
            "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value",
            "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.medicineClassification",
            "path": "MedicationKnowledge.medicineClassification",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.medicineClassification",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.medicineClassification.id",
            "path": "MedicationKnowledge.medicineClassification.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.medicineClassification.extension",
            "path": "MedicationKnowledge.medicineClassification.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.medicineClassification.modifierExtension",
            "path": "MedicationKnowledge.medicineClassification.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.medicineClassification.type",
            "path": "MedicationKnowledge.medicineClassification.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.medicineClassification.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.medicineClassification.classification",
            "path": "MedicationKnowledge.medicineClassification.classification",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.medicineClassification.classification",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.packaging",
            "path": "MedicationKnowledge.packaging",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.packaging",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.packaging.id",
            "path": "MedicationKnowledge.packaging.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.packaging.extension",
            "path": "MedicationKnowledge.packaging.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.packaging.modifierExtension",
            "path": "MedicationKnowledge.packaging.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.packaging.type",
            "path": "MedicationKnowledge.packaging.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.packaging.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationPackageType"
                }
              ],
              "strength": "example",
              "description": "A coded concept defining the type of packaging of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-package-type"
            }
          },
          {
            "id": "MedicationKnowledge.packaging.quantity",
            "path": "MedicationKnowledge.packaging.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.packaging.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.drugCharacteristic",
            "path": "MedicationKnowledge.drugCharacteristic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.drugCharacteristic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.drugCharacteristic.id",
            "path": "MedicationKnowledge.drugCharacteristic.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.drugCharacteristic.extension",
            "path": "MedicationKnowledge.drugCharacteristic.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.drugCharacteristic.modifierExtension",
            "path": "MedicationKnowledge.drugCharacteristic.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.drugCharacteristic.type",
            "path": "MedicationKnowledge.drugCharacteristic.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.drugCharacteristic.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationCharacteristic"
                }
              ],
              "strength": "example",
              "description": "A coded concept defining the characteristic types of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-characteristic"
            }
          },
          {
            "id": "MedicationKnowledge.drugCharacteristic.value[x]",
            "path": "MedicationKnowledge.drugCharacteristic.value[x]",
            "comment": "The description should be provided as a CodeableConcept, SimpleQuantity or an image.  The description can be a string only when these others are not available.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.drugCharacteristic.value[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "string"
              },
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              },
              {
                "code": "base64Binary"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.contraindication",
            "path": "MedicationKnowledge.contraindication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.contraindication",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory",
            "path": "MedicationKnowledge.regulatory",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.regulatory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.id",
            "path": "MedicationKnowledge.regulatory.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.extension",
            "path": "MedicationKnowledge.regulatory.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.modifierExtension",
            "path": "MedicationKnowledge.regulatory.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.regulatory.regulatoryAuthority",
            "path": "MedicationKnowledge.regulatory.regulatoryAuthority",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.regulatory.regulatoryAuthority",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.substitution",
            "path": "MedicationKnowledge.regulatory.substitution",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.regulatory.substitution",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.substitution.id",
            "path": "MedicationKnowledge.regulatory.substitution.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.substitution.extension",
            "path": "MedicationKnowledge.regulatory.substitution.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.substitution.modifierExtension",
            "path": "MedicationKnowledge.regulatory.substitution.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.regulatory.substitution.type",
            "path": "MedicationKnowledge.regulatory.substitution.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.regulatory.substitution.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.substitution.allowed",
            "path": "MedicationKnowledge.regulatory.substitution.allowed",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.regulatory.substitution.allowed",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.schedule",
            "path": "MedicationKnowledge.regulatory.schedule",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.regulatory.schedule",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.schedule.id",
            "path": "MedicationKnowledge.regulatory.schedule.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.schedule.extension",
            "path": "MedicationKnowledge.regulatory.schedule.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.schedule.modifierExtension",
            "path": "MedicationKnowledge.regulatory.schedule.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.regulatory.schedule.schedule",
            "path": "MedicationKnowledge.regulatory.schedule.schedule",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.regulatory.schedule.schedule",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.maxDispense",
            "path": "MedicationKnowledge.regulatory.maxDispense",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.regulatory.maxDispense",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.maxDispense.id",
            "path": "MedicationKnowledge.regulatory.maxDispense.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.maxDispense.extension",
            "path": "MedicationKnowledge.regulatory.maxDispense.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.maxDispense.modifierExtension",
            "path": "MedicationKnowledge.regulatory.maxDispense.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.regulatory.maxDispense.quantity",
            "path": "MedicationKnowledge.regulatory.maxDispense.quantity",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.regulatory.maxDispense.quantity",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.regulatory.maxDispense.period",
            "path": "MedicationKnowledge.regulatory.maxDispense.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.regulatory.maxDispense.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.kinetics",
            "path": "MedicationKnowledge.kinetics",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.kinetics",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.kinetics.id",
            "path": "MedicationKnowledge.kinetics.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.kinetics.extension",
            "path": "MedicationKnowledge.kinetics.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.kinetics.modifierExtension",
            "path": "MedicationKnowledge.kinetics.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.kinetics.areaUnderCurve",
            "path": "MedicationKnowledge.kinetics.areaUnderCurve",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.kinetics.areaUnderCurve",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.kinetics.lethalDose50",
            "path": "MedicationKnowledge.kinetics.lethalDose50",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationKnowledge.kinetics.lethalDose50",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationKnowledge.kinetics.halfLifePeriod",
            "path": "MedicationKnowledge.kinetics.halfLifePeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationKnowledge.kinetics.halfLifePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicationKnowledge",
            "path": "MedicationKnowledge",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicationKnowledge.code",
            "path": "MedicationKnowledge.code",
            "comment": "Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true.  As described in the coding datatype: \"A coding may be marked as a \"userSelected\" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc. 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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationFormalRepresentation"
                }
              ],
              "strength": "example",
              "description": "A coded concept that defines the type of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "MedicationKnowledge.status",
            "path": "MedicationKnowledge.status",
            "comment": "This status is intended to identify if the medication in a local system is in active use within a drug database or inventory.  For example, a pharmacy system may create a new drug file record for a compounded product \"ABC Hospital Special Cream\" with an active status.  At some point in the future, it may be determined that the drug record was created with an error and the status is changed to \"entered in error\".   This status is not intended to specify if a medication is part of a particular formulary.  It is possible that the drug record may be referenced by multiple formularies or catalogues and each of those entries would have a separate status.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes.",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationKnowledgeStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept defining if the medication is in active use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-status|4.0.1"
            }
          },
          {
            "id": "MedicationKnowledge.manufacturer",
            "path": "MedicationKnowledge.manufacturer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.doseForm",
            "path": "MedicationKnowledge.doseForm",
            "comment": "When Medication is referenced from MedicationRequest, this is the ordered form.  When Medication is referenced within MedicationDispense, this is the dispensed form.  When Medication is referenced within MedicationAdministration, this is administered form.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationForm"
                }
              ],
              "strength": "example",
              "description": "A coded concept defining the form of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-form-codes"
            }
          },
          {
            "id": "MedicationKnowledge.amount",
            "path": "MedicationKnowledge.amount",
            "comment": "This is the quantity of medication in a package.  To specify the strength of the medication, the Ingredient.strength attribute is used.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.synonym",
            "path": "MedicationKnowledge.synonym",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationKnowledge.relatedMedicationKnowledge",
            "path": "MedicationKnowledge.relatedMedicationKnowledge",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.relatedMedicationKnowledge.type",
            "path": "MedicationKnowledge.relatedMedicationKnowledge.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.relatedMedicationKnowledge.reference",
            "path": "MedicationKnowledge.relatedMedicationKnowledge.reference",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationKnowledge"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.associatedMedication",
            "path": "MedicationKnowledge.associatedMedication",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.productType",
            "path": "MedicationKnowledge.productType",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.monograph",
            "path": "MedicationKnowledge.monograph",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.monograph.type",
            "path": "MedicationKnowledge.monograph.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.monograph.source",
            "path": "MedicationKnowledge.monograph.source",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/Media"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.ingredient",
            "path": "MedicationKnowledge.ingredient",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.ingredient.item[x]",
            "path": "MedicationKnowledge.ingredient.item[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.ingredient.isActive",
            "path": "MedicationKnowledge.ingredient.isActive",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.ingredient.strength",
            "path": "MedicationKnowledge.ingredient.strength",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.preparationInstruction",
            "path": "MedicationKnowledge.preparationInstruction",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.intendedRoute",
            "path": "MedicationKnowledge.intendedRoute",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRoute"
                }
              ],
              "strength": "example",
              "description": "A coded concept defining the intended route of administration.",
              "valueSet": "http://hl7.org/fhir/ValueSet/route-codes"
            }
          },
          {
            "id": "MedicationKnowledge.cost",
            "path": "MedicationKnowledge.cost",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.cost.type",
            "path": "MedicationKnowledge.cost.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.cost.source",
            "path": "MedicationKnowledge.cost.source",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.cost.cost",
            "path": "MedicationKnowledge.cost.cost",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.monitoringProgram",
            "path": "MedicationKnowledge.monitoringProgram",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.monitoringProgram.type",
            "path": "MedicationKnowledge.monitoringProgram.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.monitoringProgram.name",
            "path": "MedicationKnowledge.monitoringProgram.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines",
            "path": "MedicationKnowledge.administrationGuidelines",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.dosage",
            "path": "MedicationKnowledge.administrationGuidelines.dosage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.dosage.type",
            "path": "MedicationKnowledge.administrationGuidelines.dosage.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.dosage.dosage",
            "path": "MedicationKnowledge.administrationGuidelines.dosage.dosage",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "Dosage"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.indication[x]",
            "path": "MedicationKnowledge.administrationGuidelines.indication[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ObservationDefinition"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics",
            "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]",
            "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value",
            "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.medicineClassification",
            "path": "MedicationKnowledge.medicineClassification",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.medicineClassification.type",
            "path": "MedicationKnowledge.medicineClassification.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.medicineClassification.classification",
            "path": "MedicationKnowledge.medicineClassification.classification",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.packaging",
            "path": "MedicationKnowledge.packaging",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.packaging.type",
            "path": "MedicationKnowledge.packaging.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationPackageType"
                }
              ],
              "strength": "example",
              "description": "A coded concept defining the type of packaging of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-package-type"
            }
          },
          {
            "id": "MedicationKnowledge.packaging.quantity",
            "path": "MedicationKnowledge.packaging.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.drugCharacteristic",
            "path": "MedicationKnowledge.drugCharacteristic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.drugCharacteristic.type",
            "path": "MedicationKnowledge.drugCharacteristic.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationCharacteristic"
                }
              ],
              "strength": "example",
              "description": "A coded concept defining the characteristic types of a medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-characteristic"
            }
          },
          {
            "id": "MedicationKnowledge.drugCharacteristic.value[x]",
            "path": "MedicationKnowledge.drugCharacteristic.value[x]",
            "comment": "The description should be provided as a CodeableConcept, SimpleQuantity or an image.  The description can be a string only when these others are not available.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "string"
              },
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              },
              {
                "code": "base64Binary"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.contraindication",
            "path": "MedicationKnowledge.contraindication",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.regulatory",
            "path": "MedicationKnowledge.regulatory",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.regulatory.regulatoryAuthority",
            "path": "MedicationKnowledge.regulatory.regulatoryAuthority",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.regulatory.substitution",
            "path": "MedicationKnowledge.regulatory.substitution",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.regulatory.substitution.type",
            "path": "MedicationKnowledge.regulatory.substitution.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.regulatory.substitution.allowed",
            "path": "MedicationKnowledge.regulatory.substitution.allowed",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.regulatory.schedule",
            "path": "MedicationKnowledge.regulatory.schedule",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.regulatory.schedule.schedule",
            "path": "MedicationKnowledge.regulatory.schedule.schedule",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.regulatory.maxDispense",
            "path": "MedicationKnowledge.regulatory.maxDispense",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.regulatory.maxDispense.quantity",
            "path": "MedicationKnowledge.regulatory.maxDispense.quantity",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.regulatory.maxDispense.period",
            "path": "MedicationKnowledge.regulatory.maxDispense.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.kinetics",
            "path": "MedicationKnowledge.kinetics",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationKnowledge.kinetics.areaUnderCurve",
            "path": "MedicationKnowledge.kinetics.areaUnderCurve",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.kinetics.lethalDose50",
            "path": "MedicationKnowledge.kinetics.lethalDose50",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationKnowledge.kinetics.halfLifePeriod",
            "path": "MedicationKnowledge.kinetics.halfLifePeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicationRequest",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Medications"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "phx"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
      "version": "4.0.1",
      "name": "MedicationRequest",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicationRequest",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicationRequest",
            "path": "MedicationRequest",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.id",
            "path": "MedicationRequest.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationRequest.meta",
            "path": "MedicationRequest.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationRequest.implicitRules",
            "path": "MedicationRequest.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicationRequest.language",
            "path": "MedicationRequest.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicationRequest.text",
            "path": "MedicationRequest.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.contained",
            "path": "MedicationRequest.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.extension",
            "path": "MedicationRequest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.modifierExtension",
            "path": "MedicationRequest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicationRequest.identifier",
            "path": "MedicationRequest.identifier",
            "comment": "This is a business identifier, not a resource identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.status",
            "path": "MedicationRequest.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationRequest.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1"
            }
          },
          {
            "id": "MedicationRequest.statusReason",
            "path": "MedicationRequest.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"suspended\" or \"cancelled\". The reason why the MedicationRequest was created at all is captured in reasonCode, not here.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.statusReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestStatusReason"
                }
              ],
              "strength": "example",
              "description": "Identifies the reasons for a given status.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-status-reason"
            }
          },
          {
            "id": "MedicationRequest.intent",
            "path": "MedicationRequest.intent",
            "comment": "It is expected that the type of requester will be restricted for different stages of a MedicationRequest.  For example, Proposals can be created by a patient, relatedPerson, Practitioner or Device.  Plans can be created by Practitioners, Patients, RelatedPersons and Devices.  Original orders can be created by a Practitioner only.\r\rAn instance-order is an instantiation of a request or order and may be used to populate Medication Administration Record.\r\rThis element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationRequest.intent",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestIntent"
                }
              ],
              "strength": "required",
              "description": "The kind of medication order.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1"
            }
          },
          {
            "id": "MedicationRequest.category",
            "path": "MedicationRequest.category",
            "comment": "The category can be used to include where the medication is expected to be consumed or other types of requests.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestCategory"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying the category of medication request.  For example, where the medication is to be consumed or administered, or the type of medication treatment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-category"
            }
          },
          {
            "id": "MedicationRequest.priority",
            "path": "MedicationRequest.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "MedicationRequest.doNotPerform",
            "path": "MedicationRequest.doNotPerform",
            "comment": "If do not perform is not specified, the request is a positive request e.g. \"do perform\".",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.doNotPerform",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because this element negates the request to occur (ie, this is a request for the medication not to be ordered or prescribed, etc)",
            "isSummary": true
          },
          {
            "id": "MedicationRequest.reported[x]",
            "path": "MedicationRequest.reported[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.reported[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationRequest.medication[x]",
            "path": "MedicationRequest.medication[x]",
            "comment": "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.  For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationRequest.medication[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationCode"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying substance or product that can be ordered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "MedicationRequest.subject",
            "path": "MedicationRequest.subject",
            "comment": "The subject on a medication request is mandatory.  For the secondary use case where the actual subject is not provided, there still must be an anonymized subject specified.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationRequest.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationRequest.encounter",
            "path": "MedicationRequest.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.\"    If there is a need to link to episodes of care they will be handled with an extension.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.supportingInformation",
            "path": "MedicationRequest.supportingInformation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.supportingInformation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.authoredOn",
            "path": "MedicationRequest.authoredOn",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.authoredOn",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationRequest.requester",
            "path": "MedicationRequest.requester",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.requester",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationRequest.performer",
            "path": "MedicationRequest.performer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.performer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.performerType",
            "path": "MedicationRequest.performerType",
            "comment": "If specified without indicating a performer, this indicates that the performer must be of the specified type. If specified with a performer then it indicates the requirements of the performer if the designated performer is not available.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.performerType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestPerformerType"
                }
              ],
              "strength": "example",
              "description": "Identifies the type of individual that is desired to administer the medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/performer-role"
            }
          },
          {
            "id": "MedicationRequest.recorder",
            "path": "MedicationRequest.recorder",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.recorder",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.reasonCode",
            "path": "MedicationRequest.reasonCode",
            "comment": "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonReference.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept indicating why the medication was ordered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "MedicationRequest.reasonReference",
            "path": "MedicationRequest.reasonReference",
            "comment": "This is a reference to a condition or observation that is the reason for the medication order.  If only a code exists, use reasonCode.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.instantiatesCanonical",
            "path": "MedicationRequest.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.instantiatesCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationRequest.instantiatesUri",
            "path": "MedicationRequest.instantiatesUri",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.instantiatesUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationRequest.basedOn",
            "path": "MedicationRequest.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationRequest.groupIdentifier",
            "path": "MedicationRequest.groupIdentifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.groupIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationRequest.courseOfTherapyType",
            "path": "MedicationRequest.courseOfTherapyType",
            "comment": "This attribute should not be confused with the protocol of the medication.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.courseOfTherapyType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestCourseOfTherapy"
                }
              ],
              "strength": "example",
              "description": "Identifies the overall pattern of medication administratio.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy"
            }
          },
          {
            "id": "MedicationRequest.insurance",
            "path": "MedicationRequest.insurance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.insurance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage",
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.note",
            "path": "MedicationRequest.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dosageInstruction",
            "path": "MedicationRequest.dosageInstruction",
            "comment": "There are examples where a medication request may include the option of an oral dose or an Intravenous or Intramuscular dose.  For example, \"Ondansetron 8mg orally or IV twice a day as needed for nausea\" or \"Compazine® (prochlorperazine) 5-10mg PO or 25mg PR bid prn nausea or vomiting\".  In these cases, two medication requests would be created that could be grouped together.  The decision on which dose and route of administration to use is based on the patient's condition at the time the dose is needed.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.dosageInstruction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Dosage"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest",
            "path": "MedicationRequest.dispenseRequest",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.dispenseRequest",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.id",
            "path": "MedicationRequest.dispenseRequest.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.extension",
            "path": "MedicationRequest.dispenseRequest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.modifierExtension",
            "path": "MedicationRequest.dispenseRequest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationRequest.dispenseRequest.initialFill",
            "path": "MedicationRequest.dispenseRequest.initialFill",
            "comment": "If populating this element, either the quantity or the duration must be included.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.dispenseRequest.initialFill",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.initialFill.id",
            "path": "MedicationRequest.dispenseRequest.initialFill.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.initialFill.extension",
            "path": "MedicationRequest.dispenseRequest.initialFill.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.initialFill.modifierExtension",
            "path": "MedicationRequest.dispenseRequest.initialFill.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationRequest.dispenseRequest.initialFill.quantity",
            "path": "MedicationRequest.dispenseRequest.initialFill.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.dispenseRequest.initialFill.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.initialFill.duration",
            "path": "MedicationRequest.dispenseRequest.initialFill.duration",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.dispenseRequest.initialFill.duration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.dispenseInterval",
            "path": "MedicationRequest.dispenseRequest.dispenseInterval",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.dispenseRequest.dispenseInterval",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.validityPeriod",
            "path": "MedicationRequest.dispenseRequest.validityPeriod",
            "comment": "It reflects the prescribers' 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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.dispenseRequest.validityPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
            "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
            "comment": "If displaying \"number of authorized fills\", add 1 to this number.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.quantity",
            "path": "MedicationRequest.dispenseRequest.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.dispenseRequest.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
            "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
            "comment": "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",
            "base": {
              "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.dispenseRequest.performer",
            "path": "MedicationRequest.dispenseRequest.performer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.dispenseRequest.performer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.substitution",
            "path": "MedicationRequest.substitution",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.substitution",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.substitution.id",
            "path": "MedicationRequest.substitution.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.substitution.extension",
            "path": "MedicationRequest.substitution.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.substitution.modifierExtension",
            "path": "MedicationRequest.substitution.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicationRequest.substitution.allowed[x]",
            "path": "MedicationRequest.substitution.allowed[x]",
            "comment": "This element is labeled as a modifier because whether substitution is allow or not, it cannot be ignored.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationRequest.substitution.allowed[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestSubstitution"
                }
              ],
              "strength": "example",
              "description": "Identifies the type of substitution allowed.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
            }
          },
          {
            "id": "MedicationRequest.substitution.reason",
            "path": "MedicationRequest.substitution.reason",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.substitution.reason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationIntendedSubstitutionReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason"
            }
          },
          {
            "id": "MedicationRequest.priorPrescription",
            "path": "MedicationRequest.priorPrescription",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationRequest.priorPrescription",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.detectedIssue",
            "path": "MedicationRequest.detectedIssue",
            "comment": "This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.detectedIssue",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationRequest.eventHistory",
            "path": "MedicationRequest.eventHistory",
            "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationRequest.eventHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicationRequest",
            "path": "MedicationRequest",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicationRequest.identifier",
            "path": "MedicationRequest.identifier",
            "comment": "This is a business identifier, not a resource identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "MedicationRequest.status",
            "path": "MedicationRequest.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1"
            }
          },
          {
            "id": "MedicationRequest.statusReason",
            "path": "MedicationRequest.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"suspended\" or \"cancelled\". The reason why the MedicationRequest was created at all is captured in reasonCode, not here.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestStatusReason"
                }
              ],
              "strength": "example",
              "description": "Identifies the reasons for a given status.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-status-reason"
            }
          },
          {
            "id": "MedicationRequest.intent",
            "path": "MedicationRequest.intent",
            "comment": "It is expected that the type of requester will be restricted for different stages of a MedicationRequest.  For example, Proposals can be created by a patient, relatedPerson, Practitioner or Device.  Plans can be created by Practitioners, Patients, RelatedPersons and Devices.  Original orders can be created by a Practitioner only.\r\rAn instance-order is an instantiation of a request or order and may be used to populate Medication Administration Record.\r\rThis element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestIntent"
                }
              ],
              "strength": "required",
              "description": "The kind of medication order.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1"
            }
          },
          {
            "id": "MedicationRequest.category",
            "path": "MedicationRequest.category",
            "comment": "The category can be used to include where the medication is expected to be consumed or other types of requests.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestCategory"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying the category of medication request.  For example, where the medication is to be consumed or administered, or the type of medication treatment.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-category"
            }
          },
          {
            "id": "MedicationRequest.priority",
            "path": "MedicationRequest.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "MedicationRequest.doNotPerform",
            "path": "MedicationRequest.doNotPerform",
            "comment": "If do not perform is not specified, the request is a positive request e.g. \"do perform\".",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because this element negates the request to occur (ie, this is a request for the medication not to be ordered or prescribed, etc)",
            "isSummary": true
          },
          {
            "id": "MedicationRequest.reported[x]",
            "path": "MedicationRequest.reported[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationRequest.medication[x]",
            "path": "MedicationRequest.medication[x]",
            "comment": "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.  For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationCode"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying substance or product that can be ordered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "MedicationRequest.subject",
            "path": "MedicationRequest.subject",
            "comment": "The subject on a medication request is mandatory.  For the secondary use case where the actual subject is not provided, there still must be an anonymized subject specified.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationRequest.encounter",
            "path": "MedicationRequest.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.\"    If there is a need to link to episodes of care they will be handled with an extension.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.supportingInformation",
            "path": "MedicationRequest.supportingInformation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.authoredOn",
            "path": "MedicationRequest.authoredOn",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationRequest.requester",
            "path": "MedicationRequest.requester",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationRequest.performer",
            "path": "MedicationRequest.performer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.performerType",
            "path": "MedicationRequest.performerType",
            "comment": "If specified without indicating a performer, this indicates that the performer must be of the specified type. If specified with a performer then it indicates the requirements of the performer if the designated performer is not available.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestPerformerType"
                }
              ],
              "strength": "example",
              "description": "Identifies the type of individual that is desired to administer the medication.",
              "valueSet": "http://hl7.org/fhir/ValueSet/performer-role"
            }
          },
          {
            "id": "MedicationRequest.recorder",
            "path": "MedicationRequest.recorder",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.reasonCode",
            "path": "MedicationRequest.reasonCode",
            "comment": "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonReference.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept indicating why the medication was ordered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "MedicationRequest.reasonReference",
            "path": "MedicationRequest.reasonReference",
            "comment": "This is a reference to a condition or observation that is the reason for the medication order.  If only a code exists, use reasonCode.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.instantiatesCanonical",
            "path": "MedicationRequest.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationRequest.instantiatesUri",
            "path": "MedicationRequest.instantiatesUri",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationRequest.basedOn",
            "path": "MedicationRequest.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationRequest.groupIdentifier",
            "path": "MedicationRequest.groupIdentifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationRequest.courseOfTherapyType",
            "path": "MedicationRequest.courseOfTherapyType",
            "comment": "This attribute should not be confused with the protocol of the medication.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestCourseOfTherapy"
                }
              ],
              "strength": "example",
              "description": "Identifies the overall pattern of medication administratio.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy"
            }
          },
          {
            "id": "MedicationRequest.insurance",
            "path": "MedicationRequest.insurance",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage",
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.note",
            "path": "MedicationRequest.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "MedicationRequest.dosageInstruction",
            "path": "MedicationRequest.dosageInstruction",
            "comment": "There are examples where a medication request may include the option of an oral dose or an Intravenous or Intramuscular dose.  For example, \"Ondansetron 8mg orally or IV twice a day as needed for nausea\" or \"Compazine® (prochlorperazine) 5-10mg PO or 25mg PR bid prn nausea or vomiting\".  In these cases, two medication requests would be created that could be grouped together.  The decision on which dose and route of administration to use is based on the patient's condition at the time the dose is needed.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Dosage"
              }
            ]
          },
          {
            "id": "MedicationRequest.dispenseRequest",
            "path": "MedicationRequest.dispenseRequest",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationRequest.dispenseRequest.initialFill",
            "path": "MedicationRequest.dispenseRequest.initialFill",
            "comment": "If populating this element, either the quantity or the duration must be included.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationRequest.dispenseRequest.initialFill.quantity",
            "path": "MedicationRequest.dispenseRequest.initialFill.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.dispenseRequest.initialFill.duration",
            "path": "MedicationRequest.dispenseRequest.initialFill.duration",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "MedicationRequest.dispenseRequest.dispenseInterval",
            "path": "MedicationRequest.dispenseRequest.dispenseInterval",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "MedicationRequest.dispenseRequest.validityPeriod",
            "path": "MedicationRequest.dispenseRequest.validityPeriod",
            "comment": "It reflects the prescribers' 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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
            "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
            "comment": "If displaying \"number of authorized fills\", add 1 to this number.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ]
          },
          {
            "id": "MedicationRequest.dispenseRequest.quantity",
            "path": "MedicationRequest.dispenseRequest.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
            "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
            "comment": "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": "Duration"
              }
            ]
          },
          {
            "id": "MedicationRequest.dispenseRequest.performer",
            "path": "MedicationRequest.dispenseRequest.performer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.substitution",
            "path": "MedicationRequest.substitution",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MedicationRequest.substitution.allowed[x]",
            "path": "MedicationRequest.substitution.allowed[x]",
            "comment": "This element is labeled as a modifier because whether substitution is allow or not, it cannot be ignored.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationRequestSubstitution"
                }
              ],
              "strength": "example",
              "description": "Identifies the type of substitution allowed.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
            }
          },
          {
            "id": "MedicationRequest.substitution.reason",
            "path": "MedicationRequest.substitution.reason",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationIntendedSubstitutionReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason"
            }
          },
          {
            "id": "MedicationRequest.priorPrescription",
            "path": "MedicationRequest.priorPrescription",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.detectedIssue",
            "path": "MedicationRequest.detectedIssue",
            "comment": "This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
                ]
              }
            ]
          },
          {
            "id": "MedicationRequest.eventHistory",
            "path": "MedicationRequest.eventHistory",
            "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicationStatement",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Medications"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "phx"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
      "version": "4.0.1",
      "name": "MedicationStatement",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicationStatement",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicationStatement",
            "path": "MedicationStatement",
            "comment": "When interpreting a medicationStatement, the value of the status and NotTaken needed to be considered:\rMedicationStatement.status + MedicationStatement.wasNotTaken\rStatus=Active + NotTaken=T = Not currently taking\rStatus=Completed + NotTaken=T = Not taken in the past\rStatus=Intended + NotTaken=T = No intention of taking\rStatus=Active + NotTaken=F = Taking, but not as prescribed\rStatus=Active + NotTaken=F = Taking\rStatus=Intended +NotTaken= F = Will be taking (not started)\rStatus=Completed + NotTaken=F = Taken in past\rStatus=In Error + NotTaken=N/A = In Error.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationStatement",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationStatement.id",
            "path": "MedicationStatement.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationStatement.meta",
            "path": "MedicationStatement.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationStatement.implicitRules",
            "path": "MedicationStatement.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicationStatement.language",
            "path": "MedicationStatement.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicationStatement.text",
            "path": "MedicationStatement.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationStatement.contained",
            "path": "MedicationStatement.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationStatement.extension",
            "path": "MedicationStatement.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationStatement.modifierExtension",
            "path": "MedicationStatement.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicationStatement.identifier",
            "path": "MedicationStatement.identifier",
            "comment": "This is a business identifier, not a resource identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationStatement.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationStatement.basedOn",
            "path": "MedicationStatement.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationStatement.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationStatement.partOf",
            "path": "MedicationStatement.partOf",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationStatement.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
                  "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
                  "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationStatement.status",
            "path": "MedicationStatement.status",
            "comment": "MedicationStatement is a statement at a point in time.  The status is only representative at the point when it was asserted.  The value set for MedicationStatement.status contains codes that assert the status of the use of the medication by the patient (for example, stopped or on hold) as well as codes that assert the status of the medication statement itself (for example, entered in error).\r\rThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationStatement.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationStatementStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept indicating the current status of a MedicationStatement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-statement-status|4.0.1"
            }
          },
          {
            "id": "MedicationStatement.statusReason",
            "path": "MedicationStatement.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"not-taken\", \"on-hold\", \"cancelled\" or \"entered-in-error\". The reason for performing the event at all is captured in reasonCode, not here.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationStatement.statusReason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationStatementStatusReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept indicating the reason for the status of the statement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/reason-medication-status-codes"
            }
          },
          {
            "id": "MedicationStatement.category",
            "path": "MedicationStatement.category",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationStatement.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationStatementCategory"
                }
              ],
              "strength": "preferred",
              "description": "A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-statement-category"
            }
          },
          {
            "id": "MedicationStatement.medication[x]",
            "path": "MedicationStatement.medication[x]",
            "comment": "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.  For example, if you require form or lot number, then you must reference the Medication resource.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationStatement.medication[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationCode"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying the substance or product being taken.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "MedicationStatement.subject",
            "path": "MedicationStatement.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicationStatement.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationStatement.context",
            "path": "MedicationStatement.context",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationStatement.context",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationStatement.effective[x]",
            "path": "MedicationStatement.effective[x]",
            "comment": "This attribute reflects the period over which the patient consumed the medication and is expected to be populated on the majority of Medication Statements. If the medication is still being taken at the time the statement is recorded, the \"end\" date will be omitted.  The date/time attribute supports a variety of dates - year, year/month and exact date.  If something more than this is required, this should be conveyed as text.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationStatement.effective[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationStatement.dateAsserted",
            "path": "MedicationStatement.dateAsserted",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationStatement.dateAsserted",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicationStatement.informationSource",
            "path": "MedicationStatement.informationSource",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicationStatement.informationSource",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationStatement.derivedFrom",
            "path": "MedicationStatement.derivedFrom",
            "comment": "Likely references would be to MedicationRequest, MedicationDispense, Claim, Observation or QuestionnaireAnswers.  The most common use cases for deriving a MedicationStatement comes from creating a MedicationStatement from a MedicationRequest or from a lab observation or a claim.  it should be noted that the amount of information that is available varies from the type resource that you derive the MedicationStatement from.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationStatement.derivedFrom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationStatement.reasonCode",
            "path": "MedicationStatement.reasonCode",
            "comment": "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonForUseReference.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationStatement.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying why the medication is being taken.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "MedicationStatement.reasonReference",
            "path": "MedicationStatement.reasonReference",
            "comment": "This is a reference to a condition that is the reason why the medication is being/was taken.  If only a code exists, use reasonForUseCode.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationStatement.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationStatement.note",
            "path": "MedicationStatement.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationStatement.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicationStatement.dosage",
            "path": "MedicationStatement.dosage",
            "comment": "The dates included in the dosage on a Medication Statement reflect the dates for a given dose.  For example, \"from November 1, 2016 to November 3, 2016, take one tablet daily and from November 4, 2016 to November 7, 2016, take two tablets daily.\"  It is expected that this specificity may only be populated where the patient brings in their labeled container or where the Medication Statement is derived from a MedicationRequest.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicationStatement.dosage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Dosage"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicationStatement",
            "path": "MedicationStatement",
            "comment": "When interpreting a medicationStatement, the value of the status and NotTaken needed to be considered:\rMedicationStatement.status + MedicationStatement.wasNotTaken\rStatus=Active + NotTaken=T = Not currently taking\rStatus=Completed + NotTaken=T = Not taken in the past\rStatus=Intended + NotTaken=T = No intention of taking\rStatus=Active + NotTaken=F = Taking, but not as prescribed\rStatus=Active + NotTaken=F = Taking\rStatus=Intended +NotTaken= F = Will be taking (not started)\rStatus=Completed + NotTaken=F = Taken in past\rStatus=In Error + NotTaken=N/A = In Error.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicationStatement.identifier",
            "path": "MedicationStatement.identifier",
            "comment": "This is a business identifier, not a resource identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationStatement.basedOn",
            "path": "MedicationStatement.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationStatement.partOf",
            "path": "MedicationStatement.partOf",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
                  "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
                  "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationStatement.status",
            "path": "MedicationStatement.status",
            "comment": "MedicationStatement is a statement at a point in time.  The status is only representative at the point when it was asserted.  The value set for MedicationStatement.status contains codes that assert the status of the use of the medication by the patient (for example, stopped or on hold) as well as codes that assert the status of the medication statement itself (for example, entered in error).\r\rThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationStatementStatus"
                }
              ],
              "strength": "required",
              "description": "A coded concept indicating the current status of a MedicationStatement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-statement-status|4.0.1"
            }
          },
          {
            "id": "MedicationStatement.statusReason",
            "path": "MedicationStatement.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"not-taken\", \"on-hold\", \"cancelled\" or \"entered-in-error\". The reason for performing the event at all is captured in reasonCode, not here.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationStatementStatusReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept indicating the reason for the status of the statement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/reason-medication-status-codes"
            }
          },
          {
            "id": "MedicationStatement.category",
            "path": "MedicationStatement.category",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationStatementCategory"
                }
              ],
              "strength": "preferred",
              "description": "A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-statement-category"
            }
          },
          {
            "id": "MedicationStatement.medication[x]",
            "path": "MedicationStatement.medication[x]",
            "comment": "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.  For example, if you require form or lot number, then you must reference the Medication resource.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationCode"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying the substance or product being taken.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
            }
          },
          {
            "id": "MedicationStatement.subject",
            "path": "MedicationStatement.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationStatement.context",
            "path": "MedicationStatement.context",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter",
                  "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationStatement.effective[x]",
            "path": "MedicationStatement.effective[x]",
            "comment": "This attribute reflects the period over which the patient consumed the medication and is expected to be populated on the majority of Medication Statements. If the medication is still being taken at the time the statement is recorded, the \"end\" date will be omitted.  The date/time attribute supports a variety of dates - year, year/month and exact date.  If something more than this is required, this should be conveyed as text.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationStatement.dateAsserted",
            "path": "MedicationStatement.dateAsserted",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicationStatement.informationSource",
            "path": "MedicationStatement.informationSource",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "MedicationStatement.derivedFrom",
            "path": "MedicationStatement.derivedFrom",
            "comment": "Likely references would be to MedicationRequest, MedicationDispense, Claim, Observation or QuestionnaireAnswers.  The most common use cases for deriving a MedicationStatement comes from creating a MedicationStatement from a MedicationRequest or from a lab observation or a claim.  it should be noted that the amount of information that is available varies from the type resource that you derive the MedicationStatement from.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "MedicationStatement.reasonCode",
            "path": "MedicationStatement.reasonCode",
            "comment": "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonForUseReference.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MedicationReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying why the medication is being taken.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "MedicationStatement.reasonReference",
            "path": "MedicationStatement.reasonReference",
            "comment": "This is a reference to a condition that is the reason why the medication is being/was taken.  If only a code exists, use reasonForUseCode.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
                ]
              }
            ]
          },
          {
            "id": "MedicationStatement.note",
            "path": "MedicationStatement.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "MedicationStatement.dosage",
            "path": "MedicationStatement.dosage",
            "comment": "The dates included in the dosage on a Medication Statement reflect the dates for a given dose.  For example, \"from November 1, 2016 to November 3, 2016, take one tablet daily and from November 4, 2016 to November 7, 2016, take two tablets daily.\"  It is expected that this specificity may only be populated where the patient brings in their labeled container or where the Medication Statement is derived from a MedicationRequest.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Dosage"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicinalProduct",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
      "version": "4.0.1",
      "name": "MedicinalProduct",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicinalProduct",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicinalProduct",
            "path": "MedicinalProduct",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.id",
            "path": "MedicinalProduct.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.meta",
            "path": "MedicinalProduct.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.implicitRules",
            "path": "MedicinalProduct.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.language",
            "path": "MedicinalProduct.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicinalProduct.text",
            "path": "MedicinalProduct.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.contained",
            "path": "MedicinalProduct.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.extension",
            "path": "MedicinalProduct.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.modifierExtension",
            "path": "MedicinalProduct.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.identifier",
            "path": "MedicinalProduct.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.type",
            "path": "MedicinalProduct.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.domain",
            "path": "MedicinalProduct.domain",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.domain",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.combinedPharmaceuticalDoseForm",
            "path": "MedicinalProduct.combinedPharmaceuticalDoseForm",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.combinedPharmaceuticalDoseForm",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.legalStatusOfSupply",
            "path": "MedicinalProduct.legalStatusOfSupply",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.legalStatusOfSupply",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.additionalMonitoringIndicator",
            "path": "MedicinalProduct.additionalMonitoringIndicator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.additionalMonitoringIndicator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialMeasures",
            "path": "MedicinalProduct.specialMeasures",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.specialMeasures",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.paediatricUseIndicator",
            "path": "MedicinalProduct.paediatricUseIndicator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.paediatricUseIndicator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.productClassification",
            "path": "MedicinalProduct.productClassification",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.productClassification",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.marketingStatus",
            "path": "MedicinalProduct.marketingStatus",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.marketingStatus",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "MarketingStatus"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.pharmaceuticalProduct",
            "path": "MedicinalProduct.pharmaceuticalProduct",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.pharmaceuticalProduct",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductPharmaceutical"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.packagedMedicinalProduct",
            "path": "MedicinalProduct.packagedMedicinalProduct",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.packagedMedicinalProduct",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductPackaged"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.attachedDocument",
            "path": "MedicinalProduct.attachedDocument",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.attachedDocument",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.masterFile",
            "path": "MedicinalProduct.masterFile",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.masterFile",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.contact",
            "path": "MedicinalProduct.contact",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.clinicalTrial",
            "path": "MedicinalProduct.clinicalTrial",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.clinicalTrial",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchStudy"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name",
            "path": "MedicinalProduct.name",
            "min": 1,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.name",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.id",
            "path": "MedicinalProduct.name.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.name.extension",
            "path": "MedicinalProduct.name.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.name.modifierExtension",
            "path": "MedicinalProduct.name.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.productName",
            "path": "MedicinalProduct.name.productName",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.name.productName",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.namePart",
            "path": "MedicinalProduct.name.namePart",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.name.namePart",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.namePart.id",
            "path": "MedicinalProduct.name.namePart.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.name.namePart.extension",
            "path": "MedicinalProduct.name.namePart.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.name.namePart.modifierExtension",
            "path": "MedicinalProduct.name.namePart.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.namePart.part",
            "path": "MedicinalProduct.name.namePart.part",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.name.namePart.part",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.namePart.type",
            "path": "MedicinalProduct.name.namePart.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.name.namePart.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.countryLanguage",
            "path": "MedicinalProduct.name.countryLanguage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.name.countryLanguage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.countryLanguage.id",
            "path": "MedicinalProduct.name.countryLanguage.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.name.countryLanguage.extension",
            "path": "MedicinalProduct.name.countryLanguage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.name.countryLanguage.modifierExtension",
            "path": "MedicinalProduct.name.countryLanguage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.countryLanguage.country",
            "path": "MedicinalProduct.name.countryLanguage.country",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.name.countryLanguage.country",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.countryLanguage.jurisdiction",
            "path": "MedicinalProduct.name.countryLanguage.jurisdiction",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.name.countryLanguage.jurisdiction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.countryLanguage.language",
            "path": "MedicinalProduct.name.countryLanguage.language",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.name.countryLanguage.language",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.crossReference",
            "path": "MedicinalProduct.crossReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.crossReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation",
            "path": "MedicinalProduct.manufacturingBusinessOperation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.manufacturingBusinessOperation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.id",
            "path": "MedicinalProduct.manufacturingBusinessOperation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.extension",
            "path": "MedicinalProduct.manufacturingBusinessOperation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.modifierExtension",
            "path": "MedicinalProduct.manufacturingBusinessOperation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.operationType",
            "path": "MedicinalProduct.manufacturingBusinessOperation.operationType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.manufacturingBusinessOperation.operationType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.authorisationReferenceNumber",
            "path": "MedicinalProduct.manufacturingBusinessOperation.authorisationReferenceNumber",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.manufacturingBusinessOperation.authorisationReferenceNumber",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.effectiveDate",
            "path": "MedicinalProduct.manufacturingBusinessOperation.effectiveDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.manufacturingBusinessOperation.effectiveDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.confidentialityIndicator",
            "path": "MedicinalProduct.manufacturingBusinessOperation.confidentialityIndicator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.manufacturingBusinessOperation.confidentialityIndicator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.manufacturer",
            "path": "MedicinalProduct.manufacturingBusinessOperation.manufacturer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.manufacturingBusinessOperation.manufacturer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.regulator",
            "path": "MedicinalProduct.manufacturingBusinessOperation.regulator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.manufacturingBusinessOperation.regulator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation",
            "path": "MedicinalProduct.specialDesignation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.specialDesignation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.id",
            "path": "MedicinalProduct.specialDesignation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.specialDesignation.extension",
            "path": "MedicinalProduct.specialDesignation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProduct.specialDesignation.modifierExtension",
            "path": "MedicinalProduct.specialDesignation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.identifier",
            "path": "MedicinalProduct.specialDesignation.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProduct.specialDesignation.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.type",
            "path": "MedicinalProduct.specialDesignation.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.specialDesignation.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.intendedUse",
            "path": "MedicinalProduct.specialDesignation.intendedUse",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.specialDesignation.intendedUse",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.indication[x]",
            "path": "MedicinalProduct.specialDesignation.indication[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.specialDesignation.indication[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductIndication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.status",
            "path": "MedicinalProduct.specialDesignation.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.specialDesignation.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.date",
            "path": "MedicinalProduct.specialDesignation.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.specialDesignation.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.species",
            "path": "MedicinalProduct.specialDesignation.species",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProduct.specialDesignation.species",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicinalProduct",
            "path": "MedicinalProduct",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicinalProduct.identifier",
            "path": "MedicinalProduct.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.type",
            "path": "MedicinalProduct.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.domain",
            "path": "MedicinalProduct.domain",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.combinedPharmaceuticalDoseForm",
            "path": "MedicinalProduct.combinedPharmaceuticalDoseForm",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.legalStatusOfSupply",
            "path": "MedicinalProduct.legalStatusOfSupply",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.additionalMonitoringIndicator",
            "path": "MedicinalProduct.additionalMonitoringIndicator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialMeasures",
            "path": "MedicinalProduct.specialMeasures",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.paediatricUseIndicator",
            "path": "MedicinalProduct.paediatricUseIndicator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.productClassification",
            "path": "MedicinalProduct.productClassification",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.marketingStatus",
            "path": "MedicinalProduct.marketingStatus",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "MarketingStatus"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.pharmaceuticalProduct",
            "path": "MedicinalProduct.pharmaceuticalProduct",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductPharmaceutical"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.packagedMedicinalProduct",
            "path": "MedicinalProduct.packagedMedicinalProduct",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductPackaged"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.attachedDocument",
            "path": "MedicinalProduct.attachedDocument",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.masterFile",
            "path": "MedicinalProduct.masterFile",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.contact",
            "path": "MedicinalProduct.contact",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.clinicalTrial",
            "path": "MedicinalProduct.clinicalTrial",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchStudy"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name",
            "path": "MedicinalProduct.name",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.productName",
            "path": "MedicinalProduct.name.productName",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.namePart",
            "path": "MedicinalProduct.name.namePart",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.namePart.part",
            "path": "MedicinalProduct.name.namePart.part",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.namePart.type",
            "path": "MedicinalProduct.name.namePart.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.countryLanguage",
            "path": "MedicinalProduct.name.countryLanguage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.countryLanguage.country",
            "path": "MedicinalProduct.name.countryLanguage.country",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.countryLanguage.jurisdiction",
            "path": "MedicinalProduct.name.countryLanguage.jurisdiction",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.name.countryLanguage.language",
            "path": "MedicinalProduct.name.countryLanguage.language",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.crossReference",
            "path": "MedicinalProduct.crossReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation",
            "path": "MedicinalProduct.manufacturingBusinessOperation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.operationType",
            "path": "MedicinalProduct.manufacturingBusinessOperation.operationType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.authorisationReferenceNumber",
            "path": "MedicinalProduct.manufacturingBusinessOperation.authorisationReferenceNumber",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.effectiveDate",
            "path": "MedicinalProduct.manufacturingBusinessOperation.effectiveDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.confidentialityIndicator",
            "path": "MedicinalProduct.manufacturingBusinessOperation.confidentialityIndicator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.manufacturer",
            "path": "MedicinalProduct.manufacturingBusinessOperation.manufacturer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.manufacturingBusinessOperation.regulator",
            "path": "MedicinalProduct.manufacturingBusinessOperation.regulator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation",
            "path": "MedicinalProduct.specialDesignation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.identifier",
            "path": "MedicinalProduct.specialDesignation.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.type",
            "path": "MedicinalProduct.specialDesignation.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.intendedUse",
            "path": "MedicinalProduct.specialDesignation.intendedUse",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.indication[x]",
            "path": "MedicinalProduct.specialDesignation.indication[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductIndication"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.status",
            "path": "MedicinalProduct.specialDesignation.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.date",
            "path": "MedicinalProduct.specialDesignation.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProduct.specialDesignation.species",
            "path": "MedicinalProduct.specialDesignation.species",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicinalProductAuthorization",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicinalProductAuthorization",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicinalProductAuthorization",
      "version": "4.0.1",
      "name": "MedicinalProductAuthorization",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicinalProductAuthorization",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicinalProductAuthorization",
            "path": "MedicinalProductAuthorization",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductAuthorization",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductAuthorization.id",
            "path": "MedicinalProductAuthorization.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.meta",
            "path": "MedicinalProductAuthorization.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.implicitRules",
            "path": "MedicinalProductAuthorization.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.language",
            "path": "MedicinalProductAuthorization.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicinalProductAuthorization.text",
            "path": "MedicinalProductAuthorization.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductAuthorization.contained",
            "path": "MedicinalProductAuthorization.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductAuthorization.extension",
            "path": "MedicinalProductAuthorization.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductAuthorization.modifierExtension",
            "path": "MedicinalProductAuthorization.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicinalProductAuthorization.identifier",
            "path": "MedicinalProductAuthorization.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductAuthorization.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.subject",
            "path": "MedicinalProductAuthorization.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductPackaged"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.country",
            "path": "MedicinalProductAuthorization.country",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductAuthorization.country",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdiction",
            "path": "MedicinalProductAuthorization.jurisdiction",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductAuthorization.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.status",
            "path": "MedicinalProductAuthorization.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.statusDate",
            "path": "MedicinalProductAuthorization.statusDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.statusDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.restoreDate",
            "path": "MedicinalProductAuthorization.restoreDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.restoreDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.validityPeriod",
            "path": "MedicinalProductAuthorization.validityPeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.validityPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.dataExclusivityPeriod",
            "path": "MedicinalProductAuthorization.dataExclusivityPeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.dataExclusivityPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.dateOfFirstAuthorization",
            "path": "MedicinalProductAuthorization.dateOfFirstAuthorization",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.dateOfFirstAuthorization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.internationalBirthDate",
            "path": "MedicinalProductAuthorization.internationalBirthDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.internationalBirthDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.legalBasis",
            "path": "MedicinalProductAuthorization.legalBasis",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.legalBasis",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductAuthorization.jurisdictionalAuthorization",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.id",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.extension",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.modifierExtension",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.identifier",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.country",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.country",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.country",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.jurisdiction",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.jurisdiction",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.legalStatusOfSupply",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.legalStatusOfSupply",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.legalStatusOfSupply",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.validityPeriod",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.validityPeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.validityPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.holder",
            "path": "MedicinalProductAuthorization.holder",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.holder",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.regulator",
            "path": "MedicinalProductAuthorization.regulator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.regulator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure",
            "path": "MedicinalProductAuthorization.procedure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.procedure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure.id",
            "path": "MedicinalProductAuthorization.procedure.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductAuthorization.procedure.extension",
            "path": "MedicinalProductAuthorization.procedure.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductAuthorization.procedure.modifierExtension",
            "path": "MedicinalProductAuthorization.procedure.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure.identifier",
            "path": "MedicinalProductAuthorization.procedure.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.procedure.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure.type",
            "path": "MedicinalProductAuthorization.procedure.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.procedure.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure.date[x]",
            "path": "MedicinalProductAuthorization.procedure.date[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductAuthorization.procedure.date[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              },
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure.application",
            "path": "MedicinalProductAuthorization.procedure.application",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductAuthorization.procedure.application",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#MedicinalProductAuthorization.procedure",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicinalProductAuthorization",
            "path": "MedicinalProductAuthorization",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicinalProductAuthorization.identifier",
            "path": "MedicinalProductAuthorization.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.subject",
            "path": "MedicinalProductAuthorization.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductPackaged"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.country",
            "path": "MedicinalProductAuthorization.country",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdiction",
            "path": "MedicinalProductAuthorization.jurisdiction",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.status",
            "path": "MedicinalProductAuthorization.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.statusDate",
            "path": "MedicinalProductAuthorization.statusDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.restoreDate",
            "path": "MedicinalProductAuthorization.restoreDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.validityPeriod",
            "path": "MedicinalProductAuthorization.validityPeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.dataExclusivityPeriod",
            "path": "MedicinalProductAuthorization.dataExclusivityPeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.dateOfFirstAuthorization",
            "path": "MedicinalProductAuthorization.dateOfFirstAuthorization",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.internationalBirthDate",
            "path": "MedicinalProductAuthorization.internationalBirthDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.legalBasis",
            "path": "MedicinalProductAuthorization.legalBasis",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.identifier",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.country",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.country",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.jurisdiction",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.jurisdiction",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.legalStatusOfSupply",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.legalStatusOfSupply",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.jurisdictionalAuthorization.validityPeriod",
            "path": "MedicinalProductAuthorization.jurisdictionalAuthorization.validityPeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.holder",
            "path": "MedicinalProductAuthorization.holder",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.regulator",
            "path": "MedicinalProductAuthorization.regulator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure",
            "path": "MedicinalProductAuthorization.procedure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure.identifier",
            "path": "MedicinalProductAuthorization.procedure.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure.type",
            "path": "MedicinalProductAuthorization.procedure.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure.date[x]",
            "path": "MedicinalProductAuthorization.procedure.date[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              },
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductAuthorization.procedure.application",
            "path": "MedicinalProductAuthorization.procedure.application",
            "min": 0,
            "max": "*",
            "contentReference": "#MedicinalProductAuthorization.procedure",
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicinalProductContraindication",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicinalProductContraindication",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicinalProductContraindication",
      "version": "4.0.1",
      "name": "MedicinalProductContraindication",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicinalProductContraindication",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicinalProductContraindication",
            "path": "MedicinalProductContraindication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductContraindication",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductContraindication.id",
            "path": "MedicinalProductContraindication.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.meta",
            "path": "MedicinalProductContraindication.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.implicitRules",
            "path": "MedicinalProductContraindication.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.language",
            "path": "MedicinalProductContraindication.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicinalProductContraindication.text",
            "path": "MedicinalProductContraindication.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductContraindication.contained",
            "path": "MedicinalProductContraindication.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductContraindication.extension",
            "path": "MedicinalProductContraindication.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductContraindication.modifierExtension",
            "path": "MedicinalProductContraindication.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicinalProductContraindication.subject",
            "path": "MedicinalProductContraindication.subject",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductContraindication.subject",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.disease",
            "path": "MedicinalProductContraindication.disease",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductContraindication.disease",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.diseaseStatus",
            "path": "MedicinalProductContraindication.diseaseStatus",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductContraindication.diseaseStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.comorbidity",
            "path": "MedicinalProductContraindication.comorbidity",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductContraindication.comorbidity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.therapeuticIndication",
            "path": "MedicinalProductContraindication.therapeuticIndication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductContraindication.therapeuticIndication",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductIndication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.otherTherapy",
            "path": "MedicinalProductContraindication.otherTherapy",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductContraindication.otherTherapy",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.otherTherapy.id",
            "path": "MedicinalProductContraindication.otherTherapy.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductContraindication.otherTherapy.extension",
            "path": "MedicinalProductContraindication.otherTherapy.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductContraindication.otherTherapy.modifierExtension",
            "path": "MedicinalProductContraindication.otherTherapy.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.otherTherapy.therapyRelationshipType",
            "path": "MedicinalProductContraindication.otherTherapy.therapyRelationshipType",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductContraindication.otherTherapy.therapyRelationshipType",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.otherTherapy.medication[x]",
            "path": "MedicinalProductContraindication.otherTherapy.medication[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductContraindication.otherTherapy.medication[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.population",
            "path": "MedicinalProductContraindication.population",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductContraindication.population",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Population"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicinalProductContraindication",
            "path": "MedicinalProductContraindication",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicinalProductContraindication.subject",
            "path": "MedicinalProductContraindication.subject",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.disease",
            "path": "MedicinalProductContraindication.disease",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.diseaseStatus",
            "path": "MedicinalProductContraindication.diseaseStatus",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.comorbidity",
            "path": "MedicinalProductContraindication.comorbidity",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.therapeuticIndication",
            "path": "MedicinalProductContraindication.therapeuticIndication",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductIndication"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.otherTherapy",
            "path": "MedicinalProductContraindication.otherTherapy",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.otherTherapy.therapyRelationshipType",
            "path": "MedicinalProductContraindication.otherTherapy.therapyRelationshipType",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.otherTherapy.medication[x]",
            "path": "MedicinalProductContraindication.otherTherapy.medication[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductContraindication.population",
            "path": "MedicinalProductContraindication.population",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Population"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicinalProductIndication",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicinalProductIndication",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicinalProductIndication",
      "version": "4.0.1",
      "name": "MedicinalProductIndication",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicinalProductIndication",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicinalProductIndication",
            "path": "MedicinalProductIndication",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIndication",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIndication.id",
            "path": "MedicinalProductIndication.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.meta",
            "path": "MedicinalProductIndication.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.implicitRules",
            "path": "MedicinalProductIndication.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.language",
            "path": "MedicinalProductIndication.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicinalProductIndication.text",
            "path": "MedicinalProductIndication.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIndication.contained",
            "path": "MedicinalProductIndication.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIndication.extension",
            "path": "MedicinalProductIndication.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIndication.modifierExtension",
            "path": "MedicinalProductIndication.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicinalProductIndication.subject",
            "path": "MedicinalProductIndication.subject",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIndication.subject",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.diseaseSymptomProcedure",
            "path": "MedicinalProductIndication.diseaseSymptomProcedure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIndication.diseaseSymptomProcedure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.diseaseStatus",
            "path": "MedicinalProductIndication.diseaseStatus",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIndication.diseaseStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.comorbidity",
            "path": "MedicinalProductIndication.comorbidity",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIndication.comorbidity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.intendedEffect",
            "path": "MedicinalProductIndication.intendedEffect",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIndication.intendedEffect",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.duration",
            "path": "MedicinalProductIndication.duration",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIndication.duration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.otherTherapy",
            "path": "MedicinalProductIndication.otherTherapy",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIndication.otherTherapy",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.otherTherapy.id",
            "path": "MedicinalProductIndication.otherTherapy.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIndication.otherTherapy.extension",
            "path": "MedicinalProductIndication.otherTherapy.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIndication.otherTherapy.modifierExtension",
            "path": "MedicinalProductIndication.otherTherapy.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.otherTherapy.therapyRelationshipType",
            "path": "MedicinalProductIndication.otherTherapy.therapyRelationshipType",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductIndication.otherTherapy.therapyRelationshipType",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.otherTherapy.medication[x]",
            "path": "MedicinalProductIndication.otherTherapy.medication[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductIndication.otherTherapy.medication[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.undesirableEffect",
            "path": "MedicinalProductIndication.undesirableEffect",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIndication.undesirableEffect",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductUndesirableEffect"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.population",
            "path": "MedicinalProductIndication.population",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIndication.population",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Population"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicinalProductIndication",
            "path": "MedicinalProductIndication",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicinalProductIndication.subject",
            "path": "MedicinalProductIndication.subject",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.diseaseSymptomProcedure",
            "path": "MedicinalProductIndication.diseaseSymptomProcedure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.diseaseStatus",
            "path": "MedicinalProductIndication.diseaseStatus",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.comorbidity",
            "path": "MedicinalProductIndication.comorbidity",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.intendedEffect",
            "path": "MedicinalProductIndication.intendedEffect",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.duration",
            "path": "MedicinalProductIndication.duration",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.otherTherapy",
            "path": "MedicinalProductIndication.otherTherapy",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.otherTherapy.therapyRelationshipType",
            "path": "MedicinalProductIndication.otherTherapy.therapyRelationshipType",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.otherTherapy.medication[x]",
            "path": "MedicinalProductIndication.otherTherapy.medication[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.undesirableEffect",
            "path": "MedicinalProductIndication.undesirableEffect",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductUndesirableEffect"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIndication.population",
            "path": "MedicinalProductIndication.population",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Population"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicinalProductIngredient",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicinalProductIngredient",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicinalProductIngredient",
      "version": "4.0.1",
      "name": "MedicinalProductIngredient",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicinalProductIngredient",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicinalProductIngredient",
            "path": "MedicinalProductIngredient",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIngredient",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.id",
            "path": "MedicinalProductIngredient.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.meta",
            "path": "MedicinalProductIngredient.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.implicitRules",
            "path": "MedicinalProductIngredient.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.language",
            "path": "MedicinalProductIngredient.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicinalProductIngredient.text",
            "path": "MedicinalProductIngredient.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.contained",
            "path": "MedicinalProductIngredient.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.extension",
            "path": "MedicinalProductIngredient.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.modifierExtension",
            "path": "MedicinalProductIngredient.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.identifier",
            "path": "MedicinalProductIngredient.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.role",
            "path": "MedicinalProductIngredient.role",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.role",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.allergenicIndicator",
            "path": "MedicinalProductIngredient.allergenicIndicator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.allergenicIndicator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.manufacturer",
            "path": "MedicinalProductIngredient.manufacturer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIngredient.manufacturer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance",
            "path": "MedicinalProductIngredient.specifiedSubstance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.id",
            "path": "MedicinalProductIngredient.specifiedSubstance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.extension",
            "path": "MedicinalProductIngredient.specifiedSubstance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.modifierExtension",
            "path": "MedicinalProductIngredient.specifiedSubstance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.code",
            "path": "MedicinalProductIngredient.specifiedSubstance.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.group",
            "path": "MedicinalProductIngredient.specifiedSubstance.group",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.group",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.confidentiality",
            "path": "MedicinalProductIngredient.specifiedSubstance.confidentiality",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.confidentiality",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.id",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.extension",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.modifierExtension",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.presentation",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.presentation",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.presentation",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.presentationLowLimit",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.presentationLowLimit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.presentationLowLimit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If this is present it implies that the whole strength is expressed as a range, due to uncertainty or variation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.concentration",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.concentration",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.concentration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.concentrationLowLimit",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.concentrationLowLimit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.concentrationLowLimit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If this is present it implies that the whole strength is expressed as a range, due to uncertainty or variation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.measurementPoint",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.measurementPoint",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.measurementPoint",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.country",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.country",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.country",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.id",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.extension",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.modifierExtension",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.substance",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.substance",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.substance",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.strength",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.strength",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.strength",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.strengthLowLimit",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.strengthLowLimit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.strengthLowLimit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.measurementPoint",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.measurementPoint",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.measurementPoint",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.country",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.country",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.country",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.substance",
            "path": "MedicinalProductIngredient.substance",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.substance",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.substance.id",
            "path": "MedicinalProductIngredient.substance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.substance.extension",
            "path": "MedicinalProductIngredient.substance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductIngredient.substance.modifierExtension",
            "path": "MedicinalProductIngredient.substance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.substance.code",
            "path": "MedicinalProductIngredient.substance.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductIngredient.substance.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.substance.strength",
            "path": "MedicinalProductIngredient.substance.strength",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductIngredient.substance.strength",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#MedicinalProductIngredient.specifiedSubstance.strength",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicinalProductIngredient",
            "path": "MedicinalProductIngredient",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicinalProductIngredient.identifier",
            "path": "MedicinalProductIngredient.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.role",
            "path": "MedicinalProductIngredient.role",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.allergenicIndicator",
            "path": "MedicinalProductIngredient.allergenicIndicator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.manufacturer",
            "path": "MedicinalProductIngredient.manufacturer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance",
            "path": "MedicinalProductIngredient.specifiedSubstance",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.code",
            "path": "MedicinalProductIngredient.specifiedSubstance.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.group",
            "path": "MedicinalProductIngredient.specifiedSubstance.group",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.confidentiality",
            "path": "MedicinalProductIngredient.specifiedSubstance.confidentiality",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.presentation",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.presentation",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.presentationLowLimit",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.presentationLowLimit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If this is present it implies that the whole strength is expressed as a range, due to uncertainty or variation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.concentration",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.concentration",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.concentrationLowLimit",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.concentrationLowLimit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If this is present it implies that the whole strength is expressed as a range, due to uncertainty or variation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.measurementPoint",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.measurementPoint",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.country",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.country",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.substance",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.substance",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.strength",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.strength",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.strengthLowLimit",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.strengthLowLimit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.measurementPoint",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.measurementPoint",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.country",
            "path": "MedicinalProductIngredient.specifiedSubstance.strength.referenceStrength.country",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.substance",
            "path": "MedicinalProductIngredient.substance",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.substance.code",
            "path": "MedicinalProductIngredient.substance.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductIngredient.substance.strength",
            "path": "MedicinalProductIngredient.substance.strength",
            "min": 0,
            "max": "*",
            "contentReference": "#MedicinalProductIngredient.specifiedSubstance.strength",
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicinalProductInteraction",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicinalProductInteraction",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicinalProductInteraction",
      "version": "4.0.1",
      "name": "MedicinalProductInteraction",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicinalProductInteraction",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicinalProductInteraction",
            "path": "MedicinalProductInteraction",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductInteraction",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductInteraction.id",
            "path": "MedicinalProductInteraction.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.meta",
            "path": "MedicinalProductInteraction.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.implicitRules",
            "path": "MedicinalProductInteraction.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.language",
            "path": "MedicinalProductInteraction.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicinalProductInteraction.text",
            "path": "MedicinalProductInteraction.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductInteraction.contained",
            "path": "MedicinalProductInteraction.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductInteraction.extension",
            "path": "MedicinalProductInteraction.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductInteraction.modifierExtension",
            "path": "MedicinalProductInteraction.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicinalProductInteraction.subject",
            "path": "MedicinalProductInteraction.subject",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductInteraction.subject",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.description",
            "path": "MedicinalProductInteraction.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductInteraction.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.interactant",
            "path": "MedicinalProductInteraction.interactant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductInteraction.interactant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.interactant.id",
            "path": "MedicinalProductInteraction.interactant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductInteraction.interactant.extension",
            "path": "MedicinalProductInteraction.interactant.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductInteraction.interactant.modifierExtension",
            "path": "MedicinalProductInteraction.interactant.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.interactant.item[x]",
            "path": "MedicinalProductInteraction.interactant.item[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductInteraction.interactant.item[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/ObservationDefinition"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.type",
            "path": "MedicinalProductInteraction.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductInteraction.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.effect",
            "path": "MedicinalProductInteraction.effect",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductInteraction.effect",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.incidence",
            "path": "MedicinalProductInteraction.incidence",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductInteraction.incidence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.management",
            "path": "MedicinalProductInteraction.management",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductInteraction.management",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicinalProductInteraction",
            "path": "MedicinalProductInteraction",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicinalProductInteraction.subject",
            "path": "MedicinalProductInteraction.subject",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.description",
            "path": "MedicinalProductInteraction.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.interactant",
            "path": "MedicinalProductInteraction.interactant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.interactant.item[x]",
            "path": "MedicinalProductInteraction.interactant.item[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/ObservationDefinition"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.type",
            "path": "MedicinalProductInteraction.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.effect",
            "path": "MedicinalProductInteraction.effect",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.incidence",
            "path": "MedicinalProductInteraction.incidence",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductInteraction.management",
            "path": "MedicinalProductInteraction.management",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicinalProductManufactured",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicinalProductManufactured",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicinalProductManufactured",
      "version": "4.0.1",
      "name": "MedicinalProductManufactured",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicinalProductManufactured",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicinalProductManufactured",
            "path": "MedicinalProductManufactured",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductManufactured",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductManufactured.id",
            "path": "MedicinalProductManufactured.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.meta",
            "path": "MedicinalProductManufactured.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.implicitRules",
            "path": "MedicinalProductManufactured.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.language",
            "path": "MedicinalProductManufactured.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicinalProductManufactured.text",
            "path": "MedicinalProductManufactured.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductManufactured.contained",
            "path": "MedicinalProductManufactured.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductManufactured.extension",
            "path": "MedicinalProductManufactured.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductManufactured.modifierExtension",
            "path": "MedicinalProductManufactured.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicinalProductManufactured.manufacturedDoseForm",
            "path": "MedicinalProductManufactured.manufacturedDoseForm",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductManufactured.manufacturedDoseForm",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.unitOfPresentation",
            "path": "MedicinalProductManufactured.unitOfPresentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductManufactured.unitOfPresentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.quantity",
            "path": "MedicinalProductManufactured.quantity",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductManufactured.quantity",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.manufacturer",
            "path": "MedicinalProductManufactured.manufacturer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductManufactured.manufacturer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.ingredient",
            "path": "MedicinalProductManufactured.ingredient",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductManufactured.ingredient",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductIngredient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.physicalCharacteristics",
            "path": "MedicinalProductManufactured.physicalCharacteristics",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductManufactured.physicalCharacteristics",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "ProdCharacteristic"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.otherCharacteristics",
            "path": "MedicinalProductManufactured.otherCharacteristics",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductManufactured.otherCharacteristics",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicinalProductManufactured",
            "path": "MedicinalProductManufactured",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicinalProductManufactured.manufacturedDoseForm",
            "path": "MedicinalProductManufactured.manufacturedDoseForm",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.unitOfPresentation",
            "path": "MedicinalProductManufactured.unitOfPresentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.quantity",
            "path": "MedicinalProductManufactured.quantity",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.manufacturer",
            "path": "MedicinalProductManufactured.manufacturer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.ingredient",
            "path": "MedicinalProductManufactured.ingredient",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductIngredient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.physicalCharacteristics",
            "path": "MedicinalProductManufactured.physicalCharacteristics",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ProdCharacteristic"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductManufactured.otherCharacteristics",
            "path": "MedicinalProductManufactured.otherCharacteristics",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicinalProductPackaged",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicinalProductPackaged",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicinalProductPackaged",
      "version": "4.0.1",
      "name": "MedicinalProductPackaged",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicinalProductPackaged",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicinalProductPackaged",
            "path": "MedicinalProductPackaged",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPackaged.id",
            "path": "MedicinalProductPackaged.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.meta",
            "path": "MedicinalProductPackaged.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.implicitRules",
            "path": "MedicinalProductPackaged.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.language",
            "path": "MedicinalProductPackaged.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicinalProductPackaged.text",
            "path": "MedicinalProductPackaged.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPackaged.contained",
            "path": "MedicinalProductPackaged.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPackaged.extension",
            "path": "MedicinalProductPackaged.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPackaged.modifierExtension",
            "path": "MedicinalProductPackaged.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicinalProductPackaged.identifier",
            "path": "MedicinalProductPackaged.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.subject",
            "path": "MedicinalProductPackaged.subject",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.subject",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.description",
            "path": "MedicinalProductPackaged.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPackaged.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.legalStatusOfSupply",
            "path": "MedicinalProductPackaged.legalStatusOfSupply",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPackaged.legalStatusOfSupply",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.marketingStatus",
            "path": "MedicinalProductPackaged.marketingStatus",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.marketingStatus",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "MarketingStatus"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.marketingAuthorization",
            "path": "MedicinalProductPackaged.marketingAuthorization",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPackaged.marketingAuthorization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductAuthorization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.manufacturer",
            "path": "MedicinalProductPackaged.manufacturer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.manufacturer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.batchIdentifier",
            "path": "MedicinalProductPackaged.batchIdentifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.batchIdentifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.batchIdentifier.id",
            "path": "MedicinalProductPackaged.batchIdentifier.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPackaged.batchIdentifier.extension",
            "path": "MedicinalProductPackaged.batchIdentifier.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPackaged.batchIdentifier.modifierExtension",
            "path": "MedicinalProductPackaged.batchIdentifier.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.batchIdentifier.outerPackaging",
            "path": "MedicinalProductPackaged.batchIdentifier.outerPackaging",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductPackaged.batchIdentifier.outerPackaging",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.batchIdentifier.immediatePackaging",
            "path": "MedicinalProductPackaged.batchIdentifier.immediatePackaging",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPackaged.batchIdentifier.immediatePackaging",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem",
            "path": "MedicinalProductPackaged.packageItem",
            "min": 1,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.packageItem",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.id",
            "path": "MedicinalProductPackaged.packageItem.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPackaged.packageItem.extension",
            "path": "MedicinalProductPackaged.packageItem.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPackaged.packageItem.modifierExtension",
            "path": "MedicinalProductPackaged.packageItem.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.identifier",
            "path": "MedicinalProductPackaged.packageItem.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.type",
            "path": "MedicinalProductPackaged.packageItem.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.quantity",
            "path": "MedicinalProductPackaged.packageItem.quantity",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.quantity",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.material",
            "path": "MedicinalProductPackaged.packageItem.material",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.material",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.alternateMaterial",
            "path": "MedicinalProductPackaged.packageItem.alternateMaterial",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.alternateMaterial",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.device",
            "path": "MedicinalProductPackaged.packageItem.device",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.device",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.manufacturedItem",
            "path": "MedicinalProductPackaged.packageItem.manufacturedItem",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.manufacturedItem",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductManufactured"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.packageItem",
            "path": "MedicinalProductPackaged.packageItem.packageItem",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.packageItem",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#MedicinalProductPackaged.packageItem",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.physicalCharacteristics",
            "path": "MedicinalProductPackaged.packageItem.physicalCharacteristics",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.physicalCharacteristics",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "ProdCharacteristic"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.otherCharacteristics",
            "path": "MedicinalProductPackaged.packageItem.otherCharacteristics",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.otherCharacteristics",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.shelfLifeStorage",
            "path": "MedicinalProductPackaged.packageItem.shelfLifeStorage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.shelfLifeStorage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ProductShelfLife"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.manufacturer",
            "path": "MedicinalProductPackaged.packageItem.manufacturer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPackaged.packageItem.manufacturer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicinalProductPackaged",
            "path": "MedicinalProductPackaged",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicinalProductPackaged.identifier",
            "path": "MedicinalProductPackaged.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.subject",
            "path": "MedicinalProductPackaged.subject",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.description",
            "path": "MedicinalProductPackaged.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.legalStatusOfSupply",
            "path": "MedicinalProductPackaged.legalStatusOfSupply",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.marketingStatus",
            "path": "MedicinalProductPackaged.marketingStatus",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "MarketingStatus"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.marketingAuthorization",
            "path": "MedicinalProductPackaged.marketingAuthorization",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductAuthorization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.manufacturer",
            "path": "MedicinalProductPackaged.manufacturer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.batchIdentifier",
            "path": "MedicinalProductPackaged.batchIdentifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.batchIdentifier.outerPackaging",
            "path": "MedicinalProductPackaged.batchIdentifier.outerPackaging",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.batchIdentifier.immediatePackaging",
            "path": "MedicinalProductPackaged.batchIdentifier.immediatePackaging",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem",
            "path": "MedicinalProductPackaged.packageItem",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.identifier",
            "path": "MedicinalProductPackaged.packageItem.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.type",
            "path": "MedicinalProductPackaged.packageItem.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.quantity",
            "path": "MedicinalProductPackaged.packageItem.quantity",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.material",
            "path": "MedicinalProductPackaged.packageItem.material",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.alternateMaterial",
            "path": "MedicinalProductPackaged.packageItem.alternateMaterial",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.device",
            "path": "MedicinalProductPackaged.packageItem.device",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.manufacturedItem",
            "path": "MedicinalProductPackaged.packageItem.manufacturedItem",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductManufactured"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.packageItem",
            "path": "MedicinalProductPackaged.packageItem.packageItem",
            "min": 0,
            "max": "*",
            "contentReference": "#MedicinalProductPackaged.packageItem",
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.physicalCharacteristics",
            "path": "MedicinalProductPackaged.packageItem.physicalCharacteristics",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ProdCharacteristic"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.otherCharacteristics",
            "path": "MedicinalProductPackaged.packageItem.otherCharacteristics",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.shelfLifeStorage",
            "path": "MedicinalProductPackaged.packageItem.shelfLifeStorage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ProductShelfLife"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPackaged.packageItem.manufacturer",
            "path": "MedicinalProductPackaged.packageItem.manufacturer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicinalProductPharmaceutical",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicinalProductPharmaceutical",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicinalProductPharmaceutical",
      "version": "4.0.1",
      "name": "MedicinalProductPharmaceutical",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicinalProductPharmaceutical",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicinalProductPharmaceutical",
            "path": "MedicinalProductPharmaceutical",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPharmaceutical",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.id",
            "path": "MedicinalProductPharmaceutical.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.meta",
            "path": "MedicinalProductPharmaceutical.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.implicitRules",
            "path": "MedicinalProductPharmaceutical.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.language",
            "path": "MedicinalProductPharmaceutical.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicinalProductPharmaceutical.text",
            "path": "MedicinalProductPharmaceutical.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.contained",
            "path": "MedicinalProductPharmaceutical.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.extension",
            "path": "MedicinalProductPharmaceutical.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.modifierExtension",
            "path": "MedicinalProductPharmaceutical.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.identifier",
            "path": "MedicinalProductPharmaceutical.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPharmaceutical.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.administrableDoseForm",
            "path": "MedicinalProductPharmaceutical.administrableDoseForm",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.administrableDoseForm",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.unitOfPresentation",
            "path": "MedicinalProductPharmaceutical.unitOfPresentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.unitOfPresentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.ingredient",
            "path": "MedicinalProductPharmaceutical.ingredient",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPharmaceutical.ingredient",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductIngredient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.device",
            "path": "MedicinalProductPharmaceutical.device",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPharmaceutical.device",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.characteristics",
            "path": "MedicinalProductPharmaceutical.characteristics",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPharmaceutical.characteristics",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.characteristics.id",
            "path": "MedicinalProductPharmaceutical.characteristics.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.characteristics.extension",
            "path": "MedicinalProductPharmaceutical.characteristics.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.characteristics.modifierExtension",
            "path": "MedicinalProductPharmaceutical.characteristics.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.characteristics.code",
            "path": "MedicinalProductPharmaceutical.characteristics.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.characteristics.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.characteristics.status",
            "path": "MedicinalProductPharmaceutical.characteristics.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.characteristics.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration",
            "min": 1,
            "max": "*",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.id",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.extension",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.modifierExtension",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.code",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.firstDose",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.firstDose",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.firstDose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.maxSingleDose",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxSingleDose",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxSingleDose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.maxDosePerDay",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxDosePerDay",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxDosePerDay",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.maxDosePerTreatmentPeriod",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxDosePerTreatmentPeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxDosePerTreatmentPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.maxTreatmentPeriod",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxTreatmentPeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxTreatmentPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.id",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.extension",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.modifierExtension",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.code",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.id",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.extension",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.modifierExtension",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.tissue",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.tissue",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.tissue",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.value",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.value",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicinalProductPharmaceutical",
            "path": "MedicinalProductPharmaceutical",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicinalProductPharmaceutical.identifier",
            "path": "MedicinalProductPharmaceutical.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.administrableDoseForm",
            "path": "MedicinalProductPharmaceutical.administrableDoseForm",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.unitOfPresentation",
            "path": "MedicinalProductPharmaceutical.unitOfPresentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.ingredient",
            "path": "MedicinalProductPharmaceutical.ingredient",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProductIngredient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.device",
            "path": "MedicinalProductPharmaceutical.device",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DeviceDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.characteristics",
            "path": "MedicinalProductPharmaceutical.characteristics",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.characteristics.code",
            "path": "MedicinalProductPharmaceutical.characteristics.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.characteristics.status",
            "path": "MedicinalProductPharmaceutical.characteristics.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.code",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.firstDose",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.firstDose",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.maxSingleDose",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxSingleDose",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.maxDosePerDay",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxDosePerDay",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.maxDosePerTreatmentPeriod",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxDosePerTreatmentPeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.maxTreatmentPeriod",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.maxTreatmentPeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.code",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.tissue",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.tissue",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.value",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.value",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation",
            "path": "MedicinalProductPharmaceutical.routeOfAdministration.targetSpecies.withdrawalPeriod.supportingInformation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MedicinalProductUndesirableEffect",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MedicinalProductUndesirableEffect",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MedicinalProductUndesirableEffect",
      "version": "4.0.1",
      "name": "MedicinalProductUndesirableEffect",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MedicinalProductUndesirableEffect",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MedicinalProductUndesirableEffect",
            "path": "MedicinalProductUndesirableEffect",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductUndesirableEffect",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductUndesirableEffect.id",
            "path": "MedicinalProductUndesirableEffect.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.meta",
            "path": "MedicinalProductUndesirableEffect.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.implicitRules",
            "path": "MedicinalProductUndesirableEffect.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.language",
            "path": "MedicinalProductUndesirableEffect.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MedicinalProductUndesirableEffect.text",
            "path": "MedicinalProductUndesirableEffect.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductUndesirableEffect.contained",
            "path": "MedicinalProductUndesirableEffect.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductUndesirableEffect.extension",
            "path": "MedicinalProductUndesirableEffect.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MedicinalProductUndesirableEffect.modifierExtension",
            "path": "MedicinalProductUndesirableEffect.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MedicinalProductUndesirableEffect.subject",
            "path": "MedicinalProductUndesirableEffect.subject",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductUndesirableEffect.subject",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.symptomConditionEffect",
            "path": "MedicinalProductUndesirableEffect.symptomConditionEffect",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductUndesirableEffect.symptomConditionEffect",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.classification",
            "path": "MedicinalProductUndesirableEffect.classification",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductUndesirableEffect.classification",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.frequencyOfOccurrence",
            "path": "MedicinalProductUndesirableEffect.frequencyOfOccurrence",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MedicinalProductUndesirableEffect.frequencyOfOccurrence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.population",
            "path": "MedicinalProductUndesirableEffect.population",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MedicinalProductUndesirableEffect.population",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Population"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MedicinalProductUndesirableEffect",
            "path": "MedicinalProductUndesirableEffect",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MedicinalProductUndesirableEffect.subject",
            "path": "MedicinalProductUndesirableEffect.subject",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
                  "http://hl7.org/fhir/StructureDefinition/Medication"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.symptomConditionEffect",
            "path": "MedicinalProductUndesirableEffect.symptomConditionEffect",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.classification",
            "path": "MedicinalProductUndesirableEffect.classification",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.frequencyOfOccurrence",
            "path": "MedicinalProductUndesirableEffect.frequencyOfOccurrence",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MedicinalProductUndesirableEffect.population",
            "path": "MedicinalProductUndesirableEffect.population",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Population"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MessageDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MessageDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Conformance"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "inm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MessageDefinition",
      "version": "4.0.1",
      "name": "MessageDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Allows messages to be defined once and re-used across systems.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MessageDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MessageDefinition",
            "path": "MessageDefinition",
            "comment": "This would be a MIF-level artifact.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "msd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.id",
            "path": "MessageDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.meta",
            "path": "MessageDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.implicitRules",
            "path": "MessageDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MessageDefinition.language",
            "path": "MessageDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MessageDefinition.text",
            "path": "MessageDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.contained",
            "path": "MessageDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.extension",
            "path": "MessageDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.modifierExtension",
            "path": "MessageDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MessageDefinition.url",
            "path": "MessageDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.identifier",
            "path": "MessageDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this message definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageDefinition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.version",
            "path": "MessageDefinition.version",
            "comment": "There may be different message definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the message definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.name",
            "path": "MessageDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.title",
            "path": "MessageDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.replaces",
            "path": "MessageDefinition.replaces",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageDefinition.replaces",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.status",
            "path": "MessageDefinition.status",
            "comment": "Allows filtering of message definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "MessageDefinition.experimental",
            "path": "MessageDefinition.experimental",
            "comment": "Allows filtering of message definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.date",
            "path": "MessageDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the message definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageDefinition.date",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.publisher",
            "path": "MessageDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the message definition is the organization or individual primarily responsible for the maintenance and upkeep of the message definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the message definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.contact",
            "path": "MessageDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.description",
            "path": "MessageDefinition.description",
            "comment": "This description can be used to capture details such as why the message definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the message definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the message definition is presumed to be the predominant language in the place the message definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.useContext",
            "path": "MessageDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.jurisdiction",
            "path": "MessageDefinition.jurisdiction",
            "comment": "It may be possible for the message definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageDefinition.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "MessageDefinition.purpose",
            "path": "MessageDefinition.purpose",
            "comment": "This element does not describe the usage of the message definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this message definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.copyright",
            "path": "MessageDefinition.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.base",
            "path": "MessageDefinition.base",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.base",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.parent",
            "path": "MessageDefinition.parent",
            "comment": "It should be possible to use MessageDefinition to describe a message to be used by certain steps in a particular protocol as part of a PlanDefinition or ActivityDefinition.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageDefinition.parent",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.event[x]",
            "path": "MessageDefinition.event[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageDefinition.event[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              },
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MessageEvent"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "One of the message events defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/message-events"
            }
          },
          {
            "id": "MessageDefinition.category",
            "path": "MessageDefinition.category",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MessageSignificanceCategory"
                }
              ],
              "strength": "required",
              "description": "The impact of the content of a message.",
              "valueSet": "http://hl7.org/fhir/ValueSet/message-significance-category|4.0.1"
            }
          },
          {
            "id": "MessageDefinition.focus",
            "path": "MessageDefinition.focus",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageDefinition.focus",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "md-1",
                "severity": "error",
                "human": "Max must be postive int or *",
                "expression": "max='*' or (max.toInteger() > 0)",
                "xpath": "f:max/@value='*' or number(f:max/@value) > 0"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.focus.id",
            "path": "MessageDefinition.focus.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.focus.extension",
            "path": "MessageDefinition.focus.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.focus.modifierExtension",
            "path": "MessageDefinition.focus.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MessageDefinition.focus.code",
            "path": "MessageDefinition.focus.code",
            "comment": "Multiple focuses addressing different resources may occasionally occur.  E.g. to link or unlink a resource from a particular account or encounter, etc.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageDefinition.focus.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "MessageDefinition.focus.profile",
            "path": "MessageDefinition.focus.profile",
            "comment": "This should be present for most message definitions.  However, if the message focus is only a single resource and there is no need to include referenced resources or otherwise enforce the presence of particular elements, it can be omitted.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.focus.profile",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.focus.min",
            "path": "MessageDefinition.focus.min",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageDefinition.focus.min",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageDefinition.focus.max",
            "path": "MessageDefinition.focus.max",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.focus.max",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "md-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.responseRequired",
            "path": "MessageDefinition.responseRequired",
            "comment": "This enables the capability currently available through MSH-16 (Application Level acknowledgement) in HL7 Version 2 to declare at a message instance level whether a response is required or only upon error or success, or never.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.responseRequired",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "always"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "messageheader-response-request"
                }
              ],
              "strength": "required",
              "description": "HL7-defined table of codes which identify conditions under which acknowledgments are required to be returned in response to a message.",
              "valueSet": "http://hl7.org/fhir/ValueSet/messageheader-response-request|4.0.1"
            }
          },
          {
            "id": "MessageDefinition.allowedResponse",
            "path": "MessageDefinition.allowedResponse",
            "comment": "This indicates an application level response to \"close\" a transaction implicit in a particular request message.  To define a complete workflow scenario, look to the [[PlanDefinition]] resource which allows the definition of complex orchestrations, conditionality, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageDefinition.allowedResponse",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.allowedResponse.id",
            "path": "MessageDefinition.allowedResponse.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.allowedResponse.extension",
            "path": "MessageDefinition.allowedResponse.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.allowedResponse.modifierExtension",
            "path": "MessageDefinition.allowedResponse.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MessageDefinition.allowedResponse.message",
            "path": "MessageDefinition.allowedResponse.message",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageDefinition.allowedResponse.message",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.allowedResponse.situation",
            "path": "MessageDefinition.allowedResponse.situation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageDefinition.allowedResponse.situation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageDefinition.graph",
            "path": "MessageDefinition.graph",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageDefinition.graph",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/GraphDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MessageDefinition",
            "path": "MessageDefinition",
            "comment": "This would be a MIF-level artifact.",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "msd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "MessageDefinition.url",
            "path": "MessageDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.identifier",
            "path": "MessageDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this message definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.version",
            "path": "MessageDefinition.version",
            "comment": "There may be different message definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the message definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.name",
            "path": "MessageDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.title",
            "path": "MessageDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.replaces",
            "path": "MessageDefinition.replaces",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.status",
            "path": "MessageDefinition.status",
            "comment": "Allows filtering of message definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "MessageDefinition.experimental",
            "path": "MessageDefinition.experimental",
            "comment": "Allows filtering of message definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.date",
            "path": "MessageDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the message definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.publisher",
            "path": "MessageDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the message definition is the organization or individual primarily responsible for the maintenance and upkeep of the message definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the message definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.contact",
            "path": "MessageDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.description",
            "path": "MessageDefinition.description",
            "comment": "This description can be used to capture details such as why the message definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the message definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the message definition is presumed to be the predominant language in the place the message definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.useContext",
            "path": "MessageDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.jurisdiction",
            "path": "MessageDefinition.jurisdiction",
            "comment": "It may be possible for the message definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "MessageDefinition.purpose",
            "path": "MessageDefinition.purpose",
            "comment": "This element does not describe the usage of the message definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this message definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.copyright",
            "path": "MessageDefinition.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "MessageDefinition.base",
            "path": "MessageDefinition.base",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.parent",
            "path": "MessageDefinition.parent",
            "comment": "It should be possible to use MessageDefinition to describe a message to be used by certain steps in a particular protocol as part of a PlanDefinition or ActivityDefinition.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.event[x]",
            "path": "MessageDefinition.event[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              },
              {
                "code": "uri"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MessageEvent"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "One of the message events defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/message-events"
            }
          },
          {
            "id": "MessageDefinition.category",
            "path": "MessageDefinition.category",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MessageSignificanceCategory"
                }
              ],
              "strength": "required",
              "description": "The impact of the content of a message.",
              "valueSet": "http://hl7.org/fhir/ValueSet/message-significance-category|4.0.1"
            }
          },
          {
            "id": "MessageDefinition.focus",
            "path": "MessageDefinition.focus",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "md-1",
                "severity": "error",
                "human": "Max must be postive int or *",
                "expression": "max='*' or (max.toInteger() > 0)",
                "xpath": "f:max/@value='*' or number(f:max/@value) > 0"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.focus.code",
            "path": "MessageDefinition.focus.code",
            "comment": "Multiple focuses addressing different resources may occasionally occur.  E.g. to link or unlink a resource from a particular account or encounter, etc.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "MessageDefinition.focus.profile",
            "path": "MessageDefinition.focus.profile",
            "comment": "This should be present for most message definitions.  However, if the message focus is only a single resource and there is no need to include referenced resources or otherwise enforce the presence of particular elements, it can be omitted.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ]
          },
          {
            "id": "MessageDefinition.focus.min",
            "path": "MessageDefinition.focus.min",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageDefinition.focus.max",
            "path": "MessageDefinition.focus.max",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "md-1"
            ]
          },
          {
            "id": "MessageDefinition.responseRequired",
            "path": "MessageDefinition.responseRequired",
            "comment": "This enables the capability currently available through MSH-16 (Application Level acknowledgement) in HL7 Version 2 to declare at a message instance level whether a response is required or only upon error or success, or never.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "always"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "messageheader-response-request"
                }
              ],
              "strength": "required",
              "description": "HL7-defined table of codes which identify conditions under which acknowledgments are required to be returned in response to a message.",
              "valueSet": "http://hl7.org/fhir/ValueSet/messageheader-response-request|4.0.1"
            }
          },
          {
            "id": "MessageDefinition.allowedResponse",
            "path": "MessageDefinition.allowedResponse",
            "comment": "This indicates an application level response to \"close\" a transaction implicit in a particular request message.  To define a complete workflow scenario, look to the [[PlanDefinition]] resource which allows the definition of complex orchestrations, conditionality, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "MessageDefinition.allowedResponse.message",
            "path": "MessageDefinition.allowedResponse.message",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
                ]
              }
            ]
          },
          {
            "id": "MessageDefinition.allowedResponse.situation",
            "path": "MessageDefinition.allowedResponse.situation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "MessageDefinition.graph",
            "path": "MessageDefinition.graph",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/GraphDefinition"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MessageHeader",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MessageHeader",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Other"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 4
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "inm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MessageHeader",
      "version": "4.0.1",
      "name": "MessageHeader",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Many implementations are not prepared to use REST and need a messaging based infrastructure.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MessageHeader",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MessageHeader",
            "path": "MessageHeader",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageHeader",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageHeader.id",
            "path": "MessageHeader.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.meta",
            "path": "MessageHeader.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.implicitRules",
            "path": "MessageHeader.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MessageHeader.language",
            "path": "MessageHeader.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MessageHeader.text",
            "path": "MessageHeader.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageHeader.contained",
            "path": "MessageHeader.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageHeader.extension",
            "path": "MessageHeader.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageHeader.modifierExtension",
            "path": "MessageHeader.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MessageHeader.event[x]",
            "path": "MessageHeader.event[x]",
            "comment": "The time of the event will be found in the focus resource. The time of the message will be found in [Bundle.timestamp](bundle-definitions.html#Bundle.timestamp).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageHeader.event[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              },
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MessageEvent"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "One of the message events defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/message-events"
            }
          },
          {
            "id": "MessageHeader.destination",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "MessageDestination"
              }
            ],
            "path": "MessageHeader.destination",
            "comment": "There SHOULD be at least one destination, but in some circumstances, the source system is unaware of any particular destination system.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageHeader.destination",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.destination.id",
            "path": "MessageHeader.destination.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageHeader.destination.extension",
            "path": "MessageHeader.destination.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageHeader.destination.modifierExtension",
            "path": "MessageHeader.destination.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MessageHeader.destination.name",
            "path": "MessageHeader.destination.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.destination.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.destination.target",
            "path": "MessageHeader.destination.target",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.destination.target",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.destination.endpoint",
            "path": "MessageHeader.destination.endpoint",
            "comment": "The id may be a non-resolvable URI for systems that do not use standard network-based addresses.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageHeader.destination.endpoint",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "url"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.destination.receiver",
            "path": "MessageHeader.destination.receiver",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.destination.receiver",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.sender",
            "path": "MessageHeader.sender",
            "comment": "Use case is for where a (trusted) sending system is responsible for multiple organizations, and therefore cannot differentiate based on source endpoint / authentication alone.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.sender",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.enterer",
            "path": "MessageHeader.enterer",
            "comment": "Usually only for the request but can be used in a response.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.enterer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.author",
            "path": "MessageHeader.author",
            "comment": "Usually only for the request but can be used in a response.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.source",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "MessageSource"
              }
            ],
            "path": "MessageHeader.source",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageHeader.source",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.id",
            "path": "MessageHeader.source.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageHeader.source.extension",
            "path": "MessageHeader.source.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageHeader.source.modifierExtension",
            "path": "MessageHeader.source.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.name",
            "path": "MessageHeader.source.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.source.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.software",
            "path": "MessageHeader.source.software",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.source.software",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.version",
            "path": "MessageHeader.source.version",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.source.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.contact",
            "path": "MessageHeader.source.contact",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.source.contact",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.endpoint",
            "path": "MessageHeader.source.endpoint",
            "comment": "The id may be a non-resolvable URI for systems that do not use standard network-based addresses.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageHeader.source.endpoint",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "url"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.responsible",
            "path": "MessageHeader.responsible",
            "comment": "Usually only for the request but can be used in a response.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.responsible",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.reason",
            "path": "MessageHeader.reason",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.reason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EventReason"
                }
              ],
              "strength": "example",
              "description": "Reason for event occurrence.",
              "valueSet": "http://hl7.org/fhir/ValueSet/message-reason-encounter"
            }
          },
          {
            "id": "MessageHeader.response",
            "path": "MessageHeader.response",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.response",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.response.id",
            "path": "MessageHeader.response.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageHeader.response.extension",
            "path": "MessageHeader.response.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MessageHeader.response.modifierExtension",
            "path": "MessageHeader.response.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MessageHeader.response.identifier",
            "path": "MessageHeader.response.identifier",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageHeader.response.identifier",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.response.code",
            "path": "MessageHeader.response.code",
            "comment": "This is a generic response to the request message. Specific data for the response will be found in MessageHeader.focus.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MessageHeader.response.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResponseType"
                }
              ],
              "strength": "required",
              "description": "The kind of response to a message.",
              "valueSet": "http://hl7.org/fhir/ValueSet/response-code|4.0.1"
            }
          },
          {
            "id": "MessageHeader.response.details",
            "path": "MessageHeader.response.details",
            "comment": "This SHALL be contained in the bundle. If any of the issues are errors, the response code SHALL be an error.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.response.details",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/OperationOutcome"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.focus",
            "path": "MessageHeader.focus",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MessageHeader.focus",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MessageHeader.definition",
            "path": "MessageHeader.definition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MessageHeader.definition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MessageHeader",
            "path": "MessageHeader",
            "min": 0,
            "max": "*"
          },
          {
            "id": "MessageHeader.event[x]",
            "path": "MessageHeader.event[x]",
            "comment": "The time of the event will be found in the focus resource. The time of the message will be found in [Bundle.timestamp](bundle-definitions.html#Bundle.timestamp).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              },
              {
                "code": "uri"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MessageEvent"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "One of the message events defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/message-events"
            }
          },
          {
            "id": "MessageHeader.destination",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "MessageDestination"
              }
            ],
            "path": "MessageHeader.destination",
            "comment": "There SHOULD be at least one destination, but in some circumstances, the source system is unaware of any particular destination system.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.destination.name",
            "path": "MessageHeader.destination.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.destination.target",
            "path": "MessageHeader.destination.target",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.destination.endpoint",
            "path": "MessageHeader.destination.endpoint",
            "comment": "The id may be a non-resolvable URI for systems that do not use standard network-based addresses.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "url"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.destination.receiver",
            "path": "MessageHeader.destination.receiver",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.sender",
            "path": "MessageHeader.sender",
            "comment": "Use case is for where a (trusted) sending system is responsible for multiple organizations, and therefore cannot differentiate based on source endpoint / authentication alone.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.enterer",
            "path": "MessageHeader.enterer",
            "comment": "Usually only for the request but can be used in a response.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.author",
            "path": "MessageHeader.author",
            "comment": "Usually only for the request but can be used in a response.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.source",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "MessageSource"
              }
            ],
            "path": "MessageHeader.source",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.name",
            "path": "MessageHeader.source.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.software",
            "path": "MessageHeader.source.software",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.version",
            "path": "MessageHeader.source.version",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.contact",
            "path": "MessageHeader.source.contact",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.source.endpoint",
            "path": "MessageHeader.source.endpoint",
            "comment": "The id may be a non-resolvable URI for systems that do not use standard network-based addresses.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "url"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.responsible",
            "path": "MessageHeader.responsible",
            "comment": "Usually only for the request but can be used in a response.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.reason",
            "path": "MessageHeader.reason",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EventReason"
                }
              ],
              "strength": "example",
              "description": "Reason for event occurrence.",
              "valueSet": "http://hl7.org/fhir/ValueSet/message-reason-encounter"
            }
          },
          {
            "id": "MessageHeader.response",
            "path": "MessageHeader.response",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.response.identifier",
            "path": "MessageHeader.response.identifier",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.response.code",
            "path": "MessageHeader.response.code",
            "comment": "This is a generic response to the request message. Specific data for the response will be found in MessageHeader.focus.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResponseType"
                }
              ],
              "strength": "required",
              "description": "The kind of response to a message.",
              "valueSet": "http://hl7.org/fhir/ValueSet/response-code|4.0.1"
            }
          },
          {
            "id": "MessageHeader.response.details",
            "path": "MessageHeader.response.details",
            "comment": "This SHALL be contained in the bundle. If any of the issues are errors, the response code SHALL be an error.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/OperationOutcome"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.focus",
            "path": "MessageHeader.focus",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MessageHeader.definition",
            "path": "MessageHeader.definition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MessageDefinition"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MolecularSequence",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Diagnostics"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cg"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
      "version": "4.0.1",
      "name": "MolecularSequence",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "MolecularSequence",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MolecularSequence",
            "path": "MolecularSequence",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "msq-3",
                "severity": "error",
                "human": "Only 0 and 1 are valid for coordinateSystem",
                "expression": "coordinateSystem = 1 or coordinateSystem = 0",
                "xpath": "count(f:coordinateSystem[@value=0 and @value=1]) = 1"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.id",
            "path": "MolecularSequence.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.meta",
            "path": "MolecularSequence.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.implicitRules",
            "path": "MolecularSequence.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MolecularSequence.language",
            "path": "MolecularSequence.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MolecularSequence.text",
            "path": "MolecularSequence.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.contained",
            "path": "MolecularSequence.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.extension",
            "path": "MolecularSequence.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.modifierExtension",
            "path": "MolecularSequence.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MolecularSequence.identifier",
            "path": "MolecularSequence.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.type",
            "path": "MolecularSequence.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "sequenceType"
                }
              ],
              "strength": "required",
              "description": "Type if a sequence -- DNA, RNA, or amino acid sequence.",
              "valueSet": "http://hl7.org/fhir/ValueSet/sequence-type|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.coordinateSystem",
            "path": "MolecularSequence.coordinateSystem",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MolecularSequence.coordinateSystem",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.patient",
            "path": "MolecularSequence.patient",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.patient",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.specimen",
            "path": "MolecularSequence.specimen",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.specimen",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.device",
            "path": "MolecularSequence.device",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.device",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.performer",
            "path": "MolecularSequence.performer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.performer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quantity",
            "path": "MolecularSequence.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq",
            "path": "MolecularSequence.referenceSeq",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.referenceSeq",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "msq-5",
                "severity": "error",
                "human": "GenomeBuild and chromosome must be both contained if either one of them is contained",
                "expression": "(chromosome.empty() and genomeBuild.empty()) or (chromosome.exists() and genomeBuild.exists())",
                "xpath": "(exists(f:chromosome) and exists(f:genomeBuild)) or (not(exists(f:chromosome)) and not(exists(f:genomeBuild)))"
              },
              {
                "key": "msq-6",
                "severity": "error",
                "human": "Have and only have one of the following elements in referenceSeq : 1. genomeBuild ; 2 referenceSeqId; 3. referenceSeqPointer;  4. referenceSeqString;",
                "expression": "(genomeBuild.count()+referenceSeqId.count()+ referenceSeqPointer.count()+ referenceSeqString.count()) = 1",
                "xpath": "count(f:genomeBuild)+count(f:referenceSeqId)+count(f:referenceSeqPointer)+count(f:referenceSeqString)=1"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.id",
            "path": "MolecularSequence.referenceSeq.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.referenceSeq.extension",
            "path": "MolecularSequence.referenceSeq.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.referenceSeq.modifierExtension",
            "path": "MolecularSequence.referenceSeq.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.chromosome",
            "path": "MolecularSequence.referenceSeq.chromosome",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.referenceSeq.chromosome",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "chromosome-human"
                }
              ],
              "strength": "example",
              "description": "Chromosome number for human.",
              "valueSet": "http://hl7.org/fhir/ValueSet/chromosome-human"
            }
          },
          {
            "id": "MolecularSequence.referenceSeq.genomeBuild",
            "path": "MolecularSequence.referenceSeq.genomeBuild",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.referenceSeq.genomeBuild",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.orientation",
            "path": "MolecularSequence.referenceSeq.orientation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.referenceSeq.orientation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "orientationType"
                }
              ],
              "strength": "required",
              "description": "Type for orientation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/orientation-type|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.referenceSeq.referenceSeqId",
            "path": "MolecularSequence.referenceSeq.referenceSeqId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.referenceSeq.referenceSeqId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "sequenceReference"
                }
              ],
              "strength": "example",
              "description": "Reference identifier.",
              "valueSet": "http://hl7.org/fhir/ValueSet/sequence-referenceSeq"
            }
          },
          {
            "id": "MolecularSequence.referenceSeq.referenceSeqPointer",
            "path": "MolecularSequence.referenceSeq.referenceSeqPointer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.referenceSeq.referenceSeqPointer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.referenceSeqString",
            "path": "MolecularSequence.referenceSeq.referenceSeqString",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.referenceSeq.referenceSeqString",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.strand",
            "path": "MolecularSequence.referenceSeq.strand",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.referenceSeq.strand",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "strandType"
                }
              ],
              "strength": "required",
              "description": "Type for strand.",
              "valueSet": "http://hl7.org/fhir/ValueSet/strand-type|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.referenceSeq.windowStart",
            "path": "MolecularSequence.referenceSeq.windowStart",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.referenceSeq.windowStart",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.windowEnd",
            "path": "MolecularSequence.referenceSeq.windowEnd",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.referenceSeq.windowEnd",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant",
            "path": "MolecularSequence.variant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.variant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.id",
            "path": "MolecularSequence.variant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.variant.extension",
            "path": "MolecularSequence.variant.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.variant.modifierExtension",
            "path": "MolecularSequence.variant.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.start",
            "path": "MolecularSequence.variant.start",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.variant.start",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.end",
            "path": "MolecularSequence.variant.end",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.variant.end",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.observedAllele",
            "path": "MolecularSequence.variant.observedAllele",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.variant.observedAllele",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.referenceAllele",
            "path": "MolecularSequence.variant.referenceAllele",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.variant.referenceAllele",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.cigar",
            "path": "MolecularSequence.variant.cigar",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.variant.cigar",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.variantPointer",
            "path": "MolecularSequence.variant.variantPointer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.variant.variantPointer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.observedSeq",
            "path": "MolecularSequence.observedSeq",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.observedSeq",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality",
            "path": "MolecularSequence.quality",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.quality",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.id",
            "path": "MolecularSequence.quality.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.quality.extension",
            "path": "MolecularSequence.quality.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.quality.modifierExtension",
            "path": "MolecularSequence.quality.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.type",
            "path": "MolecularSequence.quality.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "qualityType"
                }
              ],
              "strength": "required",
              "description": "Type for quality report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/quality-type|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.quality.standardSequence",
            "path": "MolecularSequence.quality.standardSequence",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.standardSequence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "qualityStandardSequence"
                }
              ],
              "strength": "example",
              "description": "Reference identifier of the sequence that used to mark the quality of tested samples.",
              "valueSet": "http://hl7.org/fhir/ValueSet/sequence-quality-standardSequence"
            }
          },
          {
            "id": "MolecularSequence.quality.start",
            "path": "MolecularSequence.quality.start",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.start",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.end",
            "path": "MolecularSequence.quality.end",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.end",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.score",
            "path": "MolecularSequence.quality.score",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.score",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.method",
            "path": "MolecularSequence.quality.method",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.method",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "qualityMethod"
                }
              ],
              "strength": "example",
              "description": "The method used to evaluate the numerical quality of the observed sequence.",
              "valueSet": "http://hl7.org/fhir/ValueSet/sequence-quality-method"
            }
          },
          {
            "id": "MolecularSequence.quality.truthTP",
            "path": "MolecularSequence.quality.truthTP",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.truthTP",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.queryTP",
            "path": "MolecularSequence.quality.queryTP",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.queryTP",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.truthFN",
            "path": "MolecularSequence.quality.truthFN",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.truthFN",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.queryFP",
            "path": "MolecularSequence.quality.queryFP",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.queryFP",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.gtFP",
            "path": "MolecularSequence.quality.gtFP",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.gtFP",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.precision",
            "path": "MolecularSequence.quality.precision",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.precision",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.recall",
            "path": "MolecularSequence.quality.recall",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.recall",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.fScore",
            "path": "MolecularSequence.quality.fScore",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.fScore",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc",
            "path": "MolecularSequence.quality.roc",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.quality.roc",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.id",
            "path": "MolecularSequence.quality.roc.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.quality.roc.extension",
            "path": "MolecularSequence.quality.roc.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.quality.roc.modifierExtension",
            "path": "MolecularSequence.quality.roc.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.score",
            "path": "MolecularSequence.quality.roc.score",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.quality.roc.score",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.numTP",
            "path": "MolecularSequence.quality.roc.numTP",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.quality.roc.numTP",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.numFP",
            "path": "MolecularSequence.quality.roc.numFP",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.quality.roc.numFP",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.numFN",
            "path": "MolecularSequence.quality.roc.numFN",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.quality.roc.numFN",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.precision",
            "path": "MolecularSequence.quality.roc.precision",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.quality.roc.precision",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.sensitivity",
            "path": "MolecularSequence.quality.roc.sensitivity",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.quality.roc.sensitivity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.fMeasure",
            "path": "MolecularSequence.quality.roc.fMeasure",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.quality.roc.fMeasure",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.readCoverage",
            "path": "MolecularSequence.readCoverage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.readCoverage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository",
            "path": "MolecularSequence.repository",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.repository",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.id",
            "path": "MolecularSequence.repository.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.repository.extension",
            "path": "MolecularSequence.repository.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.repository.modifierExtension",
            "path": "MolecularSequence.repository.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.type",
            "path": "MolecularSequence.repository.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MolecularSequence.repository.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "repositoryType"
                }
              ],
              "strength": "required",
              "description": "Type for access of external URI.",
              "valueSet": "http://hl7.org/fhir/ValueSet/repository-type|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.repository.url",
            "path": "MolecularSequence.repository.url",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.repository.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.name",
            "path": "MolecularSequence.repository.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.repository.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.datasetId",
            "path": "MolecularSequence.repository.datasetId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.repository.datasetId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.variantsetId",
            "path": "MolecularSequence.repository.variantsetId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.repository.variantsetId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.readsetId",
            "path": "MolecularSequence.repository.readsetId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.repository.readsetId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.pointer",
            "path": "MolecularSequence.pointer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.pointer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant",
            "path": "MolecularSequence.structureVariant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MolecularSequence.structureVariant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.id",
            "path": "MolecularSequence.structureVariant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.structureVariant.extension",
            "path": "MolecularSequence.structureVariant.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.structureVariant.modifierExtension",
            "path": "MolecularSequence.structureVariant.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.variantType",
            "path": "MolecularSequence.structureVariant.variantType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.structureVariant.variantType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LOINC LL379-9 answerlist"
                }
              ],
              "strength": "required",
              "description": "DNA change type.",
              "valueSet": "http://loinc.org/vs/LL379-9|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.structureVariant.exact",
            "path": "MolecularSequence.structureVariant.exact",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.structureVariant.exact",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.length",
            "path": "MolecularSequence.structureVariant.length",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.structureVariant.length",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.outer",
            "path": "MolecularSequence.structureVariant.outer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.structureVariant.outer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.outer.id",
            "path": "MolecularSequence.structureVariant.outer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.structureVariant.outer.extension",
            "path": "MolecularSequence.structureVariant.outer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.structureVariant.outer.modifierExtension",
            "path": "MolecularSequence.structureVariant.outer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.outer.start",
            "path": "MolecularSequence.structureVariant.outer.start",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.structureVariant.outer.start",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.outer.end",
            "path": "MolecularSequence.structureVariant.outer.end",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.structureVariant.outer.end",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.inner",
            "path": "MolecularSequence.structureVariant.inner",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.structureVariant.inner",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.inner.id",
            "path": "MolecularSequence.structureVariant.inner.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.structureVariant.inner.extension",
            "path": "MolecularSequence.structureVariant.inner.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MolecularSequence.structureVariant.inner.modifierExtension",
            "path": "MolecularSequence.structureVariant.inner.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.inner.start",
            "path": "MolecularSequence.structureVariant.inner.start",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.structureVariant.inner.start",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.inner.end",
            "path": "MolecularSequence.structureVariant.inner.end",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MolecularSequence.structureVariant.inner.end",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MolecularSequence",
            "path": "MolecularSequence",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "msq-3",
                "severity": "error",
                "human": "Only 0 and 1 are valid for coordinateSystem",
                "expression": "coordinateSystem = 1 or coordinateSystem = 0",
                "xpath": "count(f:coordinateSystem[@value=0 and @value=1]) = 1"
              }
            ]
          },
          {
            "id": "MolecularSequence.identifier",
            "path": "MolecularSequence.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.type",
            "path": "MolecularSequence.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "sequenceType"
                }
              ],
              "strength": "required",
              "description": "Type if a sequence -- DNA, RNA, or amino acid sequence.",
              "valueSet": "http://hl7.org/fhir/ValueSet/sequence-type|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.coordinateSystem",
            "path": "MolecularSequence.coordinateSystem",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.patient",
            "path": "MolecularSequence.patient",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.specimen",
            "path": "MolecularSequence.specimen",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.device",
            "path": "MolecularSequence.device",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.performer",
            "path": "MolecularSequence.performer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quantity",
            "path": "MolecularSequence.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq",
            "path": "MolecularSequence.referenceSeq",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "msq-6",
                "severity": "error",
                "human": "Have and only have one of the following elements in referenceSeq : 1. genomeBuild ; 2 referenceSeqId; 3. referenceSeqPointer;  4. referenceSeqString;",
                "expression": "(genomeBuild.count()+referenceSeqId.count()+ referenceSeqPointer.count()+ referenceSeqString.count()) = 1",
                "xpath": "count(f:genomeBuild)+count(f:referenceSeqId)+count(f:referenceSeqPointer)+count(f:referenceSeqString)=1"
              },
              {
                "key": "msq-5",
                "severity": "error",
                "human": "GenomeBuild and chromosome must be both contained if either one of them is contained",
                "expression": "(chromosome.empty() and genomeBuild.empty()) or (chromosome.exists() and genomeBuild.exists())",
                "xpath": "(exists(f:chromosome) and exists(f:genomeBuild)) or (not(exists(f:chromosome)) and not(exists(f:genomeBuild)))"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.chromosome",
            "path": "MolecularSequence.referenceSeq.chromosome",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "chromosome-human"
                }
              ],
              "strength": "example",
              "description": "Chromosome number for human.",
              "valueSet": "http://hl7.org/fhir/ValueSet/chromosome-human"
            }
          },
          {
            "id": "MolecularSequence.referenceSeq.genomeBuild",
            "path": "MolecularSequence.referenceSeq.genomeBuild",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.orientation",
            "path": "MolecularSequence.referenceSeq.orientation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "orientationType"
                }
              ],
              "strength": "required",
              "description": "Type for orientation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/orientation-type|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.referenceSeq.referenceSeqId",
            "path": "MolecularSequence.referenceSeq.referenceSeqId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "sequenceReference"
                }
              ],
              "strength": "example",
              "description": "Reference identifier.",
              "valueSet": "http://hl7.org/fhir/ValueSet/sequence-referenceSeq"
            }
          },
          {
            "id": "MolecularSequence.referenceSeq.referenceSeqPointer",
            "path": "MolecularSequence.referenceSeq.referenceSeqPointer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.referenceSeqString",
            "path": "MolecularSequence.referenceSeq.referenceSeqString",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.strand",
            "path": "MolecularSequence.referenceSeq.strand",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "strandType"
                }
              ],
              "strength": "required",
              "description": "Type for strand.",
              "valueSet": "http://hl7.org/fhir/ValueSet/strand-type|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.referenceSeq.windowStart",
            "path": "MolecularSequence.referenceSeq.windowStart",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.referenceSeq.windowEnd",
            "path": "MolecularSequence.referenceSeq.windowEnd",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant",
            "path": "MolecularSequence.variant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.start",
            "path": "MolecularSequence.variant.start",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.end",
            "path": "MolecularSequence.variant.end",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.observedAllele",
            "path": "MolecularSequence.variant.observedAllele",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.referenceAllele",
            "path": "MolecularSequence.variant.referenceAllele",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.cigar",
            "path": "MolecularSequence.variant.cigar",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.variant.variantPointer",
            "path": "MolecularSequence.variant.variantPointer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.observedSeq",
            "path": "MolecularSequence.observedSeq",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality",
            "path": "MolecularSequence.quality",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.type",
            "path": "MolecularSequence.quality.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "qualityType"
                }
              ],
              "strength": "required",
              "description": "Type for quality report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/quality-type|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.quality.standardSequence",
            "path": "MolecularSequence.quality.standardSequence",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "qualityStandardSequence"
                }
              ],
              "strength": "example",
              "description": "Reference identifier of the sequence that used to mark the quality of tested samples.",
              "valueSet": "http://hl7.org/fhir/ValueSet/sequence-quality-standardSequence"
            }
          },
          {
            "id": "MolecularSequence.quality.start",
            "path": "MolecularSequence.quality.start",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.end",
            "path": "MolecularSequence.quality.end",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.score",
            "path": "MolecularSequence.quality.score",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.method",
            "path": "MolecularSequence.quality.method",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "qualityMethod"
                }
              ],
              "strength": "example",
              "description": "The method used to evaluate the numerical quality of the observed sequence.",
              "valueSet": "http://hl7.org/fhir/ValueSet/sequence-quality-method"
            }
          },
          {
            "id": "MolecularSequence.quality.truthTP",
            "path": "MolecularSequence.quality.truthTP",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.queryTP",
            "path": "MolecularSequence.quality.queryTP",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.truthFN",
            "path": "MolecularSequence.quality.truthFN",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.queryFP",
            "path": "MolecularSequence.quality.queryFP",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.gtFP",
            "path": "MolecularSequence.quality.gtFP",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.precision",
            "path": "MolecularSequence.quality.precision",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.recall",
            "path": "MolecularSequence.quality.recall",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.fScore",
            "path": "MolecularSequence.quality.fScore",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc",
            "path": "MolecularSequence.quality.roc",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.score",
            "path": "MolecularSequence.quality.roc.score",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.numTP",
            "path": "MolecularSequence.quality.roc.numTP",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.numFP",
            "path": "MolecularSequence.quality.roc.numFP",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.numFN",
            "path": "MolecularSequence.quality.roc.numFN",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.precision",
            "path": "MolecularSequence.quality.roc.precision",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.sensitivity",
            "path": "MolecularSequence.quality.roc.sensitivity",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.quality.roc.fMeasure",
            "path": "MolecularSequence.quality.roc.fMeasure",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.readCoverage",
            "path": "MolecularSequence.readCoverage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository",
            "path": "MolecularSequence.repository",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.type",
            "path": "MolecularSequence.repository.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "repositoryType"
                }
              ],
              "strength": "required",
              "description": "Type for access of external URI.",
              "valueSet": "http://hl7.org/fhir/ValueSet/repository-type|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.repository.url",
            "path": "MolecularSequence.repository.url",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.name",
            "path": "MolecularSequence.repository.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.datasetId",
            "path": "MolecularSequence.repository.datasetId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.variantsetId",
            "path": "MolecularSequence.repository.variantsetId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.repository.readsetId",
            "path": "MolecularSequence.repository.readsetId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.pointer",
            "path": "MolecularSequence.pointer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant",
            "path": "MolecularSequence.structureVariant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.variantType",
            "path": "MolecularSequence.structureVariant.variantType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LOINC LL379-9 answerlist"
                }
              ],
              "strength": "required",
              "description": "DNA change type.",
              "valueSet": "http://loinc.org/vs/LL379-9|4.0.1"
            }
          },
          {
            "id": "MolecularSequence.structureVariant.exact",
            "path": "MolecularSequence.structureVariant.exact",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.length",
            "path": "MolecularSequence.structureVariant.length",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.outer",
            "path": "MolecularSequence.structureVariant.outer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.outer.start",
            "path": "MolecularSequence.structureVariant.outer.start",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.outer.end",
            "path": "MolecularSequence.structureVariant.outer.end",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.inner",
            "path": "MolecularSequence.structureVariant.inner",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.inner.start",
            "path": "MolecularSequence.structureVariant.inner.start",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MolecularSequence.structureVariant.inner.end",
            "path": "MolecularSequence.structureVariant.inner.end",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/NamingSystem",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "NamingSystem",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Terminology"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/NamingSystem",
      "version": "4.0.1",
      "name": "NamingSystem",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "NamingSystem",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "NamingSystem",
            "path": "NamingSystem",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NamingSystem",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "nsd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "nsd-1",
                "severity": "error",
                "human": "Root systems cannot have uuid identifiers",
                "expression": "kind != 'root' or uniqueId.all(type != 'uuid')",
                "xpath": "not(f:kind/@value='root' and f:uniqueId/f:type/@value='uuid')"
              },
              {
                "key": "nsd-2",
                "severity": "error",
                "human": "Can't have more than one preferred identifier for a type",
                "expression": "uniqueId.where(preferred = true).select(type).isDistinct()",
                "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 ()))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.id",
            "path": "NamingSystem.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NamingSystem.meta",
            "path": "NamingSystem.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NamingSystem.implicitRules",
            "path": "NamingSystem.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "NamingSystem.language",
            "path": "NamingSystem.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "NamingSystem.text",
            "path": "NamingSystem.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.contained",
            "path": "NamingSystem.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.extension",
            "path": "NamingSystem.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.modifierExtension",
            "path": "NamingSystem.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "NamingSystem.name",
            "path": "NamingSystem.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.The\"symbolic name\" for an OID would be captured as an extension.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "NamingSystem.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NamingSystem.status",
            "path": "NamingSystem.status",
            "comment": "Allows filtering of naming systems that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "NamingSystem.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "NamingSystem.kind",
            "path": "NamingSystem.kind",
            "min": 1,
            "max": "1",
            "base": {
              "path": "NamingSystem.kind",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NamingSystemType"
                }
              ],
              "strength": "required",
              "description": "Identifies the purpose of the naming system.",
              "valueSet": "http://hl7.org/fhir/ValueSet/namingsystem-type|4.0.1"
            }
          },
          {
            "id": "NamingSystem.date",
            "path": "NamingSystem.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the naming system. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "NamingSystem.date",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NamingSystem.publisher",
            "path": "NamingSystem.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the naming system is the organization or individual primarily responsible for the maintenance and upkeep of the naming system. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the naming system. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NamingSystem.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NamingSystem.contact",
            "path": "NamingSystem.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NamingSystem.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NamingSystem.responsible",
            "path": "NamingSystem.responsible",
            "comment": "This is the primary organization.  Responsibility for some aspects of a namespace may be delegated.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NamingSystem.responsible",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.type",
            "path": "NamingSystem.type",
            "comment": "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",
            "base": {
              "path": "NamingSystem.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IdentifierType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
              "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
            }
          },
          {
            "id": "NamingSystem.description",
            "path": "NamingSystem.description",
            "comment": "This description can be used to capture details such as why the naming system was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the naming system as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the naming system is presumed to be the predominant language in the place the naming system was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NamingSystem.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.useContext",
            "path": "NamingSystem.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NamingSystem.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NamingSystem.jurisdiction",
            "path": "NamingSystem.jurisdiction",
            "comment": "It may be possible for the naming system to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NamingSystem.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "NamingSystem.usage",
            "path": "NamingSystem.usage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NamingSystem.usage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.uniqueId",
            "path": "NamingSystem.uniqueId",
            "comment": "Multiple identifiers may exist, either due to duplicate registration, regional rules, needs of different communication technologies, etc.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "NamingSystem.uniqueId",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NamingSystem.uniqueId.id",
            "path": "NamingSystem.uniqueId.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.uniqueId.extension",
            "path": "NamingSystem.uniqueId.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.uniqueId.modifierExtension",
            "path": "NamingSystem.uniqueId.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "NamingSystem.uniqueId.type",
            "path": "NamingSystem.uniqueId.type",
            "comment": "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",
            "base": {
              "path": "NamingSystem.uniqueId.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NamingSystemIdentifierType"
                }
              ],
              "strength": "required",
              "description": "Identifies the style of unique identifier used to identify a namespace.",
              "valueSet": "http://hl7.org/fhir/ValueSet/namingsystem-identifier-type|4.0.1"
            }
          },
          {
            "id": "NamingSystem.uniqueId.value",
            "path": "NamingSystem.uniqueId.value",
            "comment": "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",
            "base": {
              "path": "NamingSystem.uniqueId.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NamingSystem.uniqueId.preferred",
            "path": "NamingSystem.uniqueId.preferred",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NamingSystem.uniqueId.preferred",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If there are multiple ids, and one is labeled \"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",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.uniqueId.comment",
            "path": "NamingSystem.uniqueId.comment",
            "comment": "e.g. \"must be used in Germany\" or \"was initially published in error with this value\".",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NamingSystem.uniqueId.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NamingSystem.uniqueId.period",
            "path": "NamingSystem.uniqueId.period",
            "comment": "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",
            "base": {
              "path": "NamingSystem.uniqueId.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "NamingSystem",
            "path": "NamingSystem",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "nsd-1",
                "severity": "error",
                "human": "Root systems cannot have uuid identifiers",
                "expression": "kind != 'root' or uniqueId.all(type != 'uuid')",
                "xpath": "not(f:kind/@value='root' and f:uniqueId/f:type/@value='uuid')"
              },
              {
                "key": "nsd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "nsd-2",
                "severity": "error",
                "human": "Can't have more than one preferred identifier for a type",
                "expression": "uniqueId.where(preferred = true).select(type).isDistinct()",
                "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 ()))"
              }
            ]
          },
          {
            "id": "NamingSystem.name",
            "path": "NamingSystem.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.The\"symbolic name\" for an OID would be captured as an extension.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "NamingSystem.status",
            "path": "NamingSystem.status",
            "comment": "Allows filtering of naming systems that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "NamingSystem.kind",
            "path": "NamingSystem.kind",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NamingSystemType"
                }
              ],
              "strength": "required",
              "description": "Identifies the purpose of the naming system.",
              "valueSet": "http://hl7.org/fhir/ValueSet/namingsystem-type|4.0.1"
            }
          },
          {
            "id": "NamingSystem.date",
            "path": "NamingSystem.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the naming system. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "NamingSystem.publisher",
            "path": "NamingSystem.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the naming system is the organization or individual primarily responsible for the maintenance and upkeep of the naming system. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the naming system. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "NamingSystem.contact",
            "path": "NamingSystem.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "NamingSystem.responsible",
            "path": "NamingSystem.responsible",
            "comment": "This is the primary organization.  Responsibility for some aspects of a namespace may be delegated.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "NamingSystem.type",
            "path": "NamingSystem.type",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IdentifierType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
              "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
            }
          },
          {
            "id": "NamingSystem.description",
            "path": "NamingSystem.description",
            "comment": "This description can be used to capture details such as why the naming system was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the naming system as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the naming system is presumed to be the predominant language in the place the naming system was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "NamingSystem.useContext",
            "path": "NamingSystem.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "NamingSystem.jurisdiction",
            "path": "NamingSystem.jurisdiction",
            "comment": "It may be possible for the naming system to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "NamingSystem.usage",
            "path": "NamingSystem.usage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "NamingSystem.uniqueId",
            "path": "NamingSystem.uniqueId",
            "comment": "Multiple identifiers may exist, either due to duplicate registration, regional rules, needs of different communication technologies, etc.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "NamingSystem.uniqueId.type",
            "path": "NamingSystem.uniqueId.type",
            "comment": "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"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NamingSystemIdentifierType"
                }
              ],
              "strength": "required",
              "description": "Identifies the style of unique identifier used to identify a namespace.",
              "valueSet": "http://hl7.org/fhir/ValueSet/namingsystem-identifier-type|4.0.1"
            }
          },
          {
            "id": "NamingSystem.uniqueId.value",
            "path": "NamingSystem.uniqueId.value",
            "comment": "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"
              }
            ],
            "isSummary": true
          },
          {
            "id": "NamingSystem.uniqueId.preferred",
            "path": "NamingSystem.uniqueId.preferred",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If there are multiple ids, and one is labeled \"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"
          },
          {
            "id": "NamingSystem.uniqueId.comment",
            "path": "NamingSystem.uniqueId.comment",
            "comment": "e.g. \"must be used in Germany\" or \"was initially published in error with this value\".",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "NamingSystem.uniqueId.period",
            "path": "NamingSystem.uniqueId.period",
            "comment": "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"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "NutritionOrder",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Care Provision"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
      "version": "4.0.1",
      "name": "NutritionOrder",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "NutritionOrder",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "NutritionOrder",
            "path": "NutritionOrder",
            "comment": "Referenced by an Order Request (workflow).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "nor-1",
                "severity": "warning",
                "human": "Nutrition Order SHALL contain either Oral Diet , Supplement, or Enteral Formula class",
                "expression": "oralDiet.exists() or supplement.exists() or enteralFormula.exists()",
                "xpath": "exists(f:oralDiet) or exists(f:supplement) or exists(f:enteralFormula)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.id",
            "path": "NutritionOrder.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NutritionOrder.meta",
            "path": "NutritionOrder.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NutritionOrder.implicitRules",
            "path": "NutritionOrder.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "NutritionOrder.language",
            "path": "NutritionOrder.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "NutritionOrder.text",
            "path": "NutritionOrder.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.contained",
            "path": "NutritionOrder.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.extension",
            "path": "NutritionOrder.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.modifierExtension",
            "path": "NutritionOrder.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "NutritionOrder.identifier",
            "path": "NutritionOrder.identifier",
            "comment": "The Identifier.type element can be to indicate filler vs. placer if needed.  This is explained in further detail [here](servicerequest.html#notes).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.instantiatesCanonical",
            "path": "NutritionOrder.instantiatesCanonical",
            "comment": "Note: This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.instantiatesCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NutritionOrder.instantiatesUri",
            "path": "NutritionOrder.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.instantiatesUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NutritionOrder.instantiates",
            "path": "NutritionOrder.instantiates",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.instantiates",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.status",
            "path": "NutritionOrder.status",
            "comment": "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.  This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "NutritionOrder.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NutritionOrderStatus"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the lifecycle stage of the nutrition order.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "NutritionOrder.intent",
            "path": "NutritionOrder.intent",
            "comment": "When resources map to this element, they are free to define as many codes as necessary to cover their space and will map to \"proposal, plan or order\".  Can have multiple codes that map to one of these.  E.g. \"original order\", \"encoded order\", \"reflex order\" would all map to \"order\".  Expectation is that the set of codes is mutually exclusive or a strict all-encompassing hierarchy.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "NutritionOrder.intent",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NutritiionOrderIntent"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the degree of authority/intentionality associated with a nutrition order.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
            }
          },
          {
            "id": "NutritionOrder.patient",
            "path": "NutritionOrder.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "NutritionOrder.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NutritionOrder.encounter",
            "path": "NutritionOrder.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.dateTime",
            "path": "NutritionOrder.dateTime",
            "min": 1,
            "max": "1",
            "base": {
              "path": "NutritionOrder.dateTime",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NutritionOrder.orderer",
            "path": "NutritionOrder.orderer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.orderer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NutritionOrder.allergyIntolerance",
            "path": "NutritionOrder.allergyIntolerance",
            "comment": "Information on a patient's food allergies and intolerances to inform healthcare personnel about the type of foods that the patient shouldn't receive or consume.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.allergyIntolerance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.foodPreferenceModifier",
            "path": "NutritionOrder.foodPreferenceModifier",
            "comment": "Information on a patient's food preferences that inform healthcare personnel about the food that the patient should receive or consume.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.foodPreferenceModifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PatientDiet"
                }
              ],
              "strength": "example",
              "description": "Medical, cultural or ethical food preferences to help with catering requirements.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-diet"
            }
          },
          {
            "id": "NutritionOrder.excludeFoodModifier",
            "path": "NutritionOrder.excludeFoodModifier",
            "comment": "Information on a patient's food allergies, intolerances and preferences to inform healthcare personnel about the type  of foods that the patient shouldn't receive or consume.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.excludeFoodModifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FoodType"
                }
              ],
              "strength": "example",
              "description": "Codes used to indicate the type of food that should NOT be given to the patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/food-type"
            }
          },
          {
            "id": "NutritionOrder.oralDiet",
            "path": "NutritionOrder.oralDiet",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.oralDiet",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "nor-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.id",
            "path": "NutritionOrder.oralDiet.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.extension",
            "path": "NutritionOrder.oralDiet.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.modifierExtension",
            "path": "NutritionOrder.oralDiet.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "NutritionOrder.oralDiet.type",
            "path": "NutritionOrder.oralDiet.type",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.oralDiet.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OralDiet"
                }
              ],
              "strength": "example",
              "description": "Codes used to indicate the type of diet being ordered for a patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/diet-type"
            }
          },
          {
            "id": "NutritionOrder.oralDiet.schedule",
            "path": "NutritionOrder.oralDiet.schedule",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.oralDiet.schedule",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.nutrient",
            "path": "NutritionOrder.oralDiet.nutrient",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.oralDiet.nutrient",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.nutrient.id",
            "path": "NutritionOrder.oralDiet.nutrient.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.nutrient.extension",
            "path": "NutritionOrder.oralDiet.nutrient.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.nutrient.modifierExtension",
            "path": "NutritionOrder.oralDiet.nutrient.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "NutritionOrder.oralDiet.nutrient.modifier",
            "path": "NutritionOrder.oralDiet.nutrient.modifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.oralDiet.nutrient.modifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NutrientModifier"
                }
              ],
              "strength": "example",
              "description": "Codes for types of nutrients that are being modified such as carbohydrate or sodium.",
              "valueSet": "http://hl7.org/fhir/ValueSet/nutrient-code"
            }
          },
          {
            "id": "NutritionOrder.oralDiet.nutrient.amount",
            "path": "NutritionOrder.oralDiet.nutrient.amount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.oralDiet.nutrient.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.texture",
            "path": "NutritionOrder.oralDiet.texture",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.oralDiet.texture",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.texture.id",
            "path": "NutritionOrder.oralDiet.texture.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.texture.extension",
            "path": "NutritionOrder.oralDiet.texture.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.oralDiet.texture.modifierExtension",
            "path": "NutritionOrder.oralDiet.texture.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "NutritionOrder.oralDiet.texture.modifier",
            "path": "NutritionOrder.oralDiet.texture.modifier",
            "comment": "Coupled with the foodType (Meat).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.oralDiet.texture.modifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TextureModifier"
                }
              ],
              "strength": "example",
              "description": "Codes for food consistency types or texture modifications to apply to foods.",
              "valueSet": "http://hl7.org/fhir/ValueSet/texture-code"
            }
          },
          {
            "id": "NutritionOrder.oralDiet.texture.foodType",
            "path": "NutritionOrder.oralDiet.texture.foodType",
            "comment": "Coupled with the `texture.modifier`; could be (All Foods).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.oralDiet.texture.foodType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TextureModifiedFoodType"
                }
              ],
              "strength": "example",
              "description": "Codes for types of foods that are texture-modified.",
              "valueSet": "http://hl7.org/fhir/ValueSet/modified-foodtype"
            }
          },
          {
            "id": "NutritionOrder.oralDiet.fluidConsistencyType",
            "path": "NutritionOrder.oralDiet.fluidConsistencyType",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.oralDiet.fluidConsistencyType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FluidConsistencyType"
                }
              ],
              "strength": "example",
              "description": "Codes used to represent the consistency of fluids and liquids provided to the patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consistency-type"
            }
          },
          {
            "id": "NutritionOrder.oralDiet.instruction",
            "path": "NutritionOrder.oralDiet.instruction",
            "comment": "Free text dosage instructions can be used for cases where the instructions are too complex to code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.oralDiet.instruction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NutritionOrder.supplement",
            "path": "NutritionOrder.supplement",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.supplement",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "nor-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.supplement.id",
            "path": "NutritionOrder.supplement.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.supplement.extension",
            "path": "NutritionOrder.supplement.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.supplement.modifierExtension",
            "path": "NutritionOrder.supplement.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "NutritionOrder.supplement.type",
            "path": "NutritionOrder.supplement.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.supplement.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplementType"
                }
              ],
              "strength": "example",
              "description": "Codes for nutritional supplements to be provided to the patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplement-type"
            }
          },
          {
            "id": "NutritionOrder.supplement.productName",
            "path": "NutritionOrder.supplement.productName",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.supplement.productName",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.supplement.schedule",
            "path": "NutritionOrder.supplement.schedule",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.supplement.schedule",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.supplement.quantity",
            "path": "NutritionOrder.supplement.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.supplement.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.supplement.instruction",
            "path": "NutritionOrder.supplement.instruction",
            "comment": "Free text dosage instructions can be used for cases where the instructions are too complex to code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.supplement.instruction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NutritionOrder.enteralFormula",
            "path": "NutritionOrder.enteralFormula",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "nor-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.id",
            "path": "NutritionOrder.enteralFormula.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.extension",
            "path": "NutritionOrder.enteralFormula.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.modifierExtension",
            "path": "NutritionOrder.enteralFormula.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "NutritionOrder.enteralFormula.baseFormulaType",
            "path": "NutritionOrder.enteralFormula.baseFormulaType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula.baseFormulaType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnteralFormulaType"
                }
              ],
              "strength": "example",
              "description": "Codes for type of enteral formula to be administered to patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/entformula-type"
            }
          },
          {
            "id": "NutritionOrder.enteralFormula.baseFormulaProductName",
            "path": "NutritionOrder.enteralFormula.baseFormulaProductName",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula.baseFormulaProductName",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.additiveType",
            "path": "NutritionOrder.enteralFormula.additiveType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula.additiveType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnteralFormulaAdditiveType"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/entformula-additive"
            }
          },
          {
            "id": "NutritionOrder.enteralFormula.additiveProductName",
            "path": "NutritionOrder.enteralFormula.additiveProductName",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula.additiveProductName",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.caloricDensity",
            "path": "NutritionOrder.enteralFormula.caloricDensity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula.caloricDensity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.routeofAdministration",
            "path": "NutritionOrder.enteralFormula.routeofAdministration",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula.routeofAdministration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnteralRouteOfAdministration"
                }
              ],
              "strength": "extensible",
              "description": "Codes specifying the route of administration of enteral formula.",
              "valueSet": "http://hl7.org/fhir/ValueSet/enteral-route"
            }
          },
          {
            "id": "NutritionOrder.enteralFormula.administration",
            "path": "NutritionOrder.enteralFormula.administration",
            "comment": "See implementation notes below for further discussion on how to order continuous vs bolus enteral feeding using this resource.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.enteralFormula.administration",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.administration.id",
            "path": "NutritionOrder.enteralFormula.administration.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.administration.extension",
            "path": "NutritionOrder.enteralFormula.administration.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.administration.modifierExtension",
            "path": "NutritionOrder.enteralFormula.administration.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "NutritionOrder.enteralFormula.administration.schedule",
            "path": "NutritionOrder.enteralFormula.administration.schedule",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula.administration.schedule",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.administration.quantity",
            "path": "NutritionOrder.enteralFormula.administration.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula.administration.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.administration.rate[x]",
            "path": "NutritionOrder.enteralFormula.administration.rate[x]",
            "comment": "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",
            "base": {
              "path": "NutritionOrder.enteralFormula.administration.rate[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              },
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.maxVolumeToDeliver",
            "path": "NutritionOrder.enteralFormula.maxVolumeToDeliver",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula.maxVolumeToDeliver",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "NutritionOrder.enteralFormula.administrationInstruction",
            "path": "NutritionOrder.enteralFormula.administrationInstruction",
            "comment": "Free text dosage instructions can be used for cases where the instructions are too complex to code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "NutritionOrder.enteralFormula.administrationInstruction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "NutritionOrder.note",
            "path": "NutritionOrder.note",
            "comment": "This element SHALL NOT be used to supply free text instructions for the diet which are represented in the `.oralDiet.instruction`, `supplement.instruction`, or `enteralFormula.administrationInstruction` elements.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "NutritionOrder.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "NutritionOrder",
            "path": "NutritionOrder",
            "comment": "Referenced by an Order Request (workflow).",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "nor-1",
                "severity": "warning",
                "human": "Nutrition Order SHALL contain either Oral Diet , Supplement, or Enteral Formula class",
                "expression": "oralDiet.exists() or supplement.exists() or enteralFormula.exists()",
                "xpath": "exists(f:oralDiet) or exists(f:supplement) or exists(f:enteralFormula)"
              }
            ]
          },
          {
            "id": "NutritionOrder.identifier",
            "path": "NutritionOrder.identifier",
            "comment": "The Identifier.type element can be to indicate filler vs. placer if needed.  This is explained in further detail [here](servicerequest.html#notes).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "NutritionOrder.instantiatesCanonical",
            "path": "NutritionOrder.instantiatesCanonical",
            "comment": "Note: This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "NutritionOrder.instantiatesUri",
            "path": "NutritionOrder.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "NutritionOrder.instantiates",
            "path": "NutritionOrder.instantiates",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "NutritionOrder.status",
            "path": "NutritionOrder.status",
            "comment": "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.  This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NutritionOrderStatus"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the lifecycle stage of the nutrition order.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "NutritionOrder.intent",
            "path": "NutritionOrder.intent",
            "comment": "When resources map to this element, they are free to define as many codes as necessary to cover their space and will map to \"proposal, plan or order\".  Can have multiple codes that map to one of these.  E.g. \"original order\", \"encoded order\", \"reflex order\" would all map to \"order\".  Expectation is that the set of codes is mutually exclusive or a strict all-encompassing hierarchy.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NutritiionOrderIntent"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the degree of authority/intentionality associated with a nutrition order.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
            }
          },
          {
            "id": "NutritionOrder.patient",
            "path": "NutritionOrder.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "NutritionOrder.encounter",
            "path": "NutritionOrder.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          },
          {
            "id": "NutritionOrder.dateTime",
            "path": "NutritionOrder.dateTime",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "NutritionOrder.orderer",
            "path": "NutritionOrder.orderer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "NutritionOrder.allergyIntolerance",
            "path": "NutritionOrder.allergyIntolerance",
            "comment": "Information on a patient's food allergies and intolerances to inform healthcare personnel about the type of foods that the patient shouldn't receive or consume.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
                ]
              }
            ]
          },
          {
            "id": "NutritionOrder.foodPreferenceModifier",
            "path": "NutritionOrder.foodPreferenceModifier",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PatientDiet"
                }
              ],
              "strength": "example",
              "description": "Medical, cultural or ethical food preferences to help with catering requirements.",
              "valueSet": "http://hl7.org/fhir/ValueSet/encounter-diet"
            }
          },
          {
            "id": "NutritionOrder.excludeFoodModifier",
            "path": "NutritionOrder.excludeFoodModifier",
            "comment": "Information on a patient's food allergies, intolerances and preferences to inform healthcare personnel about the type  of foods that the patient shouldn't receive or consume.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FoodType"
                }
              ],
              "strength": "example",
              "description": "Codes used to indicate the type of food that should NOT be given to the patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/food-type"
            }
          },
          {
            "id": "NutritionOrder.oralDiet",
            "path": "NutritionOrder.oralDiet",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "nor-1"
            ]
          },
          {
            "id": "NutritionOrder.oralDiet.type",
            "path": "NutritionOrder.oralDiet.type",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OralDiet"
                }
              ],
              "strength": "example",
              "description": "Codes used to indicate the type of diet being ordered for a patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/diet-type"
            }
          },
          {
            "id": "NutritionOrder.oralDiet.schedule",
            "path": "NutritionOrder.oralDiet.schedule",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Timing"
              }
            ]
          },
          {
            "id": "NutritionOrder.oralDiet.nutrient",
            "path": "NutritionOrder.oralDiet.nutrient",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "NutritionOrder.oralDiet.nutrient.modifier",
            "path": "NutritionOrder.oralDiet.nutrient.modifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NutrientModifier"
                }
              ],
              "strength": "example",
              "description": "Codes for types of nutrients that are being modified such as carbohydrate or sodium.",
              "valueSet": "http://hl7.org/fhir/ValueSet/nutrient-code"
            }
          },
          {
            "id": "NutritionOrder.oralDiet.nutrient.amount",
            "path": "NutritionOrder.oralDiet.nutrient.amount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "NutritionOrder.oralDiet.texture",
            "path": "NutritionOrder.oralDiet.texture",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "NutritionOrder.oralDiet.texture.modifier",
            "path": "NutritionOrder.oralDiet.texture.modifier",
            "comment": "Coupled with the foodType (Meat).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TextureModifier"
                }
              ],
              "strength": "example",
              "description": "Codes for food consistency types or texture modifications to apply to foods.",
              "valueSet": "http://hl7.org/fhir/ValueSet/texture-code"
            }
          },
          {
            "id": "NutritionOrder.oralDiet.texture.foodType",
            "path": "NutritionOrder.oralDiet.texture.foodType",
            "comment": "Coupled with the `texture.modifier`; could be (All Foods).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TextureModifiedFoodType"
                }
              ],
              "strength": "example",
              "description": "Codes for types of foods that are texture-modified.",
              "valueSet": "http://hl7.org/fhir/ValueSet/modified-foodtype"
            }
          },
          {
            "id": "NutritionOrder.oralDiet.fluidConsistencyType",
            "path": "NutritionOrder.oralDiet.fluidConsistencyType",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FluidConsistencyType"
                }
              ],
              "strength": "example",
              "description": "Codes used to represent the consistency of fluids and liquids provided to the patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/consistency-type"
            }
          },
          {
            "id": "NutritionOrder.oralDiet.instruction",
            "path": "NutritionOrder.oralDiet.instruction",
            "comment": "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
          },
          {
            "id": "NutritionOrder.supplement",
            "path": "NutritionOrder.supplement",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "nor-1"
            ]
          },
          {
            "id": "NutritionOrder.supplement.type",
            "path": "NutritionOrder.supplement.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplementType"
                }
              ],
              "strength": "example",
              "description": "Codes for nutritional supplements to be provided to the patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplement-type"
            }
          },
          {
            "id": "NutritionOrder.supplement.productName",
            "path": "NutritionOrder.supplement.productName",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "NutritionOrder.supplement.schedule",
            "path": "NutritionOrder.supplement.schedule",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Timing"
              }
            ]
          },
          {
            "id": "NutritionOrder.supplement.quantity",
            "path": "NutritionOrder.supplement.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "NutritionOrder.supplement.instruction",
            "path": "NutritionOrder.supplement.instruction",
            "comment": "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
          },
          {
            "id": "NutritionOrder.enteralFormula",
            "path": "NutritionOrder.enteralFormula",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "nor-1"
            ]
          },
          {
            "id": "NutritionOrder.enteralFormula.baseFormulaType",
            "path": "NutritionOrder.enteralFormula.baseFormulaType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnteralFormulaType"
                }
              ],
              "strength": "example",
              "description": "Codes for type of enteral formula to be administered to patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/entformula-type"
            }
          },
          {
            "id": "NutritionOrder.enteralFormula.baseFormulaProductName",
            "path": "NutritionOrder.enteralFormula.baseFormulaProductName",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "NutritionOrder.enteralFormula.additiveType",
            "path": "NutritionOrder.enteralFormula.additiveType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnteralFormulaAdditiveType"
                }
              ],
              "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.",
              "valueSet": "http://hl7.org/fhir/ValueSet/entformula-additive"
            }
          },
          {
            "id": "NutritionOrder.enteralFormula.additiveProductName",
            "path": "NutritionOrder.enteralFormula.additiveProductName",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "NutritionOrder.enteralFormula.caloricDensity",
            "path": "NutritionOrder.enteralFormula.caloricDensity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "NutritionOrder.enteralFormula.routeofAdministration",
            "path": "NutritionOrder.enteralFormula.routeofAdministration",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnteralRouteOfAdministration"
                }
              ],
              "strength": "extensible",
              "description": "Codes specifying the route of administration of enteral formula.",
              "valueSet": "http://hl7.org/fhir/ValueSet/enteral-route"
            }
          },
          {
            "id": "NutritionOrder.enteralFormula.administration",
            "path": "NutritionOrder.enteralFormula.administration",
            "comment": "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"
              }
            ]
          },
          {
            "id": "NutritionOrder.enteralFormula.administration.schedule",
            "path": "NutritionOrder.enteralFormula.administration.schedule",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Timing"
              }
            ]
          },
          {
            "id": "NutritionOrder.enteralFormula.administration.quantity",
            "path": "NutritionOrder.enteralFormula.administration.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "NutritionOrder.enteralFormula.administration.rate[x]",
            "path": "NutritionOrder.enteralFormula.administration.rate[x]",
            "comment": "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"
              }
            ]
          },
          {
            "id": "NutritionOrder.enteralFormula.maxVolumeToDeliver",
            "path": "NutritionOrder.enteralFormula.maxVolumeToDeliver",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "NutritionOrder.enteralFormula.administrationInstruction",
            "path": "NutritionOrder.enteralFormula.administrationInstruction",
            "comment": "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
          },
          {
            "id": "NutritionOrder.note",
            "path": "NutritionOrder.note",
            "comment": "This element SHALL NOT be used to supply free text instructions for the diet which are represented in the `.oralDiet.instruction`, `supplement.instruction`, or `enteralFormula.administrationInstruction` elements.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Observation",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Observation",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Diagnostics"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Observation",
      "version": "4.0.1",
      "name": "Observation",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Observations are a key aspect of healthcare.  This resource is used to capture those that do not require more sophisticated mechanisms.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Observation",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Observation",
            "path": "Observation",
            "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "obs-6",
                "severity": "error",
                "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
                "expression": "dataAbsentReason.empty() or value.empty()",
                "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))"
              },
              {
                "key": "obs-7",
                "severity": "error",
                "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
                "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
                "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.id",
            "path": "Observation.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.meta",
            "path": "Observation.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.implicitRules",
            "path": "Observation.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Observation.language",
            "path": "Observation.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Observation.text",
            "path": "Observation.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.contained",
            "path": "Observation.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.extension",
            "path": "Observation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.modifierExtension",
            "path": "Observation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Observation.identifier",
            "path": "Observation.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.basedOn",
            "path": "Observation.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.partOf",
            "path": "Observation.partOf",
            "comment": "To link an Observation to an Encounter use `encounter`.  See the  [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
                  "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
                  "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Immunization",
                  "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.status",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "default: final"
              }
            ],
            "path": "Observation.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Observation.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationStatus"
                }
              ],
              "strength": "required",
              "description": "Codes providing the status of an observation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
            }
          },
          {
            "id": "Observation.category",
            "path": "Observation.category",
            "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationCategory"
                }
              ],
              "strength": "preferred",
              "description": "Codes for high level observation categories.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
            }
          },
          {
            "id": "Observation.code",
            "path": "Observation.code",
            "comment": "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Observation.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationCode"
                }
              ],
              "strength": "example",
              "description": "Codes identifying names of simple observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
            }
          },
          {
            "id": "Observation.subject",
            "path": "Observation.subject",
            "comment": "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.focus",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "Observation.focus",
            "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.focus",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.encounter",
            "path": "Observation.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.effective[x]",
            "path": "Observation.effective[x]",
            "comment": "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.effective[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              },
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.issued",
            "path": "Observation.issued",
            "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.issued",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.performer",
            "path": "Observation.performer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.value[x]",
            "path": "Observation.value[x]",
            "comment": "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](observation.html#notes) below.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.value[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "string"
              },
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "time"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "condition": [
              "obs-7"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.dataAbsentReason",
            "path": "Observation.dataAbsentReason",
            "comment": "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.dataAbsentReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "obs-6"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationValueAbsentReason"
                }
              ],
              "strength": "extensible",
              "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
            }
          },
          {
            "id": "Observation.interpretation",
            "path": "Observation.interpretation",
            "comment": "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.interpretation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationInterpretation"
                }
              ],
              "strength": "extensible",
              "description": "Codes identifying interpretations of observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
            }
          },
          {
            "id": "Observation.note",
            "path": "Observation.note",
            "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.bodySite",
            "path": "Observation.bodySite",
            "comment": "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.bodySite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "Observation.method",
            "path": "Observation.method",
            "comment": "Only used if not implicit in code for Observation.code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.method",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationMethod"
                }
              ],
              "strength": "example",
              "description": "Methods for simple observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
            }
          },
          {
            "id": "Observation.specimen",
            "path": "Observation.specimen",
            "comment": "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.specimen",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.device",
            "path": "Observation.device",
            "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.device",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.referenceRange",
            "path": "Observation.referenceRange",
            "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.referenceRange",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "obs-3",
                "severity": "error",
                "human": "Must have at least a low or a high or text",
                "expression": "low.exists() or high.exists() or text.exists()",
                "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.referenceRange.id",
            "path": "Observation.referenceRange.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.referenceRange.extension",
            "path": "Observation.referenceRange.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.referenceRange.modifierExtension",
            "path": "Observation.referenceRange.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Observation.referenceRange.low",
            "path": "Observation.referenceRange.low",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.referenceRange.low",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "condition": [
              "obs-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.referenceRange.high",
            "path": "Observation.referenceRange.high",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.referenceRange.high",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "condition": [
              "obs-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.referenceRange.type",
            "path": "Observation.referenceRange.type",
            "comment": "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.referenceRange.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationRangeMeaning"
                }
              ],
              "strength": "preferred",
              "description": "Code for the meaning of a reference range.",
              "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
            }
          },
          {
            "id": "Observation.referenceRange.appliesTo",
            "path": "Observation.referenceRange.appliesTo",
            "comment": "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.referenceRange.appliesTo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationRangeType"
                }
              ],
              "strength": "example",
              "description": "Codes identifying the population the reference range applies to.",
              "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
            }
          },
          {
            "id": "Observation.referenceRange.age",
            "path": "Observation.referenceRange.age",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.referenceRange.age",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.referenceRange.text",
            "path": "Observation.referenceRange.text",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.referenceRange.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.hasMember",
            "path": "Observation.hasMember",
            "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html)  into a final score and represent the score as an Observation.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.hasMember",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.derivedFrom",
            "path": "Observation.derivedFrom",
            "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.derivedFrom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
                  "http://hl7.org/fhir/StructureDefinition/Media",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.component",
            "path": "Observation.component",
            "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.component",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.component.id",
            "path": "Observation.component.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.component.extension",
            "path": "Observation.component.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Observation.component.modifierExtension",
            "path": "Observation.component.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Observation.component.code",
            "path": "Observation.component.code",
            "comment": "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Observation.component.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationCode"
                }
              ],
              "strength": "example",
              "description": "Codes identifying names of simple observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
            }
          },
          {
            "id": "Observation.component.value[x]",
            "path": "Observation.component.value[x]",
            "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](observation.html#notes) below.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.component.value[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "string"
              },
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "time"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Observation.component.dataAbsentReason",
            "path": "Observation.component.dataAbsentReason",
            "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Observation.component.dataAbsentReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "obs-6"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationValueAbsentReason"
                }
              ],
              "strength": "extensible",
              "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
            }
          },
          {
            "id": "Observation.component.interpretation",
            "path": "Observation.component.interpretation",
            "comment": "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.component.interpretation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationInterpretation"
                }
              ],
              "strength": "extensible",
              "description": "Codes identifying interpretations of observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
            }
          },
          {
            "id": "Observation.component.referenceRange",
            "path": "Observation.component.referenceRange",
            "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Observation.component.referenceRange",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#Observation.referenceRange",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Observation",
            "path": "Observation",
            "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as laboratory reports, etc.",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "obs-7",
                "severity": "error",
                "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
                "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
                "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))"
              },
              {
                "key": "obs-6",
                "severity": "error",
                "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
                "expression": "dataAbsentReason.empty() or value.empty()",
                "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))"
              }
            ]
          },
          {
            "id": "Observation.identifier",
            "path": "Observation.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.basedOn",
            "path": "Observation.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
                  "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
                  "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.partOf",
            "path": "Observation.partOf",
            "comment": "To link an Observation to an Encounter use `encounter`.  See the  [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
                  "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
                  "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Immunization",
                  "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.status",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
                "valueString": "default: final"
              }
            ],
            "path": "Observation.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationStatus"
                }
              ],
              "strength": "required",
              "description": "Codes providing the status of an observation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
            }
          },
          {
            "id": "Observation.category",
            "path": "Observation.category",
            "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationCategory"
                }
              ],
              "strength": "preferred",
              "description": "Codes for high level observation categories.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
            }
          },
          {
            "id": "Observation.code",
            "path": "Observation.code",
            "comment": "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationCode"
                }
              ],
              "strength": "example",
              "description": "Codes identifying names of simple observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
            }
          },
          {
            "id": "Observation.subject",
            "path": "Observation.subject",
            "comment": "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.focus",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "Observation.focus",
            "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.encounter",
            "path": "Observation.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.effective[x]",
            "path": "Observation.effective[x]",
            "comment": "At least a date should be present unless this observation is a historical report.  For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              },
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.issued",
            "path": "Observation.issued",
            "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself.  For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.performer",
            "path": "Observation.performer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.value[x]",
            "path": "Observation.value[x]",
            "comment": "An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](observation.html#notes) below.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "string"
              },
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "time"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "condition": [
              "obs-7"
            ],
            "isSummary": true
          },
          {
            "id": "Observation.dataAbsentReason",
            "path": "Observation.dataAbsentReason",
            "comment": "Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"specimen unsatisfactory\".   \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "obs-6"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationValueAbsentReason"
                }
              ],
              "strength": "extensible",
              "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
            }
          },
          {
            "id": "Observation.interpretation",
            "path": "Observation.interpretation",
            "comment": "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationInterpretation"
                }
              ],
              "strength": "extensible",
              "description": "Codes identifying interpretations of observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
            }
          },
          {
            "id": "Observation.note",
            "path": "Observation.note",
            "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "Observation.bodySite",
            "path": "Observation.bodySite",
            "comment": "Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "Observation.method",
            "path": "Observation.method",
            "comment": "Only used if not implicit in code for Observation.code.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationMethod"
                }
              ],
              "strength": "example",
              "description": "Methods for simple observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
            }
          },
          {
            "id": "Observation.specimen",
            "path": "Observation.specimen",
            "comment": "Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ]
          },
          {
            "id": "Observation.device",
            "path": "Observation.device",
            "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
                ]
              }
            ]
          },
          {
            "id": "Observation.referenceRange",
            "path": "Observation.referenceRange",
            "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "obs-3",
                "severity": "error",
                "human": "Must have at least a low or a high or text",
                "expression": "low.exists() or high.exists() or text.exists()",
                "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))"
              }
            ]
          },
          {
            "id": "Observation.referenceRange.low",
            "path": "Observation.referenceRange.low",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "condition": [
              "obs-3"
            ]
          },
          {
            "id": "Observation.referenceRange.high",
            "path": "Observation.referenceRange.high",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "condition": [
              "obs-3"
            ]
          },
          {
            "id": "Observation.referenceRange.type",
            "path": "Observation.referenceRange.type",
            "comment": "This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationRangeMeaning"
                }
              ],
              "strength": "preferred",
              "description": "Code for the meaning of a reference range.",
              "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
            }
          },
          {
            "id": "Observation.referenceRange.appliesTo",
            "path": "Observation.referenceRange.appliesTo",
            "comment": "This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationRangeType"
                }
              ],
              "strength": "example",
              "description": "Codes identifying the population the reference range applies to.",
              "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
            }
          },
          {
            "id": "Observation.referenceRange.age",
            "path": "Observation.referenceRange.age",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Range"
              }
            ]
          },
          {
            "id": "Observation.referenceRange.text",
            "path": "Observation.referenceRange.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Observation.hasMember",
            "path": "Observation.hasMember",
            "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html)  into a final score and represent the score as an Observation.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.derivedFrom",
            "path": "Observation.derivedFrom",
            "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
                  "http://hl7.org/fhir/StructureDefinition/Media",
                  "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.component",
            "path": "Observation.component",
            "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.component.code",
            "path": "Observation.component.code",
            "comment": "*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationCode"
                }
              ],
              "strength": "example",
              "description": "Codes identifying names of simple observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
            }
          },
          {
            "id": "Observation.component.value[x]",
            "path": "Observation.component.value[x]",
            "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an  Apgar score)  and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](observation.html#notes) below.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "string"
              },
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "time"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Observation.component.dataAbsentReason",
            "path": "Observation.component.dataAbsentReason",
            "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  \"detected\", \"not detected\", \"inconclusive\", or  \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "obs-6"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationValueAbsentReason"
                }
              ],
              "strength": "extensible",
              "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
            }
          },
          {
            "id": "Observation.component.interpretation",
            "path": "Observation.component.interpretation",
            "comment": "Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationInterpretation"
                }
              ],
              "strength": "extensible",
              "description": "Codes identifying interpretations of observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
            }
          },
          {
            "id": "Observation.component.referenceRange",
            "path": "Observation.component.referenceRange",
            "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
            "min": 0,
            "max": "*",
            "contentReference": "#Observation.referenceRange"
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ObservationDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ObservationDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Definitional Artifacts"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ObservationDefinition",
      "version": "4.0.1",
      "name": "ObservationDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "In a catalog of health-related services that use or produce observations and measurements, this resource describes the expected characteristics of these observation / measurements.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ObservationDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ObservationDefinition",
            "path": "ObservationDefinition",
            "comment": "An instance of this resource informs the consumer of a health-related service (such as a lab diagnostic test or panel) about how the observations used or produced by this service will look like.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ObservationDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.id",
            "path": "ObservationDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ObservationDefinition.meta",
            "path": "ObservationDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ObservationDefinition.implicitRules",
            "path": "ObservationDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ObservationDefinition.language",
            "path": "ObservationDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ObservationDefinition.text",
            "path": "ObservationDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.contained",
            "path": "ObservationDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.extension",
            "path": "ObservationDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.modifierExtension",
            "path": "ObservationDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.category",
            "path": "ObservationDefinition.category",
            "comment": "This element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used for one instance of ObservationDefinition. The level of granularity is defined by the category concepts in the value set.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ObservationDefinition.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationCategory"
                }
              ],
              "strength": "example",
              "description": "Codes for high level observation categories.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
            }
          },
          {
            "id": "ObservationDefinition.code",
            "path": "ObservationDefinition.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationCode"
                }
              ],
              "strength": "example",
              "description": "Codes identifying names of simple observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
            }
          },
          {
            "id": "ObservationDefinition.identifier",
            "path": "ObservationDefinition.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ObservationDefinition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ObservationDefinition.permittedDataType",
            "path": "ObservationDefinition.permittedDataType",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ObservationDefinition.permittedDataType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationDataType"
                }
              ],
              "strength": "required",
              "description": "Permitted data type for observation value.",
              "valueSet": "http://hl7.org/fhir/ValueSet/permitted-data-type|4.0.1"
            }
          },
          {
            "id": "ObservationDefinition.multipleResultsAllowed",
            "path": "ObservationDefinition.multipleResultsAllowed",
            "comment": "An example of observation allowing multiple results is \"bacteria identified by culture\". Conversely, the measurement of a potassium level allows a single result.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.multipleResultsAllowed",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueBoolean": true
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.method",
            "path": "ObservationDefinition.method",
            "comment": "Only used if not implicit in observation code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.method",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationMethod"
                }
              ],
              "strength": "example",
              "description": "Methods for simple observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
            }
          },
          {
            "id": "ObservationDefinition.preferredReportName",
            "path": "ObservationDefinition.preferredReportName",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.preferredReportName",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.quantitativeDetails",
            "path": "ObservationDefinition.quantitativeDetails",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.quantitativeDetails",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.id",
            "path": "ObservationDefinition.quantitativeDetails.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.extension",
            "path": "ObservationDefinition.quantitativeDetails.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.modifierExtension",
            "path": "ObservationDefinition.quantitativeDetails.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.customaryUnit",
            "path": "ObservationDefinition.quantitativeDetails.customaryUnit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.quantitativeDetails.customaryUnit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationUnit"
                }
              ],
              "strength": "extensible",
              "description": "Codes identifying units of measure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units"
            }
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.unit",
            "path": "ObservationDefinition.quantitativeDetails.unit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.quantitativeDetails.unit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationUnit"
                }
              ],
              "strength": "extensible",
              "description": "Codes identifying units of measure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units"
            }
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.conversionFactor",
            "path": "ObservationDefinition.quantitativeDetails.conversionFactor",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.quantitativeDetails.conversionFactor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.decimalPrecision",
            "path": "ObservationDefinition.quantitativeDetails.decimalPrecision",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.quantitativeDetails.decimalPrecision",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.qualifiedInterval",
            "path": "ObservationDefinition.qualifiedInterval",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ObservationDefinition.qualifiedInterval",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.id",
            "path": "ObservationDefinition.qualifiedInterval.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.extension",
            "path": "ObservationDefinition.qualifiedInterval.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.modifierExtension",
            "path": "ObservationDefinition.qualifiedInterval.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.category",
            "path": "ObservationDefinition.qualifiedInterval.category",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.qualifiedInterval.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "critical"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationRangeCategory"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the category of observation range.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-range-category|4.0.1"
            }
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.range",
            "path": "ObservationDefinition.qualifiedInterval.range",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.qualifiedInterval.range",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.context",
            "path": "ObservationDefinition.qualifiedInterval.context",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.qualifiedInterval.context",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationRangeMeaning"
                }
              ],
              "strength": "extensible",
              "description": "Code identifying the health context of a range.",
              "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
            }
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.appliesTo",
            "path": "ObservationDefinition.qualifiedInterval.appliesTo",
            "comment": "If this element is not present then the global population is assumed.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ObservationDefinition.qualifiedInterval.appliesTo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationRangeAppliesTo"
                }
              ],
              "strength": "example",
              "description": "Codes identifying the population the reference range applies to.",
              "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
            }
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.gender",
            "path": "ObservationDefinition.qualifiedInterval.gender",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.qualifiedInterval.gender",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "female"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.age",
            "path": "ObservationDefinition.qualifiedInterval.age",
            "comment": "Some analytes vary greatly over age.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.qualifiedInterval.age",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.gestationalAge",
            "path": "ObservationDefinition.qualifiedInterval.gestationalAge",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.qualifiedInterval.gestationalAge",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.condition",
            "path": "ObservationDefinition.qualifiedInterval.condition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.qualifiedInterval.condition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.validCodedValueSet",
            "path": "ObservationDefinition.validCodedValueSet",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.validCodedValueSet",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.normalCodedValueSet",
            "path": "ObservationDefinition.normalCodedValueSet",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.normalCodedValueSet",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.abnormalCodedValueSet",
            "path": "ObservationDefinition.abnormalCodedValueSet",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.abnormalCodedValueSet",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ObservationDefinition.criticalCodedValueSet",
            "path": "ObservationDefinition.criticalCodedValueSet",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ObservationDefinition.criticalCodedValueSet",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ObservationDefinition",
            "path": "ObservationDefinition",
            "comment": "An instance of this resource informs the consumer of a health-related service (such as a lab diagnostic test or panel) about how the observations used or produced by this service will look like.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "ObservationDefinition.category",
            "path": "ObservationDefinition.category",
            "comment": "This element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used for one instance of ObservationDefinition. The level of granularity is defined by the category concepts in the value set.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationCategory"
                }
              ],
              "strength": "example",
              "description": "Codes for high level observation categories.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
            }
          },
          {
            "id": "ObservationDefinition.code",
            "path": "ObservationDefinition.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationCode"
                }
              ],
              "strength": "example",
              "description": "Codes identifying names of simple observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
            }
          },
          {
            "id": "ObservationDefinition.identifier",
            "path": "ObservationDefinition.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ObservationDefinition.permittedDataType",
            "path": "ObservationDefinition.permittedDataType",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationDataType"
                }
              ],
              "strength": "required",
              "description": "Permitted data type for observation value.",
              "valueSet": "http://hl7.org/fhir/ValueSet/permitted-data-type|4.0.1"
            }
          },
          {
            "id": "ObservationDefinition.multipleResultsAllowed",
            "path": "ObservationDefinition.multipleResultsAllowed",
            "comment": "An example of observation allowing multiple results is \"bacteria identified by culture\". Conversely, the measurement of a potassium level allows a single result.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueBoolean": true
              }
            ]
          },
          {
            "id": "ObservationDefinition.method",
            "path": "ObservationDefinition.method",
            "comment": "Only used if not implicit in observation code.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationMethod"
                }
              ],
              "strength": "example",
              "description": "Methods for simple observations.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
            }
          },
          {
            "id": "ObservationDefinition.preferredReportName",
            "path": "ObservationDefinition.preferredReportName",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ObservationDefinition.quantitativeDetails",
            "path": "ObservationDefinition.quantitativeDetails",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.customaryUnit",
            "path": "ObservationDefinition.quantitativeDetails.customaryUnit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationUnit"
                }
              ],
              "strength": "extensible",
              "description": "Codes identifying units of measure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units"
            }
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.unit",
            "path": "ObservationDefinition.quantitativeDetails.unit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationUnit"
                }
              ],
              "strength": "extensible",
              "description": "Codes identifying units of measure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units"
            }
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.conversionFactor",
            "path": "ObservationDefinition.quantitativeDetails.conversionFactor",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "ObservationDefinition.quantitativeDetails.decimalPrecision",
            "path": "ObservationDefinition.quantitativeDetails.decimalPrecision",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "ObservationDefinition.qualifiedInterval",
            "path": "ObservationDefinition.qualifiedInterval",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.category",
            "path": "ObservationDefinition.qualifiedInterval.category",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "critical"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationRangeCategory"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the category of observation range.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-range-category|4.0.1"
            }
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.range",
            "path": "ObservationDefinition.qualifiedInterval.range",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Range"
              }
            ]
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.context",
            "path": "ObservationDefinition.qualifiedInterval.context",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationRangeMeaning"
                }
              ],
              "strength": "extensible",
              "description": "Code identifying the health context of a range.",
              "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
            }
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.appliesTo",
            "path": "ObservationDefinition.qualifiedInterval.appliesTo",
            "comment": "If this element is not present then the global population is assumed.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ObservationRangeAppliesTo"
                }
              ],
              "strength": "example",
              "description": "Codes identifying the population the reference range applies to.",
              "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
            }
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.gender",
            "path": "ObservationDefinition.qualifiedInterval.gender",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "female"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.age",
            "path": "ObservationDefinition.qualifiedInterval.age",
            "comment": "Some analytes vary greatly over age.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Range"
              }
            ]
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.gestationalAge",
            "path": "ObservationDefinition.qualifiedInterval.gestationalAge",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Range"
              }
            ]
          },
          {
            "id": "ObservationDefinition.qualifiedInterval.condition",
            "path": "ObservationDefinition.qualifiedInterval.condition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ObservationDefinition.validCodedValueSet",
            "path": "ObservationDefinition.validCodedValueSet",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ]
          },
          {
            "id": "ObservationDefinition.normalCodedValueSet",
            "path": "ObservationDefinition.normalCodedValueSet",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ]
          },
          {
            "id": "ObservationDefinition.abnormalCodedValueSet",
            "path": "ObservationDefinition.abnormalCodedValueSet",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ]
          },
          {
            "id": "ObservationDefinition.criticalCodedValueSet",
            "path": "ObservationDefinition.criticalCodedValueSet",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/OperationDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "OperationDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Conformance"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/OperationDefinition",
      "version": "4.0.1",
      "name": "OperationDefinition",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "OperationDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "OperationDefinition",
            "path": "OperationDefinition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "opd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.id",
            "path": "OperationDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.meta",
            "path": "OperationDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.implicitRules",
            "path": "OperationDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "OperationDefinition.language",
            "path": "OperationDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "OperationDefinition.text",
            "path": "OperationDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.contained",
            "path": "OperationDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.extension",
            "path": "OperationDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.modifierExtension",
            "path": "OperationDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "OperationDefinition.url",
            "path": "OperationDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.version",
            "path": "OperationDefinition.version",
            "comment": "There may be different operation definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the operation definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.name",
            "path": "OperationDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.title",
            "path": "OperationDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.status",
            "path": "OperationDefinition.status",
            "comment": "Allows filtering of operation definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.kind",
            "path": "OperationDefinition.kind",
            "comment": "Named queries are invoked differently, and have different capabilities.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.kind",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OperationKind"
                }
              ],
              "strength": "required",
              "description": "Whether an operation is a normal operation or a query.",
              "valueSet": "http://hl7.org/fhir/ValueSet/operation-kind|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.experimental",
            "path": "OperationDefinition.experimental",
            "comment": "Allows filtering of operation definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.date",
            "path": "OperationDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the operation definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.publisher",
            "path": "OperationDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the operation definition is the organization or individual primarily responsible for the maintenance and upkeep of the operation definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the operation definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.contact",
            "path": "OperationDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.description",
            "path": "OperationDefinition.description",
            "comment": "This description can be used to capture details such as why the operation definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the operation definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the operation definition is presumed to be the predominant language in the place the operation definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.useContext",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "OperationDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.jurisdiction",
            "path": "OperationDefinition.jurisdiction",
            "comment": "It may be possible for the operation definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "OperationDefinition.purpose",
            "path": "OperationDefinition.purpose",
            "comment": "This element does not describe the usage of the operation definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this operation definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.affectsState",
            "path": "OperationDefinition.affectsState",
            "comment": "What http methods can be used for the operation depends on the .affectsState value and whether the input parameters are primitive or complex:\n\n1. Servers SHALL support POST method for all operations.\n\n2. Servers SHALL support GET method if all the parameters for the operation are primitive or there are no parameters and the operation has affectsState = false.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.affectsState",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.code",
            "path": "OperationDefinition.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.comment",
            "path": "OperationDefinition.comment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.base",
            "path": "OperationDefinition.base",
            "comment": "A constrained profile can make optional parameters required or not used and clarify documentation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.base",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.resource",
            "path": "OperationDefinition.resource",
            "comment": "If the type is an abstract resource (\"Resource\" or \"DomainResource\") then the operation can be invoked on any concrete specialization.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition.resource",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.system",
            "path": "OperationDefinition.system",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.system",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.type",
            "path": "OperationDefinition.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.instance",
            "path": "OperationDefinition.instance",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.instance",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationDefinition.inputProfile",
            "path": "OperationDefinition.inputProfile",
            "comment": "If present the profile shall not conflict with what is specified in the parameters in the operation definition (max/min etc.), though it may provide additional constraints. The constraints expressed in the profile apply whether the operation is invoked by a POST wih parameters or not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.inputProfile",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.outputProfile",
            "path": "OperationDefinition.outputProfile",
            "comment": "If present the profile shall not conflict with what is specified in the parameters in the operation definition (max/min etc.), though it may provide additional constraints. The constraints expressed in the profile apply whether the operation is invoked by a POST wih parameters or not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.outputProfile",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter",
            "path": "OperationDefinition.parameter",
            "comment": "Query Definitions only have one output parameter, named \"result\". This might not be described, but can be to allow a profile to be defined.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition.parameter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "opd-1",
                "severity": "error",
                "human": "Either a type must be provided, or parts",
                "expression": "type.exists() or part.exists()",
                "xpath": "exists(f:type) or exists(f:part)"
              },
              {
                "key": "opd-2",
                "severity": "error",
                "human": "A search type can only be specified for parameters of type string",
                "expression": "searchType.exists() implies type = 'string'",
                "xpath": "not(exists(f:searchType)) or (f:type/@value = 'string')"
              },
              {
                "key": "opd-3",
                "severity": "error",
                "human": "A targetProfile can only be specified for parameters of type Reference or Canonical",
                "expression": "targetProfile.exists() implies (type = 'Reference' or type = 'canonical')",
                "xpath": "not(exists(f:targetProfile)) or ((f:type/@value = 'Reference') or (f:type/@value = 'canonical'))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.id",
            "path": "OperationDefinition.parameter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.extension",
            "path": "OperationDefinition.parameter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.modifierExtension",
            "path": "OperationDefinition.parameter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "OperationDefinition.parameter.name",
            "path": "OperationDefinition.parameter.name",
            "comment": "This name must be a token (start with a letter in a..z, and only contain letters, numerals, and underscore. Note that for search parameters (type = string, with a search type), the name may be altered by the search modifiers.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.use",
            "path": "OperationDefinition.parameter.use",
            "comment": "If a parameter name is used for both an input and an output parameter, the parameter should be defined twice.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.use",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OperationParameterUse"
                }
              ],
              "strength": "required",
              "description": "Whether an operation parameter is an input or an output parameter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/operation-parameter-use|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.parameter.min",
            "path": "OperationDefinition.parameter.min",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.min",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.max",
            "path": "OperationDefinition.parameter.max",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.max",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.documentation",
            "path": "OperationDefinition.parameter.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.type",
            "path": "OperationDefinition.parameter.type",
            "comment": "if there is no stated parameter, then the parameter is a multi-part parameter; type and must have at least one part defined.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "opd-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRAllTypes"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "A list of all the concrete types defined in this version of the FHIR specification - Abstract Types, Data Types and Resource Types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/all-types|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.parameter.targetProfile",
            "path": "OperationDefinition.parameter.targetProfile",
            "comment": "Often, these profiles are the base definitions from the spec (e.g. http://hl7.org/fhir/StructureDefinition/Patient).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition.parameter.targetProfile",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.searchType",
            "path": "OperationDefinition.parameter.searchType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.searchType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "opd-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchParamType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "Data types allowed to be used for search parameters.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-param-type|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.parameter.binding",
            "path": "OperationDefinition.parameter.binding",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.binding",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.binding.id",
            "path": "OperationDefinition.parameter.binding.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.binding.extension",
            "path": "OperationDefinition.parameter.binding.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.binding.modifierExtension",
            "path": "OperationDefinition.parameter.binding.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "OperationDefinition.parameter.binding.strength",
            "path": "OperationDefinition.parameter.binding.strength",
            "comment": "For further discussion, see [Using Terminologies](terminologies.html).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.binding.strength",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BindingStrength"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "Indication of the degree of conformance expectations associated with a binding.",
              "valueSet": "http://hl7.org/fhir/ValueSet/binding-strength|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.parameter.binding.valueSet",
            "path": "OperationDefinition.parameter.binding.valueSet",
            "comment": "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",
            "base": {
              "path": "OperationDefinition.parameter.binding.valueSet",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.referencedFrom",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "OperationDefinition.parameter.referencedFrom",
            "comment": "Resolution applies if the referenced parameter exists.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition.parameter.referencedFrom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.referencedFrom.id",
            "path": "OperationDefinition.parameter.referencedFrom.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.referencedFrom.extension",
            "path": "OperationDefinition.parameter.referencedFrom.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.referencedFrom.modifierExtension",
            "path": "OperationDefinition.parameter.referencedFrom.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "OperationDefinition.parameter.referencedFrom.source",
            "path": "OperationDefinition.parameter.referencedFrom.source",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.referencedFrom.source",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.referencedFrom.sourceId",
            "path": "OperationDefinition.parameter.referencedFrom.sourceId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.parameter.referencedFrom.sourceId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.parameter.part",
            "path": "OperationDefinition.parameter.part",
            "comment": "Query Definitions only have one output parameter, named \"result\". This might not be described, but can be to allow a profile to be defined.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition.parameter.part",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#OperationDefinition.parameter",
            "condition": [
              "opd-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.overload",
            "path": "OperationDefinition.overload",
            "comment": "The combinations are suggestions as to which sets of parameters to use together, but the combinations are not intended to be authoritative.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition.overload",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.overload.id",
            "path": "OperationDefinition.overload.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.overload.extension",
            "path": "OperationDefinition.overload.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.overload.modifierExtension",
            "path": "OperationDefinition.overload.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "OperationDefinition.overload.parameterName",
            "path": "OperationDefinition.overload.parameterName",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationDefinition.overload.parameterName",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationDefinition.overload.comment",
            "path": "OperationDefinition.overload.comment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationDefinition.overload.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "OperationDefinition",
            "path": "OperationDefinition",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "opd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "OperationDefinition.url",
            "path": "OperationDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.version",
            "path": "OperationDefinition.version",
            "comment": "There may be different operation definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the operation definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.name",
            "path": "OperationDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.title",
            "path": "OperationDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.status",
            "path": "OperationDefinition.status",
            "comment": "Allows filtering of operation definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.kind",
            "path": "OperationDefinition.kind",
            "comment": "Named queries are invoked differently, and have different capabilities.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OperationKind"
                }
              ],
              "strength": "required",
              "description": "Whether an operation is a normal operation or a query.",
              "valueSet": "http://hl7.org/fhir/ValueSet/operation-kind|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.experimental",
            "path": "OperationDefinition.experimental",
            "comment": "Allows filtering of operation definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.date",
            "path": "OperationDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the operation definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.publisher",
            "path": "OperationDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the operation definition is the organization or individual primarily responsible for the maintenance and upkeep of the operation definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the operation definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.contact",
            "path": "OperationDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.description",
            "path": "OperationDefinition.description",
            "comment": "This description can be used to capture details such as why the operation definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the operation definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the operation definition is presumed to be the predominant language in the place the operation definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "OperationDefinition.useContext",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "OperationDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.jurisdiction",
            "path": "OperationDefinition.jurisdiction",
            "comment": "It may be possible for the operation definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "OperationDefinition.purpose",
            "path": "OperationDefinition.purpose",
            "comment": "This element does not describe the usage of the operation definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this operation definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "OperationDefinition.affectsState",
            "path": "OperationDefinition.affectsState",
            "comment": "What http methods can be used for the operation depends on the .affectsState value and whether the input parameters are primitive or complex:\n\n1. Servers SHALL support POST method for all operations.\n\n2. Servers SHALL support GET method if all the parameters for the operation are primitive or there are no parameters and the operation has affectsState = false.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.code",
            "path": "OperationDefinition.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.comment",
            "path": "OperationDefinition.comment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "OperationDefinition.base",
            "path": "OperationDefinition.base",
            "comment": "A constrained profile can make optional parameters required or not used and clarify documentation.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.resource",
            "path": "OperationDefinition.resource",
            "comment": "If the type is an abstract resource (\"Resource\" or \"DomainResource\") then the operation can be invoked on any concrete specialization.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.system",
            "path": "OperationDefinition.system",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.type",
            "path": "OperationDefinition.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.instance",
            "path": "OperationDefinition.instance",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationDefinition.inputProfile",
            "path": "OperationDefinition.inputProfile",
            "comment": "If present the profile shall not conflict with what is specified in the parameters in the operation definition (max/min etc.), though it may provide additional constraints. The constraints expressed in the profile apply whether the operation is invoked by a POST wih parameters or not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ]
          },
          {
            "id": "OperationDefinition.outputProfile",
            "path": "OperationDefinition.outputProfile",
            "comment": "If present the profile shall not conflict with what is specified in the parameters in the operation definition (max/min etc.), though it may provide additional constraints. The constraints expressed in the profile apply whether the operation is invoked by a POST wih parameters or not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter",
            "path": "OperationDefinition.parameter",
            "comment": "Query Definitions only have one output parameter, named \"result\". This might not be described, but can be to allow a profile to be defined.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "opd-1",
                "severity": "error",
                "human": "Either a type must be provided, or parts",
                "expression": "type.exists() or part.exists()",
                "xpath": "exists(f:type) or exists(f:part)"
              },
              {
                "key": "opd-2",
                "severity": "error",
                "human": "A search type can only be specified for parameters of type string",
                "expression": "searchType.exists() implies type = 'string'",
                "xpath": "not(exists(f:searchType)) or (f:type/@value = 'string')"
              },
              {
                "key": "opd-3",
                "severity": "error",
                "human": "A targetProfile can only be specified for parameters of type Reference or Canonical",
                "expression": "targetProfile.exists() implies (type = 'Reference' or type = 'canonical')",
                "xpath": "not(exists(f:targetProfile)) or ((f:type/@value = 'Reference') or (f:type/@value = 'canonical'))"
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.name",
            "path": "OperationDefinition.parameter.name",
            "comment": "This name must be a token (start with a letter in a..z, and only contain letters, numerals, and underscore. Note that for search parameters (type = string, with a search type), the name may be altered by the search modifiers.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.use",
            "path": "OperationDefinition.parameter.use",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OperationParameterUse"
                }
              ],
              "strength": "required",
              "description": "Whether an operation parameter is an input or an output parameter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/operation-parameter-use|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.parameter.min",
            "path": "OperationDefinition.parameter.min",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.max",
            "path": "OperationDefinition.parameter.max",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.documentation",
            "path": "OperationDefinition.parameter.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.type",
            "path": "OperationDefinition.parameter.type",
            "comment": "if there is no stated parameter, then the parameter is a multi-part parameter; type and must have at least one part defined.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "opd-1"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRAllTypes"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "A list of all the concrete types defined in this version of the FHIR specification - Abstract Types, Data Types and Resource Types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/all-types|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.parameter.targetProfile",
            "path": "OperationDefinition.parameter.targetProfile",
            "comment": "Often, these profiles are the base definitions from the spec (e.g. http://hl7.org/fhir/StructureDefinition/Patient).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.searchType",
            "path": "OperationDefinition.parameter.searchType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "opd-2"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchParamType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "Data types allowed to be used for search parameters.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-param-type|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.parameter.binding",
            "path": "OperationDefinition.parameter.binding",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.binding.strength",
            "path": "OperationDefinition.parameter.binding.strength",
            "comment": "For further discussion, see [Using Terminologies](terminologies.html).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BindingStrength"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "Indication of the degree of conformance expectations associated with a binding.",
              "valueSet": "http://hl7.org/fhir/ValueSet/binding-strength|4.0.1"
            }
          },
          {
            "id": "OperationDefinition.parameter.binding.valueSet",
            "path": "OperationDefinition.parameter.binding.valueSet",
            "comment": "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": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.referencedFrom",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "OperationDefinition.parameter.referencedFrom",
            "comment": "Resolution applies if the referenced parameter exists.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.referencedFrom.source",
            "path": "OperationDefinition.parameter.referencedFrom.source",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.referencedFrom.sourceId",
            "path": "OperationDefinition.parameter.referencedFrom.sourceId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "OperationDefinition.parameter.part",
            "path": "OperationDefinition.parameter.part",
            "comment": "Query Definitions only have one output parameter, named \"result\". This might not be described, but can be to allow a profile to be defined.",
            "min": 0,
            "max": "*",
            "contentReference": "#OperationDefinition.parameter",
            "condition": [
              "opd-1"
            ]
          },
          {
            "id": "OperationDefinition.overload",
            "path": "OperationDefinition.overload",
            "comment": "The combinations are suggestions as to which sets of parameters to use together, but the combinations are not intended to be authoritative.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "OperationDefinition.overload.parameterName",
            "path": "OperationDefinition.overload.parameterName",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "OperationDefinition.overload.comment",
            "path": "OperationDefinition.overload.comment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/OperationOutcome",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "OperationOutcome",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Other"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/OperationOutcome",
      "version": "4.0.1",
      "name": "OperationOutcome",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "OperationOutcome",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "OperationOutcome",
            "path": "OperationOutcome",
            "comment": "Can result from the failure of a REST call or be part of the response message returned from a request message.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationOutcome",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationOutcome.id",
            "path": "OperationOutcome.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationOutcome.meta",
            "path": "OperationOutcome.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationOutcome.implicitRules",
            "path": "OperationOutcome.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "OperationOutcome.language",
            "path": "OperationOutcome.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "OperationOutcome.text",
            "path": "OperationOutcome.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationOutcome.contained",
            "path": "OperationOutcome.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationOutcome.extension",
            "path": "OperationOutcome.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationOutcome.modifierExtension",
            "path": "OperationOutcome.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "OperationOutcome.issue",
            "path": "OperationOutcome.issue",
            "min": 1,
            "max": "*",
            "base": {
              "path": "OperationOutcome.issue",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationOutcome.issue.id",
            "path": "OperationOutcome.issue.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationOutcome.issue.extension",
            "path": "OperationOutcome.issue.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OperationOutcome.issue.modifierExtension",
            "path": "OperationOutcome.issue.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "OperationOutcome.issue.severity",
            "path": "OperationOutcome.issue.severity",
            "comment": "This is labeled as \"Is Modifier\" because applications should not confuse hints and warnings with errors.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationOutcome.issue.severity",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IssueSeverity"
                }
              ],
              "strength": "required",
              "description": "How the issue affects the success of the action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/issue-severity|4.0.1"
            }
          },
          {
            "id": "OperationOutcome.issue.code",
            "path": "OperationOutcome.issue.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "OperationOutcome.issue.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IssueType"
                }
              ],
              "strength": "required",
              "description": "A code that describes the type of issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/issue-type|4.0.1"
            }
          },
          {
            "id": "OperationOutcome.issue.details",
            "path": "OperationOutcome.issue.details",
            "comment": "A human readable description of the error issue SHOULD be placed in details.text.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationOutcome.issue.details",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IssueDetails"
                }
              ],
              "strength": "example",
              "description": "A code that provides details as the exact issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/operation-outcome"
            }
          },
          {
            "id": "OperationOutcome.issue.diagnostics",
            "path": "OperationOutcome.issue.diagnostics",
            "comment": "This may be a description of how a value is erroneous, a stack dump to help trace the issue or other troubleshooting information.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OperationOutcome.issue.diagnostics",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationOutcome.issue.location",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "deprecated"
              }
            ],
            "path": "OperationOutcome.issue.location",
            "comment": "The root of the XPath is the resource or bundle that generated OperationOutcome.  Each XPath SHALL resolve to a single node.  This element is deprecated, and is being replaced by expression.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationOutcome.issue.location",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OperationOutcome.issue.expression",
            "path": "OperationOutcome.issue.expression",
            "comment": "The root of the FHIRPath is the resource or bundle that generated OperationOutcome.  Each FHIRPath SHALL resolve to a single node.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OperationOutcome.issue.expression",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "OperationOutcome",
            "path": "OperationOutcome",
            "comment": "Can result from the failure of a REST call or be part of the response message returned from a request message.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "OperationOutcome.issue",
            "path": "OperationOutcome.issue",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationOutcome.issue.severity",
            "path": "OperationOutcome.issue.severity",
            "comment": "This is labeled as \"Is Modifier\" because applications should not confuse hints and warnings with errors.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IssueSeverity"
                }
              ],
              "strength": "required",
              "description": "How the issue affects the success of the action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/issue-severity|4.0.1"
            }
          },
          {
            "id": "OperationOutcome.issue.code",
            "path": "OperationOutcome.issue.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IssueType"
                }
              ],
              "strength": "required",
              "description": "A code that describes the type of issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/issue-type|4.0.1"
            }
          },
          {
            "id": "OperationOutcome.issue.details",
            "path": "OperationOutcome.issue.details",
            "comment": "A human readable description of the error issue SHOULD be placed in details.text.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IssueDetails"
                }
              ],
              "strength": "example",
              "description": "A code that provides details as the exact issue.",
              "valueSet": "http://hl7.org/fhir/ValueSet/operation-outcome"
            }
          },
          {
            "id": "OperationOutcome.issue.diagnostics",
            "path": "OperationOutcome.issue.diagnostics",
            "comment": "This may be a description of how a value is erroneous, a stack dump to help trace the issue or other troubleshooting information.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationOutcome.issue.location",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "deprecated"
              }
            ],
            "path": "OperationOutcome.issue.location",
            "comment": "The root of the XPath is the resource or bundle that generated OperationOutcome.  Each XPath SHALL resolve to a single node.  This element is deprecated, and is being replaced by expression.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OperationOutcome.issue.expression",
            "path": "OperationOutcome.issue.expression",
            "comment": "The root of the FHIRPath is the resource or bundle that generated OperationOutcome.  Each FHIRPath SHALL resolve to a single node.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Organization",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Organization",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Entities"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Organization",
      "version": "4.0.1",
      "name": "Organization",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Organization",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Organization",
            "path": "Organization",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Organization",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "org-1",
                "severity": "error",
                "human": "The organization SHALL at least have a name or an identifier, and possibly more than one",
                "expression": "(identifier.count() + name.count()) > 0",
                "xpath": "count(f:identifier | f:name) > 0"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.id",
            "path": "Organization.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Organization.meta",
            "path": "Organization.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Organization.implicitRules",
            "path": "Organization.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Organization.language",
            "path": "Organization.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Organization.text",
            "path": "Organization.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.contained",
            "path": "Organization.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.extension",
            "path": "Organization.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.modifierExtension",
            "path": "Organization.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Organization.identifier",
            "path": "Organization.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Organization.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "condition": [
              "org-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Organization.active",
            "path": "Organization.active",
            "comment": "This active flag is not intended to be used to mark an organization as temporarily closed or under construction. Instead the Location(s) within the Organization should have the suspended status. If further details of the reason for the suspension are required, then an extension on this element should be used.\n\nThis element is labeled as a modifier because it may be used to mark that the resource was created in error.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Organization.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "Organization.type",
            "path": "Organization.type",
            "comment": "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\n\nWhen considering if multiple types are appropriate, you should evaluate if child organizations would be a more appropriate use of the concept, as different types likely are in different sub-areas of the organization. This is most likely to be used where type values have orthogonal values, such as a religious, academic and medical center.\n\nWe expect that some jurisdictions will profile this optionality to be a single cardinality.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Organization.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OrganizationType"
                }
              ],
              "strength": "example",
              "description": "Used to categorize the organization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/organization-type"
            }
          },
          {
            "id": "Organization.name",
            "path": "Organization.name",
            "comment": "If the name of an organization changes, consider putting the old name in the alias column so that it can still be located through searches.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Organization.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "org-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Organization.alias",
            "path": "Organization.alias",
            "comment": "There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the organization.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Organization.alias",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.telecom",
            "path": "Organization.telecom",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Organization.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "condition": [
              "org-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "org-3",
                "severity": "error",
                "human": "The telecom of an organization can never be of use 'home'",
                "expression": "where(use = 'home').empty()",
                "xpath": "count(f:use[@value='home']) = 0"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.address",
            "path": "Organization.address",
            "comment": "Organization may have multiple addresses with different uses or applicable periods. The use code 'home' is not to be used.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Organization.address",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Address"
              }
            ],
            "condition": [
              "org-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "org-2",
                "severity": "error",
                "human": "An address of an organization can never be of use 'home'",
                "expression": "where(use = 'home').empty()",
                "xpath": "count(f:use[@value='home']) = 0"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.partOf",
            "path": "Organization.partOf",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Organization.partOf",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Organization.contact",
            "path": "Organization.contact",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Organization.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.contact.id",
            "path": "Organization.contact.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.contact.extension",
            "path": "Organization.contact.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.contact.modifierExtension",
            "path": "Organization.contact.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Organization.contact.purpose",
            "path": "Organization.contact.purpose",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Organization.contact.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContactPartyType"
                }
              ],
              "strength": "extensible",
              "description": "The purpose for which you would contact a contact party.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contactentity-type"
            }
          },
          {
            "id": "Organization.contact.name",
            "path": "Organization.contact.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Organization.contact.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.contact.telecom",
            "path": "Organization.contact.telecom",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Organization.contact.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.contact.address",
            "path": "Organization.contact.address",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Organization.contact.address",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Address"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Organization.endpoint",
            "path": "Organization.endpoint",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Organization.endpoint",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Organization",
            "path": "Organization",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "org-1",
                "severity": "error",
                "human": "The organization SHALL at least have a name or an identifier, and possibly more than one",
                "expression": "(identifier.count() + name.count()) > 0",
                "xpath": "count(f:identifier | f:name) > 0"
              }
            ]
          },
          {
            "id": "Organization.identifier",
            "path": "Organization.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "condition": [
              "org-1"
            ],
            "isSummary": true
          },
          {
            "id": "Organization.active",
            "path": "Organization.active",
            "comment": "This active flag is not intended to be used to mark an organization as temporarily closed or under construction. Instead the Location(s) within the Organization should have the suspended status. If further details of the reason for the suspension are required, then an extension on this element should be used.\n\nThis element is labeled as a modifier because it may be used to mark that the resource was created in error.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "Organization.type",
            "path": "Organization.type",
            "comment": "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\n\nWhen considering if multiple types are appropriate, you should evaluate if child organizations would be a more appropriate use of the concept, as different types likely are in different sub-areas of the organization. This is most likely to be used where type values have orthogonal values, such as a religious, academic and medical center.\n\nWe expect that some jurisdictions will profile this optionality to be a single cardinality.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OrganizationType"
                }
              ],
              "strength": "example",
              "description": "Used to categorize the organization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/organization-type"
            }
          },
          {
            "id": "Organization.name",
            "path": "Organization.name",
            "comment": "If the name of an organization changes, consider putting the old name in the alias column so that it can still be located through searches.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "org-1"
            ],
            "isSummary": true
          },
          {
            "id": "Organization.alias",
            "path": "Organization.alias",
            "comment": "There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the organization.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Organization.telecom",
            "path": "Organization.telecom",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "condition": [
              "org-3"
            ],
            "constraint": [
              {
                "key": "org-3",
                "severity": "error",
                "human": "The telecom of an organization can never be of use 'home'",
                "expression": "where(use = 'home').empty()",
                "xpath": "count(f:use[@value='home']) = 0"
              }
            ]
          },
          {
            "id": "Organization.address",
            "path": "Organization.address",
            "comment": "Organization may have multiple addresses with different uses or applicable periods. The use code 'home' is not to be used.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Address"
              }
            ],
            "condition": [
              "org-2"
            ],
            "constraint": [
              {
                "key": "org-2",
                "severity": "error",
                "human": "An address of an organization can never be of use 'home'",
                "expression": "where(use = 'home').empty()",
                "xpath": "count(f:use[@value='home']) = 0"
              }
            ]
          },
          {
            "id": "Organization.partOf",
            "path": "Organization.partOf",
            "min": 0,
            "max": "1",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Organization.contact",
            "path": "Organization.contact",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Organization.contact.purpose",
            "path": "Organization.contact.purpose",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContactPartyType"
                }
              ],
              "strength": "extensible",
              "description": "The purpose for which you would contact a contact party.",
              "valueSet": "http://hl7.org/fhir/ValueSet/contactentity-type"
            }
          },
          {
            "id": "Organization.contact.name",
            "path": "Organization.contact.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "HumanName"
              }
            ]
          },
          {
            "id": "Organization.contact.telecom",
            "path": "Organization.contact.telecom",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ]
          },
          {
            "id": "Organization.contact.address",
            "path": "Organization.contact.address",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Address"
              }
            ]
          },
          {
            "id": "Organization.endpoint",
            "path": "Organization.endpoint",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/OrganizationAffiliation",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "OrganizationAffiliation",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Entities"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/OrganizationAffiliation",
      "version": "4.0.1",
      "name": "OrganizationAffiliation",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Need to define relationships between organizations that are not sub-divisions of the same organization (part-of relationships).",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "OrganizationAffiliation",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "OrganizationAffiliation",
            "path": "OrganizationAffiliation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OrganizationAffiliation",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OrganizationAffiliation.id",
            "path": "OrganizationAffiliation.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.meta",
            "path": "OrganizationAffiliation.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.implicitRules",
            "path": "OrganizationAffiliation.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.language",
            "path": "OrganizationAffiliation.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "OrganizationAffiliation.text",
            "path": "OrganizationAffiliation.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OrganizationAffiliation.contained",
            "path": "OrganizationAffiliation.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OrganizationAffiliation.extension",
            "path": "OrganizationAffiliation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OrganizationAffiliation.modifierExtension",
            "path": "OrganizationAffiliation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "OrganizationAffiliation.identifier",
            "path": "OrganizationAffiliation.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OrganizationAffiliation.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.active",
            "path": "OrganizationAffiliation.active",
            "comment": "If this value is false, you may refer to the period to see when the role was in active use. If there is no period specified, no inference can be made about when it was active.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OrganizationAffiliation.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.period",
            "path": "OrganizationAffiliation.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OrganizationAffiliation.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.organization",
            "path": "OrganizationAffiliation.organization",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OrganizationAffiliation.organization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.participatingOrganization",
            "path": "OrganizationAffiliation.participatingOrganization",
            "min": 0,
            "max": "1",
            "base": {
              "path": "OrganizationAffiliation.participatingOrganization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.network",
            "path": "OrganizationAffiliation.network",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OrganizationAffiliation.network",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.code",
            "path": "OrganizationAffiliation.code",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OrganizationAffiliation.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OrganizationAffiliation"
                }
              ],
              "strength": "example",
              "description": "The role the participating organization providing services to the primary organization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/organization-role"
            }
          },
          {
            "id": "OrganizationAffiliation.specialty",
            "path": "OrganizationAffiliation.specialty",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OrganizationAffiliation.specialty",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OrganizationSpecialty"
                }
              ],
              "strength": "preferred",
              "description": "Specific specialty associated with the participating organization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "OrganizationAffiliation.location",
            "path": "OrganizationAffiliation.location",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OrganizationAffiliation.location",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.healthcareService",
            "path": "OrganizationAffiliation.healthcareService",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OrganizationAffiliation.healthcareService",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "OrganizationAffiliation.telecom",
            "path": "OrganizationAffiliation.telecom",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OrganizationAffiliation.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.endpoint",
            "path": "OrganizationAffiliation.endpoint",
            "min": 0,
            "max": "*",
            "base": {
              "path": "OrganizationAffiliation.endpoint",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "OrganizationAffiliation",
            "path": "OrganizationAffiliation",
            "min": 0,
            "max": "*"
          },
          {
            "id": "OrganizationAffiliation.identifier",
            "path": "OrganizationAffiliation.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.active",
            "path": "OrganizationAffiliation.active",
            "comment": "If this value is false, you may refer to the period to see when the role was in active use. If there is no period specified, no inference can be made about when it was active.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.period",
            "path": "OrganizationAffiliation.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.organization",
            "path": "OrganizationAffiliation.organization",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.participatingOrganization",
            "path": "OrganizationAffiliation.participatingOrganization",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.network",
            "path": "OrganizationAffiliation.network",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.code",
            "path": "OrganizationAffiliation.code",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OrganizationAffiliation"
                }
              ],
              "strength": "example",
              "description": "The role the participating organization providing services to the primary organization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/organization-role"
            }
          },
          {
            "id": "OrganizationAffiliation.specialty",
            "path": "OrganizationAffiliation.specialty",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OrganizationSpecialty"
                }
              ],
              "strength": "preferred",
              "description": "Specific specialty associated with the participating organization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "OrganizationAffiliation.location",
            "path": "OrganizationAffiliation.location",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.healthcareService",
            "path": "OrganizationAffiliation.healthcareService",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ]
          },
          {
            "id": "OrganizationAffiliation.telecom",
            "path": "OrganizationAffiliation.telecom",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "isSummary": true
          },
          {
            "id": "OrganizationAffiliation.endpoint",
            "path": "OrganizationAffiliation.endpoint",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Parameters",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Parameters",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Other"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Parameters",
      "version": "4.0.1",
      "name": "Parameters",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Parameters",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Resource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Parameters",
            "path": "Parameters",
            "comment": "The parameters that may be used are defined by the OperationDefinition resource.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Parameters",
              "min": 0,
              "max": "*"
            },
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Parameters.id",
            "path": "Parameters.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Parameters.meta",
            "path": "Parameters.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Parameters.implicitRules",
            "path": "Parameters.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Parameters.language",
            "path": "Parameters.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Parameters.parameter",
            "path": "Parameters.parameter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Parameters.parameter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "inv-1",
                "severity": "error",
                "human": "A parameter must have one and only one of (value, resource, part)",
                "expression": "(part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))",
                "xpath": "(exists(f:resource) or exists(f:part) or exists(f:*[starts-with(local-name(.), 'value')])) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:resource))) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:part))) and not(exists(f:part) and exists(f:resource))"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Parameters.parameter.id",
            "path": "Parameters.parameter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Parameters.parameter.extension",
            "path": "Parameters.parameter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Parameters.parameter.modifierExtension",
            "path": "Parameters.parameter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Parameters.parameter.name",
            "path": "Parameters.parameter.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Parameters.parameter.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Parameters.parameter.value[x]",
            "path": "Parameters.parameter.value[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Parameters.parameter.value[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "base64Binary"
              },
              {
                "code": "boolean"
              },
              {
                "code": "canonical"
              },
              {
                "code": "code"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "decimal"
              },
              {
                "code": "id"
              },
              {
                "code": "instant"
              },
              {
                "code": "integer"
              },
              {
                "code": "markdown"
              },
              {
                "code": "oid"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              },
              {
                "code": "time"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "uri"
              },
              {
                "code": "url"
              },
              {
                "code": "uuid"
              },
              {
                "code": "Address"
              },
              {
                "code": "Age"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Count"
              },
              {
                "code": "Distance"
              },
              {
                "code": "Duration"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "Money"
              },
              {
                "code": "Period"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "Reference"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "Timing"
              },
              {
                "code": "ContactDetail"
              },
              {
                "code": "Contributor"
              },
              {
                "code": "DataRequirement"
              },
              {
                "code": "Expression"
              },
              {
                "code": "ParameterDefinition"
              },
              {
                "code": "RelatedArtifact"
              },
              {
                "code": "TriggerDefinition"
              },
              {
                "code": "UsageContext"
              },
              {
                "code": "Dosage"
              },
              {
                "code": "Meta"
              }
            ],
            "condition": [
              "inv-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Parameters.parameter.resource",
            "path": "Parameters.parameter.resource",
            "comment": "When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Parameters.parameter.resource",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "condition": [
              "inv-1"
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Parameters.parameter.part",
            "path": "Parameters.parameter.part",
            "comment": "Only one level of nested parameters is allowed.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Parameters.parameter.part",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#Parameters.parameter",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Parameters",
            "path": "Parameters",
            "comment": "The parameters that may be used are defined by the OperationDefinition resource.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Parameters.parameter",
            "path": "Parameters.parameter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "inv-1",
                "severity": "error",
                "human": "A parameter must have one and only one of (value, resource, part)",
                "expression": "(part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))",
                "xpath": "(exists(f:resource) or exists(f:part) or exists(f:*[starts-with(local-name(.), 'value')])) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:resource))) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:part))) and not(exists(f:part) and exists(f:resource))"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Parameters.parameter.name",
            "path": "Parameters.parameter.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Parameters.parameter.value[x]",
            "path": "Parameters.parameter.value[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "base64Binary"
              },
              {
                "code": "boolean"
              },
              {
                "code": "canonical"
              },
              {
                "code": "code"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "decimal"
              },
              {
                "code": "id"
              },
              {
                "code": "instant"
              },
              {
                "code": "integer"
              },
              {
                "code": "markdown"
              },
              {
                "code": "oid"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              },
              {
                "code": "time"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "uri"
              },
              {
                "code": "url"
              },
              {
                "code": "uuid"
              },
              {
                "code": "Address"
              },
              {
                "code": "Age"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Count"
              },
              {
                "code": "Distance"
              },
              {
                "code": "Duration"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "Money"
              },
              {
                "code": "Period"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "Reference"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "Timing"
              },
              {
                "code": "ContactDetail"
              },
              {
                "code": "Contributor"
              },
              {
                "code": "DataRequirement"
              },
              {
                "code": "Expression"
              },
              {
                "code": "ParameterDefinition"
              },
              {
                "code": "RelatedArtifact"
              },
              {
                "code": "TriggerDefinition"
              },
              {
                "code": "UsageContext"
              },
              {
                "code": "Dosage"
              },
              {
                "code": "Meta"
              }
            ],
            "condition": [
              "inv-1"
            ],
            "isSummary": true
          },
          {
            "id": "Parameters.parameter.resource",
            "path": "Parameters.parameter.resource",
            "comment": "When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Resource"
              }
            ],
            "condition": [
              "inv-1"
            ],
            "isSummary": true
          },
          {
            "id": "Parameters.parameter.part",
            "path": "Parameters.parameter.part",
            "comment": "Only one level of nested parameters is allowed.",
            "min": 0,
            "max": "*",
            "contentReference": "#Parameters.parameter",
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Patient",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Patient",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Individuals"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Patient",
      "version": "4.0.1",
      "name": "Patient",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Tracking patient is the center of the healthcare process.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Patient",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Patient",
            "path": "Patient",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.id",
            "path": "Patient.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Patient.meta",
            "path": "Patient.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Patient.implicitRules",
            "path": "Patient.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Patient.language",
            "path": "Patient.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Patient.text",
            "path": "Patient.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.contained",
            "path": "Patient.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.extension",
            "path": "Patient.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.modifierExtension",
            "path": "Patient.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Patient.identifier",
            "path": "Patient.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Patient.active",
            "path": "Patient.active",
            "comment": "If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "Patient.name",
            "path": "Patient.name",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.name",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Patient.telecom",
            "path": "Patient.telecom",
            "comment": "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 might 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).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Patient.gender",
            "path": "Patient.gender",
            "comment": "The gender might 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 male and female, though the vast majority of systems and contexts only support male and female.  Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, 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, chromosomal and other gender aspects.  For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a \"hard\" error.  See the Patient Gender and Sex section for additional information about communicating patient gender and sex.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.gender",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "Patient.birthDate",
            "path": "Patient.birthDate",
            "comment": "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 maternity/infant care systems).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.birthDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Patient.deceased[x]",
            "path": "Patient.deceased[x]",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.deceased[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different.",
            "isSummary": true
          },
          {
            "id": "Patient.address",
            "path": "Patient.address",
            "comment": "Patient may have multiple addresses with different uses or applicable periods.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.address",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Address"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Patient.maritalStatus",
            "path": "Patient.maritalStatus",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.maritalStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MaritalStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "The domestic partnership status of a person.",
              "valueSet": "http://hl7.org/fhir/ValueSet/marital-status"
            }
          },
          {
            "id": "Patient.multipleBirth[x]",
            "path": "Patient.multipleBirth[x]",
            "comment": "Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.multipleBirth[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.photo",
            "path": "Patient.photo",
            "comment": "Guidelines:\n* Use id photos, not clinical photos.\n* Limit dimensions to thumbnail.\n* Keep byte count low to ease resource updates.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.photo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.contact",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Contact"
              }
            ],
            "path": "Patient.contact",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "pat-1",
                "severity": "error",
                "human": "SHALL at least contain a contact's details or a reference to an organization",
                "expression": "name.exists() or telecom.exists() or address.exists() or organization.exists()",
                "xpath": "exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.contact.id",
            "path": "Patient.contact.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.contact.extension",
            "path": "Patient.contact.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.contact.modifierExtension",
            "path": "Patient.contact.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Patient.contact.relationship",
            "path": "Patient.contact.relationship",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.contact.relationship",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContactRelationship"
                }
              ],
              "strength": "extensible",
              "description": "The nature of the relationship between a patient and a contact person for that patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/patient-contactrelationship"
            }
          },
          {
            "id": "Patient.contact.name",
            "path": "Patient.contact.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.contact.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.contact.telecom",
            "path": "Patient.contact.telecom",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.contact.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.contact.address",
            "path": "Patient.contact.address",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.contact.address",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Address"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.contact.gender",
            "path": "Patient.contact.gender",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.contact.gender",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "Patient.contact.organization",
            "path": "Patient.contact.organization",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.contact.organization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "condition": [
              "pat-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.contact.period",
            "path": "Patient.contact.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.contact.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.communication",
            "path": "Patient.communication",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.communication",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.communication.id",
            "path": "Patient.communication.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.communication.extension",
            "path": "Patient.communication.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.communication.modifierExtension",
            "path": "Patient.communication.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Patient.communication.language",
            "path": "Patient.communication.language",
            "comment": "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.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Patient.communication.language",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Patient.communication.preferred",
            "path": "Patient.communication.preferred",
            "comment": "This language is specifically identified for communicating healthcare information.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.communication.preferred",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.generalPractitioner",
            "path": "Patient.generalPractitioner",
            "comment": "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles.  It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources.\nMultiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a \"fly-in/fly-out\" worker that has the onsite GP also included with his home GP to remain aware of medical issues.\n\nJurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.generalPractitioner",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.managingOrganization",
            "path": "Patient.managingOrganization",
            "comment": "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).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Patient.managingOrganization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Patient.link",
            "path": "Patient.link",
            "comment": "There is no assumption that linked patient records have mutual links.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Patient.link",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'",
            "isSummary": true
          },
          {
            "id": "Patient.link.id",
            "path": "Patient.link.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.link.extension",
            "path": "Patient.link.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Patient.link.modifierExtension",
            "path": "Patient.link.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Patient.link.other",
            "path": "Patient.link.other",
            "comment": "Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Patient.link.other",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": false
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Patient.link.type",
            "path": "Patient.link.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Patient.link.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LinkType"
                }
              ],
              "strength": "required",
              "description": "The type of link between this patient resource and another patient resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/link-type|4.0.1"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Patient",
            "path": "Patient",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Patient.identifier",
            "path": "Patient.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Patient.active",
            "path": "Patient.active",
            "comment": "If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "Patient.name",
            "path": "Patient.name",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Patient.telecom",
            "path": "Patient.telecom",
            "comment": "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 might 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).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Patient.gender",
            "path": "Patient.gender",
            "comment": "The gender might 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 male and female, though the vast majority of systems and contexts only support male and female.  Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, 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, chromosomal and other gender aspects.  For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a \"hard\" error.  See the Patient Gender and Sex section for additional information about communicating patient gender and sex.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "Patient.birthDate",
            "path": "Patient.birthDate",
            "comment": "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 maternity/infant care systems).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Patient.deceased[x]",
            "path": "Patient.deceased[x]",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "dateTime"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different.",
            "isSummary": true
          },
          {
            "id": "Patient.address",
            "path": "Patient.address",
            "comment": "Patient may have multiple addresses with different uses or applicable periods.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Address"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Patient.maritalStatus",
            "path": "Patient.maritalStatus",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MaritalStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "The domestic partnership status of a person.",
              "valueSet": "http://hl7.org/fhir/ValueSet/marital-status"
            }
          },
          {
            "id": "Patient.multipleBirth[x]",
            "path": "Patient.multipleBirth[x]",
            "comment": "Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "Patient.photo",
            "path": "Patient.photo",
            "comment": "Guidelines:\n* Use id photos, not clinical photos.\n* Limit dimensions to thumbnail.\n* Keep byte count low to ease resource updates.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Attachment"
              }
            ]
          },
          {
            "id": "Patient.contact",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Contact"
              }
            ],
            "path": "Patient.contact",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "pat-1",
                "severity": "error",
                "human": "SHALL at least contain a contact's details or a reference to an organization",
                "expression": "name.exists() or telecom.exists() or address.exists() or organization.exists()",
                "xpath": "exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)"
              }
            ]
          },
          {
            "id": "Patient.contact.relationship",
            "path": "Patient.contact.relationship",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContactRelationship"
                }
              ],
              "strength": "extensible",
              "description": "The nature of the relationship between a patient and a contact person for that patient.",
              "valueSet": "http://hl7.org/fhir/ValueSet/patient-contactrelationship"
            }
          },
          {
            "id": "Patient.contact.name",
            "path": "Patient.contact.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "HumanName"
              }
            ]
          },
          {
            "id": "Patient.contact.telecom",
            "path": "Patient.contact.telecom",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ]
          },
          {
            "id": "Patient.contact.address",
            "path": "Patient.contact.address",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Address"
              }
            ]
          },
          {
            "id": "Patient.contact.gender",
            "path": "Patient.contact.gender",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "Patient.contact.organization",
            "path": "Patient.contact.organization",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "condition": [
              "pat-1"
            ]
          },
          {
            "id": "Patient.contact.period",
            "path": "Patient.contact.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Patient.communication",
            "path": "Patient.communication",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Patient.communication.language",
            "path": "Patient.communication.language",
            "comment": "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.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Patient.communication.preferred",
            "path": "Patient.communication.preferred",
            "comment": "This language is specifically identified for communicating healthcare information.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "Patient.generalPractitioner",
            "path": "Patient.generalPractitioner",
            "comment": "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles.  It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources.\nMultiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a \"fly-in/fly-out\" worker that has the onsite GP also included with his home GP to remain aware of medical issues.\n\nJurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "Patient.managingOrganization",
            "path": "Patient.managingOrganization",
            "comment": "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).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Patient.link",
            "path": "Patient.link",
            "comment": "There is no assumption that linked patient records have mutual links.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'",
            "isSummary": true
          },
          {
            "id": "Patient.link.other",
            "path": "Patient.link.other",
            "comment": "Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": false
                  }
                ],
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Patient.link.type",
            "path": "Patient.link.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "LinkType"
                }
              ],
              "strength": "required",
              "description": "The type of link between this patient resource and another patient resource.",
              "valueSet": "http://hl7.org/fhir/ValueSet/link-type|4.0.1"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/PaymentNotice",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "PaymentNotice",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.Payment"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/PaymentNotice",
      "version": "4.0.1",
      "name": "PaymentNotice",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "PaymentNotice",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "PaymentNotice",
            "path": "PaymentNotice",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PaymentNotice",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentNotice.id",
            "path": "PaymentNotice.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentNotice.meta",
            "path": "PaymentNotice.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentNotice.implicitRules",
            "path": "PaymentNotice.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "PaymentNotice.language",
            "path": "PaymentNotice.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "PaymentNotice.text",
            "path": "PaymentNotice.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentNotice.contained",
            "path": "PaymentNotice.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentNotice.extension",
            "path": "PaymentNotice.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentNotice.modifierExtension",
            "path": "PaymentNotice.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "PaymentNotice.identifier",
            "path": "PaymentNotice.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PaymentNotice.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentNotice.status",
            "path": "PaymentNotice.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PaymentNotice.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentNoticeStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "PaymentNotice.request",
            "path": "PaymentNotice.request",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentNotice.request",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentNotice.response",
            "path": "PaymentNotice.response",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentNotice.response",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentNotice.created",
            "path": "PaymentNotice.created",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PaymentNotice.created",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentNotice.provider",
            "path": "PaymentNotice.provider",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentNotice.provider",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentNotice.payment",
            "path": "PaymentNotice.payment",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PaymentNotice.payment",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PaymentReconciliation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentNotice.paymentDate",
            "path": "PaymentNotice.paymentDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentNotice.paymentDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentNotice.payee",
            "path": "PaymentNotice.payee",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentNotice.payee",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentNotice.recipient",
            "path": "PaymentNotice.recipient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PaymentNotice.recipient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentNotice.amount",
            "path": "PaymentNotice.amount",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PaymentNotice.amount",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentNotice.paymentStatus",
            "path": "PaymentNotice.paymentStatus",
            "comment": "Typically paid: payment sent, cleared: payment received.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentNotice.paymentStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentStatus"
                }
              ],
              "strength": "example",
              "description": "The payment conveyance status codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payment-status"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "PaymentNotice",
            "path": "PaymentNotice",
            "min": 0,
            "max": "*"
          },
          {
            "id": "PaymentNotice.identifier",
            "path": "PaymentNotice.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "PaymentNotice.status",
            "path": "PaymentNotice.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentNoticeStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "PaymentNotice.request",
            "path": "PaymentNotice.request",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "PaymentNotice.response",
            "path": "PaymentNotice.response",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "PaymentNotice.created",
            "path": "PaymentNotice.created",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PaymentNotice.provider",
            "path": "PaymentNotice.provider",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "PaymentNotice.payment",
            "path": "PaymentNotice.payment",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PaymentReconciliation"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "PaymentNotice.paymentDate",
            "path": "PaymentNotice.paymentDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "PaymentNotice.payee",
            "path": "PaymentNotice.payee",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "PaymentNotice.recipient",
            "path": "PaymentNotice.recipient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "PaymentNotice.amount",
            "path": "PaymentNotice.amount",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PaymentNotice.paymentStatus",
            "path": "PaymentNotice.paymentStatus",
            "comment": "Typically paid: payment sent, cleared: payment received.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentStatus"
                }
              ],
              "strength": "example",
              "description": "The payment conveyance status codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payment-status"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/PaymentReconciliation",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "PaymentReconciliation",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Financial.Payment"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/PaymentReconciliation",
      "version": "4.0.1",
      "name": "PaymentReconciliation",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "PaymentReconciliation",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "PaymentReconciliation",
            "path": "PaymentReconciliation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PaymentReconciliation",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.id",
            "path": "PaymentReconciliation.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.meta",
            "path": "PaymentReconciliation.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.implicitRules",
            "path": "PaymentReconciliation.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.language",
            "path": "PaymentReconciliation.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "PaymentReconciliation.text",
            "path": "PaymentReconciliation.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.contained",
            "path": "PaymentReconciliation.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.extension",
            "path": "PaymentReconciliation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.modifierExtension",
            "path": "PaymentReconciliation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.identifier",
            "path": "PaymentReconciliation.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PaymentReconciliation.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.status",
            "path": "PaymentReconciliation.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentReconciliationStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "PaymentReconciliation.period",
            "path": "PaymentReconciliation.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.created",
            "path": "PaymentReconciliation.created",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.created",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.paymentIssuer",
            "path": "PaymentReconciliation.paymentIssuer",
            "comment": "This party is also responsible for the reconciliation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.paymentIssuer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.request",
            "path": "PaymentReconciliation.request",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.request",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Task"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.requestor",
            "path": "PaymentReconciliation.requestor",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.requestor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.outcome",
            "path": "PaymentReconciliation.outcome",
            "comment": "The resource may be used to indicate that: the request has been held (queued) for processing; that it has been processed and errors found (error); that no errors were found and that some of the adjudication has been undertaken (partial) or that all of the adjudication has been undertaken (complete).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.outcome",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RemittanceOutcome"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The outcome of the processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1"
            }
          },
          {
            "id": "PaymentReconciliation.disposition",
            "path": "PaymentReconciliation.disposition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.disposition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.paymentDate",
            "path": "PaymentReconciliation.paymentDate",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.paymentDate",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.paymentAmount",
            "path": "PaymentReconciliation.paymentAmount",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.paymentAmount",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.paymentIdentifier",
            "path": "PaymentReconciliation.paymentIdentifier",
            "comment": "For example: EFT number or check number.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.paymentIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Details"
              }
            ],
            "path": "PaymentReconciliation.detail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PaymentReconciliation.detail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.id",
            "path": "PaymentReconciliation.detail.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.extension",
            "path": "PaymentReconciliation.detail.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.modifierExtension",
            "path": "PaymentReconciliation.detail.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.detail.identifier",
            "path": "PaymentReconciliation.detail.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.detail.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.predecessor",
            "path": "PaymentReconciliation.detail.predecessor",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.detail.predecessor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.type",
            "path": "PaymentReconciliation.detail.type",
            "comment": "For example: payment, adjustment, funds advance, etc.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.detail.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentType"
                }
              ],
              "strength": "example",
              "description": "The reason for the amount: payment, adjustment, advance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payment-type"
            }
          },
          {
            "id": "PaymentReconciliation.detail.request",
            "path": "PaymentReconciliation.detail.request",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.detail.request",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.submitter",
            "path": "PaymentReconciliation.detail.submitter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.detail.submitter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.response",
            "path": "PaymentReconciliation.detail.response",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.detail.response",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.date",
            "path": "PaymentReconciliation.detail.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.detail.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.responsible",
            "path": "PaymentReconciliation.detail.responsible",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.detail.responsible",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.payee",
            "path": "PaymentReconciliation.detail.payee",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.detail.payee",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.detail.amount",
            "path": "PaymentReconciliation.detail.amount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.detail.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Money"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.formCode",
            "path": "PaymentReconciliation.formCode",
            "comment": "May be needed to identify specific jurisdictional forms.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.formCode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Forms"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "The forms codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/forms"
            }
          },
          {
            "id": "PaymentReconciliation.processNote",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Notes"
              }
            ],
            "path": "PaymentReconciliation.processNote",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PaymentReconciliation.processNote",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.processNote.id",
            "path": "PaymentReconciliation.processNote.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.processNote.extension",
            "path": "PaymentReconciliation.processNote.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PaymentReconciliation.processNote.modifierExtension",
            "path": "PaymentReconciliation.processNote.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.processNote.type",
            "path": "PaymentReconciliation.processNote.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.processNote.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NoteType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The presentation types of notes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/note-type|4.0.1"
            }
          },
          {
            "id": "PaymentReconciliation.processNote.text",
            "path": "PaymentReconciliation.processNote.text",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PaymentReconciliation.processNote.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "PaymentReconciliation",
            "path": "PaymentReconciliation",
            "min": 0,
            "max": "*"
          },
          {
            "id": "PaymentReconciliation.identifier",
            "path": "PaymentReconciliation.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "PaymentReconciliation.status",
            "path": "PaymentReconciliation.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentReconciliationStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "PaymentReconciliation.period",
            "path": "PaymentReconciliation.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.created",
            "path": "PaymentReconciliation.created",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.paymentIssuer",
            "path": "PaymentReconciliation.paymentIssuer",
            "comment": "This party is also responsible for the reconciliation.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.request",
            "path": "PaymentReconciliation.request",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Task"
                ]
              }
            ]
          },
          {
            "id": "PaymentReconciliation.requestor",
            "path": "PaymentReconciliation.requestor",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "PaymentReconciliation.outcome",
            "path": "PaymentReconciliation.outcome",
            "comment": "The resource may be used to indicate that: the request has been held (queued) for processing; that it has been processed and errors found (error); that no errors were found and that some of the adjudication has been undertaken (partial) or that all of the adjudication has been undertaken (complete).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RemittanceOutcome"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The outcome of the processing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1"
            }
          },
          {
            "id": "PaymentReconciliation.disposition",
            "path": "PaymentReconciliation.disposition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "PaymentReconciliation.paymentDate",
            "path": "PaymentReconciliation.paymentDate",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.paymentAmount",
            "path": "PaymentReconciliation.paymentAmount",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PaymentReconciliation.paymentIdentifier",
            "path": "PaymentReconciliation.paymentIdentifier",
            "comment": "For example: EFT number or check number.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "PaymentReconciliation.detail",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Details"
              }
            ],
            "path": "PaymentReconciliation.detail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PaymentReconciliation.detail.identifier",
            "path": "PaymentReconciliation.detail.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "PaymentReconciliation.detail.predecessor",
            "path": "PaymentReconciliation.detail.predecessor",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "PaymentReconciliation.detail.type",
            "path": "PaymentReconciliation.detail.type",
            "comment": "For example: payment, adjustment, funds advance, etc.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PaymentType"
                }
              ],
              "strength": "example",
              "description": "The reason for the amount: payment, adjustment, advance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/payment-type"
            }
          },
          {
            "id": "PaymentReconciliation.detail.request",
            "path": "PaymentReconciliation.detail.request",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "PaymentReconciliation.detail.submitter",
            "path": "PaymentReconciliation.detail.submitter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "PaymentReconciliation.detail.response",
            "path": "PaymentReconciliation.detail.response",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "PaymentReconciliation.detail.date",
            "path": "PaymentReconciliation.detail.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "PaymentReconciliation.detail.responsible",
            "path": "PaymentReconciliation.detail.responsible",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "PaymentReconciliation.detail.payee",
            "path": "PaymentReconciliation.detail.payee",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "PaymentReconciliation.detail.amount",
            "path": "PaymentReconciliation.detail.amount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Money"
              }
            ]
          },
          {
            "id": "PaymentReconciliation.formCode",
            "path": "PaymentReconciliation.formCode",
            "comment": "May be needed to identify specific jurisdictional forms.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Forms"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "example",
              "description": "The forms codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/forms"
            }
          },
          {
            "id": "PaymentReconciliation.processNote",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Notes"
              }
            ],
            "path": "PaymentReconciliation.processNote",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PaymentReconciliation.processNote.type",
            "path": "PaymentReconciliation.processNote.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "NoteType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The presentation types of notes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/note-type|4.0.1"
            }
          },
          {
            "id": "PaymentReconciliation.processNote.text",
            "path": "PaymentReconciliation.processNote.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Person",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Person",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Individuals"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Person",
      "version": "4.0.1",
      "name": "Person",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Need to track persons potentially across multiple roles.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Person",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Person",
            "path": "Person",
            "comment": "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": "*",
            "base": {
              "path": "Person",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.id",
            "path": "Person.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Person.meta",
            "path": "Person.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Person.implicitRules",
            "path": "Person.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Person.language",
            "path": "Person.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Person.text",
            "path": "Person.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.contained",
            "path": "Person.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.extension",
            "path": "Person.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.modifierExtension",
            "path": "Person.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Person.identifier",
            "path": "Person.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Person.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.name",
            "path": "Person.name",
            "comment": "Person may have multiple names with different uses or applicable periods.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Person.name",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Person.telecom",
            "path": "Person.telecom",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Person.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Person.gender",
            "path": "Person.gender",
            "comment": "The gender might 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 a clear majority of systems and contexts only support M and F.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Person.gender",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "Person.birthDate",
            "path": "Person.birthDate",
            "comment": "At least an estimated year should be provided as a guess if the real DOB is unknown.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Person.birthDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Person.address",
            "path": "Person.address",
            "comment": "Person may have multiple addresses with different uses or applicable periods.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Person.address",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Address"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.photo",
            "path": "Person.photo",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Person.photo",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.managingOrganization",
            "path": "Person.managingOrganization",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Person.managingOrganization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Person.active",
            "path": "Person.active",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Person.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "Person.link",
            "path": "Person.link",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Person.link",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.link.id",
            "path": "Person.link.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.link.extension",
            "path": "Person.link.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.link.modifierExtension",
            "path": "Person.link.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Person.link.target",
            "path": "Person.link.target",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Person.link.target",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Person"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Person.link.assurance",
            "path": "Person.link.assurance",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Person.link.assurance",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IdentityAssuranceLevel"
                }
              ],
              "strength": "required",
              "description": "The level of confidence that this link represents the same actual person, based on NIST Authentication Levels.",
              "valueSet": "http://hl7.org/fhir/ValueSet/identity-assuranceLevel|4.0.1"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Person",
            "path": "Person",
            "comment": "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": "*"
          },
          {
            "id": "Person.identifier",
            "path": "Person.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Person.name",
            "path": "Person.name",
            "comment": "Person may have multiple names with different uses or applicable periods.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Person.telecom",
            "path": "Person.telecom",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Person.gender",
            "path": "Person.gender",
            "comment": "The gender might 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 a clear majority of systems and contexts only support M and F.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "Person.birthDate",
            "path": "Person.birthDate",
            "comment": "At least an estimated year should be provided as a guess if the real DOB is unknown.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Person.address",
            "path": "Person.address",
            "comment": "Person may have multiple addresses with different uses or applicable periods.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Address"
              }
            ]
          },
          {
            "id": "Person.photo",
            "path": "Person.photo",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              }
            ]
          },
          {
            "id": "Person.managingOrganization",
            "path": "Person.managingOrganization",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Person.active",
            "path": "Person.active",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "Person.link",
            "path": "Person.link",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Person.link.target",
            "path": "Person.link.target",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Person"
                ]
              }
            ]
          },
          {
            "id": "Person.link.assurance",
            "path": "Person.link.assurance",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IdentityAssuranceLevel"
                }
              ],
              "strength": "required",
              "description": "The level of confidence that this link represents the same actual person, based on NIST Authentication Levels.",
              "valueSet": "http://hl7.org/fhir/ValueSet/identity-assuranceLevel|4.0.1"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "PlanDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Definitional Artifacts"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
      "version": "4.0.1",
      "name": "PlanDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "PlanDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "PlanDefinition",
            "path": "PlanDefinition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "pdf-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.id",
            "path": "PlanDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.meta",
            "path": "PlanDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.implicitRules",
            "path": "PlanDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "PlanDefinition.language",
            "path": "PlanDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "PlanDefinition.text",
            "path": "PlanDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.contained",
            "path": "PlanDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.extension",
            "path": "PlanDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.modifierExtension",
            "path": "PlanDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "PlanDefinition.url",
            "path": "PlanDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.identifier",
            "path": "PlanDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this plan definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.version",
            "path": "PlanDefinition.version",
            "comment": "There may be different plan definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the plan definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.name",
            "path": "PlanDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.title",
            "path": "PlanDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.subtitle",
            "path": "PlanDefinition.subtitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.subtitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.type",
            "path": "PlanDefinition.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PlanDefinitionType"
                }
              ],
              "strength": "extensible",
              "description": "The type of PlanDefinition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/plan-definition-type"
            }
          },
          {
            "id": "PlanDefinition.status",
            "path": "PlanDefinition.status",
            "comment": "Allows filtering of plan definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PlanDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.experimental",
            "path": "PlanDefinition.experimental",
            "comment": "Allows filtering of plan definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.subject[x]",
            "path": "PlanDefinition.subject[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.subject[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for a plan definition (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "PlanDefinition.date",
            "path": "PlanDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the plan definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.publisher",
            "path": "PlanDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the plan definition is the organization or individual primarily responsible for the maintenance and upkeep of the plan definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the plan definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.contact",
            "path": "PlanDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.description",
            "path": "PlanDefinition.description",
            "comment": "This description can be used to capture details such as why the plan definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the plan definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the plan definition is presumed to be the predominant language in the place the plan definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.useContext",
            "path": "PlanDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.jurisdiction",
            "path": "PlanDefinition.jurisdiction",
            "comment": "It may be possible for the plan definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "PlanDefinition.purpose",
            "path": "PlanDefinition.purpose",
            "comment": "This element does not describe the usage of the plan definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this plan definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.usage",
            "path": "PlanDefinition.usage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.usage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.copyright",
            "path": "PlanDefinition.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.approvalDate",
            "path": "PlanDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.lastReviewDate",
            "path": "PlanDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.effectivePeriod",
            "path": "PlanDefinition.effectivePeriod",
            "comment": "The effective period for a plan definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PlanDefinition.topic",
            "path": "PlanDefinition.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "PlanDefinition.author",
            "path": "PlanDefinition.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.editor",
            "path": "PlanDefinition.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.reviewer",
            "path": "PlanDefinition.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.endorser",
            "path": "PlanDefinition.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.relatedArtifact",
            "path": "PlanDefinition.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.library",
            "path": "PlanDefinition.library",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.library",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Library"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.goal",
            "path": "PlanDefinition.goal",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.goal",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.goal.id",
            "path": "PlanDefinition.goal.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.goal.extension",
            "path": "PlanDefinition.goal.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.goal.modifierExtension",
            "path": "PlanDefinition.goal.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PlanDefinition.goal.category",
            "path": "PlanDefinition.goal.category",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.goal.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalCategory"
                }
              ],
              "strength": "example",
              "description": "Example codes for grouping goals for filtering or presentation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-category"
            }
          },
          {
            "id": "PlanDefinition.goal.description",
            "path": "PlanDefinition.goal.description",
            "comment": "If no code is available, use CodeableConcept.text.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PlanDefinition.goal.description",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalDescription"
                }
              ],
              "strength": "example",
              "description": "Describes goals that can be achieved.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "PlanDefinition.goal.priority",
            "path": "PlanDefinition.goal.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.goal.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalPriority"
                }
              ],
              "strength": "preferred",
              "description": "Indicates the level of importance associated with reaching or sustaining a goal.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-priority"
            }
          },
          {
            "id": "PlanDefinition.goal.start",
            "path": "PlanDefinition.goal.start",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.goal.start",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalStartEvent"
                }
              ],
              "strength": "example",
              "description": "Identifies the types of events that might trigger the start of a goal.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-start-event"
            }
          },
          {
            "id": "PlanDefinition.goal.addresses",
            "path": "PlanDefinition.goal.addresses",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.goal.addresses",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalAddresses"
                }
              ],
              "strength": "example",
              "description": "Identifies problems, conditions, issues, or concerns that goals may address.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "PlanDefinition.goal.documentation",
            "path": "PlanDefinition.goal.documentation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.goal.documentation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.goal.target",
            "path": "PlanDefinition.goal.target",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.goal.target",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.goal.target.id",
            "path": "PlanDefinition.goal.target.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.goal.target.extension",
            "path": "PlanDefinition.goal.target.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.goal.target.modifierExtension",
            "path": "PlanDefinition.goal.target.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PlanDefinition.goal.target.measure",
            "path": "PlanDefinition.goal.target.measure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.goal.target.measure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalTargetMeasure"
                }
              ],
              "strength": "example",
              "description": "Identifies types of parameters that can be tracked to determine goal achievement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
            }
          },
          {
            "id": "PlanDefinition.goal.target.detail[x]",
            "path": "PlanDefinition.goal.target.detail[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.goal.target.detail[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.goal.target.due",
            "path": "PlanDefinition.goal.target.due",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.goal.target.due",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action",
            "path": "PlanDefinition.action",
            "comment": "Note that there is overlap between many of the elements defined here and the ActivityDefinition resource. When an ActivityDefinition is referenced (using the definition element), the overlapping elements in the plan override the content of the referenced ActivityDefinition unless otherwise documented in the specific elements. See the PlanDefinition resource for more detailed information.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.id",
            "path": "PlanDefinition.action.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.extension",
            "path": "PlanDefinition.action.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.modifierExtension",
            "path": "PlanDefinition.action.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PlanDefinition.action.prefix",
            "path": "PlanDefinition.action.prefix",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.prefix",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.title",
            "path": "PlanDefinition.action.title",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.description",
            "path": "PlanDefinition.action.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.textEquivalent",
            "path": "PlanDefinition.action.textEquivalent",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.textEquivalent",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.priority",
            "path": "PlanDefinition.action.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.code",
            "path": "PlanDefinition.action.code",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.reason",
            "path": "PlanDefinition.action.reason",
            "comment": "This is different than the clinical evidence documentation, it's an actual business description of the reason for performing the action.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.reason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.documentation",
            "path": "PlanDefinition.action.documentation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.documentation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.goalId",
            "path": "PlanDefinition.action.goalId",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.goalId",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.subject[x]",
            "path": "PlanDefinition.action.subject[x]",
            "comment": "The subject of an action overrides the subject at a parent action or on the root of the PlanDefinition if specified.\n\nIn addition, because the subject needs to be resolved during realization, use of subjects in actions (or in the ActivityDefinition referenced by the action) resolves based on the set of subjects supplied in context and by type (i.e. the patient subject would resolve to a resource of type Patient).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.subject[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for a plan definition (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "PlanDefinition.action.trigger",
            "path": "PlanDefinition.action.trigger",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.trigger",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "TriggerDefinition"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.condition",
            "path": "PlanDefinition.action.condition",
            "comment": "When multiple conditions of the same kind are present, the effects are combined using AND semantics, so the overall condition is true only if all the conditions are true.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.condition",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.condition.id",
            "path": "PlanDefinition.action.condition.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.condition.extension",
            "path": "PlanDefinition.action.condition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.condition.modifierExtension",
            "path": "PlanDefinition.action.condition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PlanDefinition.action.condition.kind",
            "path": "PlanDefinition.action.condition.kind",
            "comment": "Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe enter/exit criteria for an action.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.condition.kind",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionConditionKind"
                }
              ],
              "strength": "required",
              "description": "Defines the kinds of conditions that can appear on actions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-condition-kind|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.condition.expression",
            "path": "PlanDefinition.action.condition.expression",
            "comment": "The expression may be inlined or may be a reference to a named expression within a logic library referenced by the library element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.condition.expression",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Expression"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.input",
            "path": "PlanDefinition.action.input",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.input",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "DataRequirement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.output",
            "path": "PlanDefinition.action.output",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.output",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "DataRequirement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.relatedAction",
            "path": "PlanDefinition.action.relatedAction",
            "comment": "When an action depends on multiple actions, the meaning is that all actions are dependencies, rather than that any of the actions are a dependency.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.relatedAction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.relatedAction.id",
            "path": "PlanDefinition.action.relatedAction.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.relatedAction.extension",
            "path": "PlanDefinition.action.relatedAction.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.relatedAction.modifierExtension",
            "path": "PlanDefinition.action.relatedAction.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PlanDefinition.action.relatedAction.actionId",
            "path": "PlanDefinition.action.relatedAction.actionId",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.relatedAction.actionId",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.relatedAction.relationship",
            "path": "PlanDefinition.action.relatedAction.relationship",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.relatedAction.relationship",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionRelationshipType"
                }
              ],
              "strength": "required",
              "description": "Defines the types of relationships between actions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.relatedAction.offset[x]",
            "path": "PlanDefinition.action.relatedAction.offset[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.relatedAction.offset[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              },
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.timing[x]",
            "path": "PlanDefinition.action.timing[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.timing[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Duration"
              },
              {
                "code": "Range"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.participant",
            "path": "PlanDefinition.action.participant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.participant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.participant.id",
            "path": "PlanDefinition.action.participant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.participant.extension",
            "path": "PlanDefinition.action.participant.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.participant.modifierExtension",
            "path": "PlanDefinition.action.participant.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PlanDefinition.action.participant.type",
            "path": "PlanDefinition.action.participant.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.participant.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionParticipantType"
                }
              ],
              "strength": "required",
              "description": "The type of participant for the action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.participant.role",
            "path": "PlanDefinition.action.participant.role",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.participant.role",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionParticipantRole"
                }
              ],
              "strength": "example",
              "description": "Defines roles played by participants for the action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-participant-role"
            }
          },
          {
            "id": "PlanDefinition.action.type",
            "path": "PlanDefinition.action.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionType"
                }
              ],
              "strength": "extensible",
              "description": "The type of action to be performed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-type"
            }
          },
          {
            "id": "PlanDefinition.action.groupingBehavior",
            "path": "PlanDefinition.action.groupingBehavior",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.groupingBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionGroupingBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines organization behavior of a group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-grouping-behavior|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.selectionBehavior",
            "path": "PlanDefinition.action.selectionBehavior",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.selectionBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionSelectionBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines selection behavior of a group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-selection-behavior|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.requiredBehavior",
            "path": "PlanDefinition.action.requiredBehavior",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.requiredBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionRequiredBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines expectations around whether an action or action group is required.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-required-behavior|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.precheckBehavior",
            "path": "PlanDefinition.action.precheckBehavior",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.precheckBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionPrecheckBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines selection frequency behavior for an action or group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-precheck-behavior|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.cardinalityBehavior",
            "path": "PlanDefinition.action.cardinalityBehavior",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.cardinalityBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionCardinalityBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines behavior for an action or a group for how many times that item may be repeated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-cardinality-behavior|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.definition[x]",
            "path": "PlanDefinition.action.definition[x]",
            "comment": "Note that the definition is optional, and if no definition is specified, a dynamicValue with a root ($this) path can be used to define the entire resource dynamically.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.definition[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              },
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.transform",
            "path": "PlanDefinition.action.transform",
            "comment": "Note that when a referenced ActivityDefinition also defines a transform, the transform specified here generally takes precedence. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.transform",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureMap"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.dynamicValue",
            "path": "PlanDefinition.action.dynamicValue",
            "comment": "Dynamic values are applied in the order in which they are defined in the PlanDefinition resource. Note that when dynamic values are also specified by a referenced ActivityDefinition, the dynamicValues from the ActivityDefinition are applied first, followed by the dynamicValues specified here. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.dynamicValue",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.dynamicValue.id",
            "path": "PlanDefinition.action.dynamicValue.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.dynamicValue.extension",
            "path": "PlanDefinition.action.dynamicValue.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.dynamicValue.modifierExtension",
            "path": "PlanDefinition.action.dynamicValue.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PlanDefinition.action.dynamicValue.path",
            "path": "PlanDefinition.action.dynamicValue.path",
            "comment": "To specify the path to the current action being realized, the %action environment variable is available in this path. For example, to specify the description element of the target action, the path would be %action.description. The path attribute contains a [Simple FHIRPath Subset](fhirpath.html#simple) that allows path traversal, but not calculation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.dynamicValue.path",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.dynamicValue.expression",
            "path": "PlanDefinition.action.dynamicValue.expression",
            "comment": "The expression may be inlined or may be a reference to a named expression within a logic library referenced by the library element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PlanDefinition.action.dynamicValue.expression",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Expression"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PlanDefinition.action.action",
            "path": "PlanDefinition.action.action",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PlanDefinition.action.action",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#PlanDefinition.action",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "PlanDefinition",
            "path": "PlanDefinition",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "pdf-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "PlanDefinition.url",
            "path": "PlanDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.identifier",
            "path": "PlanDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this plan definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.version",
            "path": "PlanDefinition.version",
            "comment": "There may be different plan definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the plan definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.name",
            "path": "PlanDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.title",
            "path": "PlanDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.subtitle",
            "path": "PlanDefinition.subtitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "PlanDefinition.type",
            "path": "PlanDefinition.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PlanDefinitionType"
                }
              ],
              "strength": "extensible",
              "description": "The type of PlanDefinition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/plan-definition-type"
            }
          },
          {
            "id": "PlanDefinition.status",
            "path": "PlanDefinition.status",
            "comment": "Allows filtering of plan definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.experimental",
            "path": "PlanDefinition.experimental",
            "comment": "Allows filtering of plan definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.subject[x]",
            "path": "PlanDefinition.subject[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for a plan definition (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "PlanDefinition.date",
            "path": "PlanDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the plan definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.publisher",
            "path": "PlanDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the plan definition is the organization or individual primarily responsible for the maintenance and upkeep of the plan definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the plan definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.contact",
            "path": "PlanDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.description",
            "path": "PlanDefinition.description",
            "comment": "This description can be used to capture details such as why the plan definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the plan definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the plan definition is presumed to be the predominant language in the place the plan definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.useContext",
            "path": "PlanDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.jurisdiction",
            "path": "PlanDefinition.jurisdiction",
            "comment": "It may be possible for the plan definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "PlanDefinition.purpose",
            "path": "PlanDefinition.purpose",
            "comment": "This element does not describe the usage of the plan definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this plan definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "PlanDefinition.usage",
            "path": "PlanDefinition.usage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "PlanDefinition.copyright",
            "path": "PlanDefinition.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "PlanDefinition.approvalDate",
            "path": "PlanDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "PlanDefinition.lastReviewDate",
            "path": "PlanDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "PlanDefinition.effectivePeriod",
            "path": "PlanDefinition.effectivePeriod",
            "comment": "The effective period for a plan definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PlanDefinition.topic",
            "path": "PlanDefinition.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "PlanDefinition.author",
            "path": "PlanDefinition.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "PlanDefinition.editor",
            "path": "PlanDefinition.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "PlanDefinition.reviewer",
            "path": "PlanDefinition.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "PlanDefinition.endorser",
            "path": "PlanDefinition.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "PlanDefinition.relatedArtifact",
            "path": "PlanDefinition.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "PlanDefinition.library",
            "path": "PlanDefinition.library",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Library"
                ]
              }
            ]
          },
          {
            "id": "PlanDefinition.goal",
            "path": "PlanDefinition.goal",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PlanDefinition.goal.category",
            "path": "PlanDefinition.goal.category",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalCategory"
                }
              ],
              "strength": "example",
              "description": "Example codes for grouping goals for filtering or presentation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-category"
            }
          },
          {
            "id": "PlanDefinition.goal.description",
            "path": "PlanDefinition.goal.description",
            "comment": "If no code is available, use CodeableConcept.text.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalDescription"
                }
              ],
              "strength": "example",
              "description": "Describes goals that can be achieved.",
              "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
            }
          },
          {
            "id": "PlanDefinition.goal.priority",
            "path": "PlanDefinition.goal.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalPriority"
                }
              ],
              "strength": "preferred",
              "description": "Indicates the level of importance associated with reaching or sustaining a goal.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-priority"
            }
          },
          {
            "id": "PlanDefinition.goal.start",
            "path": "PlanDefinition.goal.start",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalStartEvent"
                }
              ],
              "strength": "example",
              "description": "Identifies the types of events that might trigger the start of a goal.",
              "valueSet": "http://hl7.org/fhir/ValueSet/goal-start-event"
            }
          },
          {
            "id": "PlanDefinition.goal.addresses",
            "path": "PlanDefinition.goal.addresses",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalAddresses"
                }
              ],
              "strength": "example",
              "description": "Identifies problems, conditions, issues, or concerns that goals may address.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "PlanDefinition.goal.documentation",
            "path": "PlanDefinition.goal.documentation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "PlanDefinition.goal.target",
            "path": "PlanDefinition.goal.target",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PlanDefinition.goal.target.measure",
            "path": "PlanDefinition.goal.target.measure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GoalTargetMeasure"
                }
              ],
              "strength": "example",
              "description": "Identifies types of parameters that can be tracked to determine goal achievement.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
            }
          },
          {
            "id": "PlanDefinition.goal.target.detail[x]",
            "path": "PlanDefinition.goal.target.detail[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "PlanDefinition.goal.target.due",
            "path": "PlanDefinition.goal.target.due",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "PlanDefinition.action",
            "path": "PlanDefinition.action",
            "comment": "Note that there is overlap between many of the elements defined here and the ActivityDefinition resource. When an ActivityDefinition is referenced (using the definition element), the overlapping elements in the plan override the content of the referenced ActivityDefinition unless otherwise documented in the specific elements. See the PlanDefinition resource for more detailed information.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.prefix",
            "path": "PlanDefinition.action.prefix",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.title",
            "path": "PlanDefinition.action.title",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.description",
            "path": "PlanDefinition.action.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.textEquivalent",
            "path": "PlanDefinition.action.textEquivalent",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.priority",
            "path": "PlanDefinition.action.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.code",
            "path": "PlanDefinition.action.code",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.reason",
            "path": "PlanDefinition.action.reason",
            "comment": "This is different than the clinical evidence documentation, it's an actual business description of the reason for performing the action.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.documentation",
            "path": "PlanDefinition.action.documentation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.goalId",
            "path": "PlanDefinition.action.goalId",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.subject[x]",
            "path": "PlanDefinition.action.subject[x]",
            "comment": "The subject of an action overrides the subject at a parent action or on the root of the PlanDefinition if specified.\n\nIn addition, because the subject needs to be resolved during realization, use of subjects in actions (or in the ActivityDefinition referenced by the action) resolves based on the set of subjects supplied in context and by type (i.e. the patient subject would resolve to a resource of type Patient).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for a plan definition (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "PlanDefinition.action.trigger",
            "path": "PlanDefinition.action.trigger",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "TriggerDefinition"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.condition",
            "path": "PlanDefinition.action.condition",
            "comment": "When multiple conditions of the same kind are present, the effects are combined using AND semantics, so the overall condition is true only if all the conditions are true.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.condition.kind",
            "path": "PlanDefinition.action.condition.kind",
            "comment": "Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe enter/exit criteria for an action.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionConditionKind"
                }
              ],
              "strength": "required",
              "description": "Defines the kinds of conditions that can appear on actions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-condition-kind|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.condition.expression",
            "path": "PlanDefinition.action.condition.expression",
            "comment": "The expression may be inlined or may be a reference to a named expression within a logic library referenced by the library element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Expression"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.input",
            "path": "PlanDefinition.action.input",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "DataRequirement"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.output",
            "path": "PlanDefinition.action.output",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "DataRequirement"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.relatedAction",
            "path": "PlanDefinition.action.relatedAction",
            "comment": "When an action depends on multiple actions, the meaning is that all actions are dependencies, rather than that any of the actions are a dependency.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.relatedAction.actionId",
            "path": "PlanDefinition.action.relatedAction.actionId",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.relatedAction.relationship",
            "path": "PlanDefinition.action.relatedAction.relationship",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionRelationshipType"
                }
              ],
              "strength": "required",
              "description": "Defines the types of relationships between actions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.relatedAction.offset[x]",
            "path": "PlanDefinition.action.relatedAction.offset[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              },
              {
                "code": "Range"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.timing[x]",
            "path": "PlanDefinition.action.timing[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Duration"
              },
              {
                "code": "Range"
              },
              {
                "code": "Timing"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.participant",
            "path": "PlanDefinition.action.participant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.participant.type",
            "path": "PlanDefinition.action.participant.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionParticipantType"
                }
              ],
              "strength": "required",
              "description": "The type of participant for the action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.participant.role",
            "path": "PlanDefinition.action.participant.role",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionParticipantRole"
                }
              ],
              "strength": "example",
              "description": "Defines roles played by participants for the action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-participant-role"
            }
          },
          {
            "id": "PlanDefinition.action.type",
            "path": "PlanDefinition.action.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionType"
                }
              ],
              "strength": "extensible",
              "description": "The type of action to be performed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-type"
            }
          },
          {
            "id": "PlanDefinition.action.groupingBehavior",
            "path": "PlanDefinition.action.groupingBehavior",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionGroupingBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines organization behavior of a group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-grouping-behavior|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.selectionBehavior",
            "path": "PlanDefinition.action.selectionBehavior",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionSelectionBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines selection behavior of a group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-selection-behavior|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.requiredBehavior",
            "path": "PlanDefinition.action.requiredBehavior",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionRequiredBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines expectations around whether an action or action group is required.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-required-behavior|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.precheckBehavior",
            "path": "PlanDefinition.action.precheckBehavior",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionPrecheckBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines selection frequency behavior for an action or group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-precheck-behavior|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.cardinalityBehavior",
            "path": "PlanDefinition.action.cardinalityBehavior",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionCardinalityBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines behavior for an action or a group for how many times that item may be repeated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-cardinality-behavior|4.0.1"
            }
          },
          {
            "id": "PlanDefinition.action.definition[x]",
            "path": "PlanDefinition.action.definition[x]",
            "comment": "Note that the definition is optional, and if no definition is specified, a dynamicValue with a root ($this) path can be used to define the entire resource dynamically.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              },
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.transform",
            "path": "PlanDefinition.action.transform",
            "comment": "Note that when a referenced ActivityDefinition also defines a transform, the transform specified here generally takes precedence. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureMap"
                ]
              }
            ]
          },
          {
            "id": "PlanDefinition.action.dynamicValue",
            "path": "PlanDefinition.action.dynamicValue",
            "comment": "Dynamic values are applied in the order in which they are defined in the PlanDefinition resource. Note that when dynamic values are also specified by a referenced ActivityDefinition, the dynamicValues from the ActivityDefinition are applied first, followed by the dynamicValues specified here. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.dynamicValue.path",
            "path": "PlanDefinition.action.dynamicValue.path",
            "comment": "To specify the path to the current action being realized, the %action environment variable is available in this path. For example, to specify the description element of the target action, the path would be %action.description. The path attribute contains a [Simple FHIRPath Subset](fhirpath.html#simple) that allows path traversal, but not calculation.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.dynamicValue.expression",
            "path": "PlanDefinition.action.dynamicValue.expression",
            "comment": "The expression may be inlined or may be a reference to a named expression within a logic library referenced by the library element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Expression"
              }
            ]
          },
          {
            "id": "PlanDefinition.action.action",
            "path": "PlanDefinition.action.action",
            "min": 0,
            "max": "*",
            "contentReference": "#PlanDefinition.action"
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Practitioner",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Practitioner",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Individuals"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Practitioner",
      "version": "4.0.1",
      "name": "Practitioner",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Need to track doctors, staff, locums etc. for both healthcare practitioners, funders, etc.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Practitioner",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Practitioner",
            "path": "Practitioner",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Practitioner",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.id",
            "path": "Practitioner.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Practitioner.meta",
            "path": "Practitioner.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Practitioner.implicitRules",
            "path": "Practitioner.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Practitioner.language",
            "path": "Practitioner.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Practitioner.text",
            "path": "Practitioner.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.contained",
            "path": "Practitioner.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.extension",
            "path": "Practitioner.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.modifierExtension",
            "path": "Practitioner.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Practitioner.identifier",
            "path": "Practitioner.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Practitioner.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Practitioner.active",
            "path": "Practitioner.active",
            "comment": "If 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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Practitioner.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Practitioner.name",
            "path": "Practitioner.name",
            "comment": "The selection of the use property should ensure that there is a single usual name specified, and others use the nickname (alias), old, or other values as appropriate.  \r\rIn general, select the value to be used in the ResourceReference.display based on this:\r\r1. There is more than 1 name\r2. Use = usual\r3. Period is current to the date of the usage\r4. Use = official\r5. Other order as decided by internal business rules.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Practitioner.name",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Practitioner.telecom",
            "path": "Practitioner.telecom",
            "comment": "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 to help with identification.  These typically will have home numbers, or mobile numbers that are not role specific.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Practitioner.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Practitioner.address",
            "path": "Practitioner.address",
            "comment": "The PractitionerRole does not have an address value on it, as it is expected that the location property be used for this purpose (which has an address).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Practitioner.address",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Address"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Practitioner.gender",
            "path": "Practitioner.gender",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Practitioner.gender",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "Practitioner.birthDate",
            "path": "Practitioner.birthDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Practitioner.birthDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Practitioner.photo",
            "path": "Practitioner.photo",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Practitioner.photo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.qualification",
            "path": "Practitioner.qualification",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Practitioner.qualification",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.qualification.id",
            "path": "Practitioner.qualification.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.qualification.extension",
            "path": "Practitioner.qualification.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.qualification.modifierExtension",
            "path": "Practitioner.qualification.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Practitioner.qualification.identifier",
            "path": "Practitioner.qualification.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Practitioner.qualification.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.qualification.code",
            "path": "Practitioner.qualification.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Practitioner.qualification.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Qualification"
                }
              ],
              "strength": "example",
              "description": "Specific qualification the practitioner has to provide a service.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-2.7-0360"
            }
          },
          {
            "id": "Practitioner.qualification.period",
            "path": "Practitioner.qualification.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Practitioner.qualification.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.qualification.issuer",
            "path": "Practitioner.qualification.issuer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Practitioner.qualification.issuer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Practitioner.communication",
            "path": "Practitioner.communication",
            "comment": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Practitioner.communication",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Practitioner",
            "path": "Practitioner",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Practitioner.identifier",
            "path": "Practitioner.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Practitioner.active",
            "path": "Practitioner.active",
            "comment": "If 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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isSummary": true
          },
          {
            "id": "Practitioner.name",
            "path": "Practitioner.name",
            "comment": "The selection of the use property should ensure that there is a single usual name specified, and others use the nickname (alias), old, or other values as appropriate.  \r\rIn general, select the value to be used in the ResourceReference.display based on this:\r\r1. There is more than 1 name\r2. Use = usual\r3. Period is current to the date of the usage\r4. Use = official\r5. Other order as decided by internal business rules.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Practitioner.telecom",
            "path": "Practitioner.telecom",
            "comment": "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 to help with identification.  These typically will have home numbers, or mobile numbers that are not role specific.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Practitioner.address",
            "path": "Practitioner.address",
            "comment": "The PractitionerRole does not have an address value on it, as it is expected that the location property be used for this purpose (which has an address).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Address"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Practitioner.gender",
            "path": "Practitioner.gender",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "Practitioner.birthDate",
            "path": "Practitioner.birthDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Practitioner.photo",
            "path": "Practitioner.photo",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Attachment"
              }
            ]
          },
          {
            "id": "Practitioner.qualification",
            "path": "Practitioner.qualification",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Practitioner.qualification.identifier",
            "path": "Practitioner.qualification.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Practitioner.qualification.code",
            "path": "Practitioner.qualification.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Qualification"
                }
              ],
              "strength": "example",
              "description": "Specific qualification the practitioner has to provide a service.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-2.7-0360"
            }
          },
          {
            "id": "Practitioner.qualification.period",
            "path": "Practitioner.qualification.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Practitioner.qualification.issuer",
            "path": "Practitioner.qualification.issuer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Practitioner.communication",
            "path": "Practitioner.communication",
            "comment": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "PractitionerRole",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Individuals"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "individual"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
      "version": "4.0.1",
      "name": "PractitionerRole",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Need to track services that a healthcare provider is able to provide at an organization's location, and the services that they can perform there.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "PractitionerRole",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "PractitionerRole",
            "path": "PractitionerRole",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.id",
            "path": "PractitionerRole.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PractitionerRole.meta",
            "path": "PractitionerRole.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PractitionerRole.implicitRules",
            "path": "PractitionerRole.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "PractitionerRole.language",
            "path": "PractitionerRole.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "PractitionerRole.text",
            "path": "PractitionerRole.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.contained",
            "path": "PractitionerRole.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.extension",
            "path": "PractitionerRole.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.modifierExtension",
            "path": "PractitionerRole.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "PractitionerRole.identifier",
            "path": "PractitionerRole.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PractitionerRole.active",
            "path": "PractitionerRole.active",
            "comment": "If this value is false, you may refer to the period to see when the role was in active use. If there is no period specified, no inference can be made about when it was active.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PractitionerRole.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PractitionerRole.period",
            "path": "PractitionerRole.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PractitionerRole.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PractitionerRole.practitioner",
            "path": "PractitionerRole.practitioner",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PractitionerRole.practitioner",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PractitionerRole.organization",
            "path": "PractitionerRole.organization",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PractitionerRole.organization",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PractitionerRole.code",
            "path": "PractitionerRole.code",
            "comment": "A person may have more than one role.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PractitionerRole"
                }
              ],
              "strength": "example",
              "description": "The role a person plays representing an organization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/practitioner-role"
            }
          },
          {
            "id": "PractitionerRole.specialty",
            "path": "PractitionerRole.specialty",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole.specialty",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PractitionerSpecialty"
                }
              ],
              "strength": "preferred",
              "description": "Specific specialty associated with the agency.",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "PractitionerRole.location",
            "path": "PractitionerRole.location",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole.location",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PractitionerRole.healthcareService",
            "path": "PractitionerRole.healthcareService",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole.healthcareService",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.telecom",
            "path": "PractitionerRole.telecom",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "PractitionerRole.availableTime",
            "path": "PractitionerRole.availableTime",
            "comment": "More detailed availability information may be provided in associated Schedule/Slot resources.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole.availableTime",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.availableTime.id",
            "path": "PractitionerRole.availableTime.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.availableTime.extension",
            "path": "PractitionerRole.availableTime.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.availableTime.modifierExtension",
            "path": "PractitionerRole.availableTime.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PractitionerRole.availableTime.daysOfWeek",
            "path": "PractitionerRole.availableTime.daysOfWeek",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole.availableTime.daysOfWeek",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DaysOfWeek"
                }
              ],
              "strength": "required",
              "description": "The days of the week.",
              "valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1"
            }
          },
          {
            "id": "PractitionerRole.availableTime.allDay",
            "path": "PractitionerRole.availableTime.allDay",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PractitionerRole.availableTime.allDay",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.availableTime.availableStartTime",
            "path": "PractitionerRole.availableTime.availableStartTime",
            "comment": "The timezone is expected to be for where this HealthcareService is provided at.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PractitionerRole.availableTime.availableStartTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "time"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.availableTime.availableEndTime",
            "path": "PractitionerRole.availableTime.availableEndTime",
            "comment": "The timezone is expected to be for where this HealthcareService is provided at.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PractitionerRole.availableTime.availableEndTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "time"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.notAvailable",
            "path": "PractitionerRole.notAvailable",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole.notAvailable",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.notAvailable.id",
            "path": "PractitionerRole.notAvailable.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.notAvailable.extension",
            "path": "PractitionerRole.notAvailable.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.notAvailable.modifierExtension",
            "path": "PractitionerRole.notAvailable.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "PractitionerRole.notAvailable.description",
            "path": "PractitionerRole.notAvailable.description",
            "min": 1,
            "max": "1",
            "base": {
              "path": "PractitionerRole.notAvailable.description",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.notAvailable.during",
            "path": "PractitionerRole.notAvailable.during",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PractitionerRole.notAvailable.during",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.availabilityExceptions",
            "path": "PractitionerRole.availabilityExceptions",
            "min": 0,
            "max": "1",
            "base": {
              "path": "PractitionerRole.availabilityExceptions",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "PractitionerRole.endpoint",
            "path": "PractitionerRole.endpoint",
            "min": 0,
            "max": "*",
            "base": {
              "path": "PractitionerRole.endpoint",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "PractitionerRole",
            "path": "PractitionerRole",
            "min": 0,
            "max": "*"
          },
          {
            "id": "PractitionerRole.identifier",
            "path": "PractitionerRole.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PractitionerRole.active",
            "path": "PractitionerRole.active",
            "comment": "If this value is false, you may refer to the period to see when the role was in active use. If there is no period specified, no inference can be made about when it was active.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isSummary": true
          },
          {
            "id": "PractitionerRole.period",
            "path": "PractitionerRole.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PractitionerRole.practitioner",
            "path": "PractitionerRole.practitioner",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "PractitionerRole.organization",
            "path": "PractitionerRole.organization",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "PractitionerRole.code",
            "path": "PractitionerRole.code",
            "comment": "A person may have more than one role.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PractitionerRole"
                }
              ],
              "strength": "example",
              "description": "The role a person plays representing an organization.",
              "valueSet": "http://hl7.org/fhir/ValueSet/practitioner-role"
            }
          },
          {
            "id": "PractitionerRole.specialty",
            "path": "PractitionerRole.specialty",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PractitionerSpecialty"
                }
              ],
              "strength": "preferred",
              "description": "Specific specialty associated with the agency.",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "PractitionerRole.location",
            "path": "PractitionerRole.location",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "PractitionerRole.healthcareService",
            "path": "PractitionerRole.healthcareService",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ]
          },
          {
            "id": "PractitionerRole.telecom",
            "path": "PractitionerRole.telecom",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "isSummary": true
          },
          {
            "id": "PractitionerRole.availableTime",
            "path": "PractitionerRole.availableTime",
            "comment": "More detailed availability information may be provided in associated Schedule/Slot resources.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PractitionerRole.availableTime.daysOfWeek",
            "path": "PractitionerRole.availableTime.daysOfWeek",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DaysOfWeek"
                }
              ],
              "strength": "required",
              "description": "The days of the week.",
              "valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1"
            }
          },
          {
            "id": "PractitionerRole.availableTime.allDay",
            "path": "PractitionerRole.availableTime.allDay",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "PractitionerRole.availableTime.availableStartTime",
            "path": "PractitionerRole.availableTime.availableStartTime",
            "comment": "The timezone is expected to be for where this HealthcareService is provided at.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "time"
              }
            ]
          },
          {
            "id": "PractitionerRole.availableTime.availableEndTime",
            "path": "PractitionerRole.availableTime.availableEndTime",
            "comment": "The timezone is expected to be for where this HealthcareService is provided at.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "time"
              }
            ]
          },
          {
            "id": "PractitionerRole.notAvailable",
            "path": "PractitionerRole.notAvailable",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "PractitionerRole.notAvailable.description",
            "path": "PractitionerRole.notAvailable.description",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "PractitionerRole.notAvailable.during",
            "path": "PractitionerRole.notAvailable.during",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "PractitionerRole.availabilityExceptions",
            "path": "PractitionerRole.availabilityExceptions",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "PractitionerRole.endpoint",
            "path": "PractitionerRole.endpoint",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Endpoint"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Procedure",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Procedure",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Summary"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pc"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Procedure",
      "version": "4.0.1",
      "name": "Procedure",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Procedure",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Procedure",
            "path": "Procedure",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.id",
            "path": "Procedure.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.meta",
            "path": "Procedure.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.implicitRules",
            "path": "Procedure.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Procedure.language",
            "path": "Procedure.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Procedure.text",
            "path": "Procedure.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.contained",
            "path": "Procedure.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.extension",
            "path": "Procedure.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.modifierExtension",
            "path": "Procedure.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Procedure.identifier",
            "path": "Procedure.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and Person resource instances might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.instantiatesCanonical",
            "path": "Procedure.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.instantiatesCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Measure",
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.instantiatesUri",
            "path": "Procedure.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.instantiatesUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.basedOn",
            "path": "Procedure.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.partOf",
            "path": "Procedure.partOf",
            "comment": "The MedicationAdministration resource has a partOf reference to Procedure, but this is not a circular reference.   For example, the anesthesia MedicationAdministration is part of the surgical Procedure (MedicationAdministration.partOf = Procedure).  For example, the procedure to insert the IV port for an IV medication administration is part of the medication administration (Procedure.partOf = MedicationAdministration).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.status",
            "path": "Procedure.status",
            "comment": "The \"unknown\" code is not to be used to convey other statuses.  The \"unknown\" code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the procedure.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Procedure.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/event-status|4.0.1"
            }
          },
          {
            "id": "Procedure.statusReason",
            "path": "Procedure.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"aborted\". The reason for performing the event at all is captured in reasonCode, not here.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.statusReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureNegationReason"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the reason a procedure was not performed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-not-performed-reason"
            }
          },
          {
            "id": "Procedure.category",
            "path": "Procedure.category",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureCategory"
                }
              ],
              "strength": "example",
              "description": "A code that classifies a procedure for searching, sorting and display purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-category"
            }
          },
          {
            "id": "Procedure.code",
            "path": "Procedure.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureCode"
                }
              ],
              "strength": "example",
              "description": "A code to identify a specific procedure .",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code"
            }
          },
          {
            "id": "Procedure.subject",
            "path": "Procedure.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Procedure.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.encounter",
            "path": "Procedure.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.performed[x]",
            "path": "Procedure.performed[x]",
            "comment": "Age is generally used when the patient reports an age at which the procedure was performed. Range is generally used when the patient reports an age range when the procedure was performed, such as sometime between 20-25 years old.  dateTime supports a range of precision due to some procedures being reported as past procedures that might not have millisecond precision while other procedures performed and documented during the encounter might have more precise UTC timestamps with timezone.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.performed[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "string"
              },
              {
                "code": "Age"
              },
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.recorder",
            "path": "Procedure.recorder",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.recorder",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.asserter",
            "path": "Procedure.asserter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.asserter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.performer",
            "path": "Procedure.performer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.performer.id",
            "path": "Procedure.performer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.performer.extension",
            "path": "Procedure.performer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.performer.modifierExtension",
            "path": "Procedure.performer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Procedure.performer.function",
            "path": "Procedure.performer.function",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.performer.function",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedurePerformerRole"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the role of a performer of the procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/performer-role"
            }
          },
          {
            "id": "Procedure.performer.actor",
            "path": "Procedure.performer.actor",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Procedure.performer.actor",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.performer.onBehalfOf",
            "path": "Procedure.performer.onBehalfOf",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.performer.onBehalfOf",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.location",
            "path": "Procedure.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.reasonCode",
            "path": "Procedure.reasonCode",
            "comment": "Use Procedure.reasonCode when a code sufficiently describes the reason.  Use Procedure.reasonReference when referencing a resource, which allows more information to be conveyed, such as onset date. Procedure.reasonCode and Procedure.reasonReference are not meant to be duplicative.  For a single reason, either Procedure.reasonCode or Procedure.reasonReference can be used.  Procedure.reasonCode may be a summary code, or Procedure.reasonReference may be used to reference a very precise definition of the reason using Condition | Observation | Procedure | DiagnosticReport | DocumentReference.  Both Procedure.reasonCode and Procedure.reasonReference can be used if they are describing different reasons for the procedure.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureReason"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the reason a procedure is  required.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason"
            }
          },
          {
            "id": "Procedure.reasonReference",
            "path": "Procedure.reasonReference",
            "comment": "It is possible for a procedure to be a reason (such as C-Section) for another procedure (such as an epidural). Other examples include endoscopy for dilatation and biopsy (a combination of diagnostic and therapeutic use). \nUse Procedure.reasonCode when a code sufficiently describes the reason.  Use Procedure.reasonReference when referencing a resource, which allows more information to be conveyed, such as onset date. Procedure.reasonCode and Procedure.reasonReference are not meant to be duplicative.  For a single reason, either Procedure.reasonCode or Procedure.reasonReference can be used.  Procedure.reasonCode may be a summary code, or Procedure.reasonReference may be used to reference a very precise definition of the reason using Condition | Observation | Procedure | DiagnosticReport | DocumentReference.  Both Procedure.reasonCode and Procedure.reasonReference can be used if they are describing different reasons for the procedure.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Procedure.bodySite",
            "path": "Procedure.bodySite",
            "comment": "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [procedure-targetbodystructure](extension-procedure-targetbodystructure.html).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.bodySite",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "Procedure.outcome",
            "path": "Procedure.outcome",
            "comment": "If outcome contains narrative text only, it can be captured using the CodeableConcept.text.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.outcome",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureOutcome"
                }
              ],
              "strength": "example",
              "description": "An outcome of a procedure - whether it was resolved or otherwise.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-outcome"
            }
          },
          {
            "id": "Procedure.report",
            "path": "Procedure.report",
            "comment": "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": "*",
            "base": {
              "path": "Procedure.report",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/Composition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.complication",
            "path": "Procedure.complication",
            "comment": "If complications are only expressed by the narrative text, they can be captured using the CodeableConcept.text.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.complication",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureComplication"
                }
              ],
              "strength": "example",
              "description": "Codes describing complications that resulted from a procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "Procedure.complicationDetail",
            "path": "Procedure.complicationDetail",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.complicationDetail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.followUp",
            "path": "Procedure.followUp",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.followUp",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureFollowUp"
                }
              ],
              "strength": "example",
              "description": "Specific follow up required for a procedure e.g. removal of sutures.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-followup"
            }
          },
          {
            "id": "Procedure.note",
            "path": "Procedure.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.focalDevice",
            "path": "Procedure.focalDevice",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.focalDevice",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.focalDevice.id",
            "path": "Procedure.focalDevice.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.focalDevice.extension",
            "path": "Procedure.focalDevice.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.focalDevice.modifierExtension",
            "path": "Procedure.focalDevice.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Procedure.focalDevice.action",
            "path": "Procedure.focalDevice.action",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Procedure.focalDevice.action",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceActionKind"
                }
              ],
              "strength": "preferred",
              "description": "A kind of change that happened to the device during the procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-action"
            }
          },
          {
            "id": "Procedure.focalDevice.manipulated",
            "path": "Procedure.focalDevice.manipulated",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Procedure.focalDevice.manipulated",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.usedReference",
            "path": "Procedure.usedReference",
            "comment": "For devices actually implanted or removed, use Procedure.device.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.usedReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Procedure.usedCode",
            "path": "Procedure.usedCode",
            "comment": "For devices actually implanted or removed, use Procedure.device.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Procedure.usedCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureUsed"
                }
              ],
              "strength": "example",
              "description": "Codes describing items used during a procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-kind"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Procedure",
            "path": "Procedure",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Procedure.identifier",
            "path": "Procedure.identifier",
            "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and Person resource instances might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.instantiatesCanonical",
            "path": "Procedure.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Measure",
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition",
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.instantiatesUri",
            "path": "Procedure.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.basedOn",
            "path": "Procedure.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.partOf",
            "path": "Procedure.partOf",
            "comment": "The MedicationAdministration resource has a partOf reference to Procedure, but this is not a circular reference.   For example, the anesthesia MedicationAdministration is part of the surgical Procedure (MedicationAdministration.partOf = Procedure).  For example, the procedure to insert the IV port for an IV medication administration is part of the medication administration (Procedure.partOf = MedicationAdministration).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.status",
            "path": "Procedure.status",
            "comment": "The \"unknown\" code is not to be used to convey other statuses.  The \"unknown\" code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the procedure.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/event-status|4.0.1"
            }
          },
          {
            "id": "Procedure.statusReason",
            "path": "Procedure.statusReason",
            "comment": "This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"aborted\". The reason for performing the event at all is captured in reasonCode, not here.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureNegationReason"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the reason a procedure was not performed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-not-performed-reason"
            }
          },
          {
            "id": "Procedure.category",
            "path": "Procedure.category",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureCategory"
                }
              ],
              "strength": "example",
              "description": "A code that classifies a procedure for searching, sorting and display purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-category"
            }
          },
          {
            "id": "Procedure.code",
            "path": "Procedure.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureCode"
                }
              ],
              "strength": "example",
              "description": "A code to identify a specific procedure .",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code"
            }
          },
          {
            "id": "Procedure.subject",
            "path": "Procedure.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.encounter",
            "path": "Procedure.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.performed[x]",
            "path": "Procedure.performed[x]",
            "comment": "Age is generally used when the patient reports an age at which the procedure was performed. Range is generally used when the patient reports an age range when the procedure was performed, such as sometime between 20-25 years old.  dateTime supports a range of precision due to some procedures being reported as past procedures that might not have millisecond precision while other procedures performed and documented during the encounter might have more precise UTC timestamps with timezone.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "string"
              },
              {
                "code": "Age"
              },
              {
                "code": "Range"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.recorder",
            "path": "Procedure.recorder",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.asserter",
            "path": "Procedure.asserter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.performer",
            "path": "Procedure.performer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.performer.function",
            "path": "Procedure.performer.function",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedurePerformerRole"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the role of a performer of the procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/performer-role"
            }
          },
          {
            "id": "Procedure.performer.actor",
            "path": "Procedure.performer.actor",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.performer.onBehalfOf",
            "path": "Procedure.performer.onBehalfOf",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Procedure.location",
            "path": "Procedure.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.reasonCode",
            "path": "Procedure.reasonCode",
            "comment": "Use Procedure.reasonCode when a code sufficiently describes the reason.  Use Procedure.reasonReference when referencing a resource, which allows more information to be conveyed, such as onset date. Procedure.reasonCode and Procedure.reasonReference are not meant to be duplicative.  For a single reason, either Procedure.reasonCode or Procedure.reasonReference can be used.  Procedure.reasonCode may be a summary code, or Procedure.reasonReference may be used to reference a very precise definition of the reason using Condition | Observation | Procedure | DiagnosticReport | DocumentReference.  Both Procedure.reasonCode and Procedure.reasonReference can be used if they are describing different reasons for the procedure.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureReason"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the reason a procedure is  required.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason"
            }
          },
          {
            "id": "Procedure.reasonReference",
            "path": "Procedure.reasonReference",
            "comment": "It is possible for a procedure to be a reason (such as C-Section) for another procedure (such as an epidural). Other examples include endoscopy for dilatation and biopsy (a combination of diagnostic and therapeutic use). \nUse Procedure.reasonCode when a code sufficiently describes the reason.  Use Procedure.reasonReference when referencing a resource, which allows more information to be conveyed, such as onset date. Procedure.reasonCode and Procedure.reasonReference are not meant to be duplicative.  For a single reason, either Procedure.reasonCode or Procedure.reasonReference can be used.  Procedure.reasonCode may be a summary code, or Procedure.reasonReference may be used to reference a very precise definition of the reason using Condition | Observation | Procedure | DiagnosticReport | DocumentReference.  Both Procedure.reasonCode and Procedure.reasonReference can be used if they are describing different reasons for the procedure.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/Procedure",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Procedure.bodySite",
            "path": "Procedure.bodySite",
            "comment": "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [procedure-targetbodystructure](extension-procedure-targetbodystructure.html).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "Procedure.outcome",
            "path": "Procedure.outcome",
            "comment": "If outcome contains narrative text only, it can be captured using the CodeableConcept.text.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureOutcome"
                }
              ],
              "strength": "example",
              "description": "An outcome of a procedure - whether it was resolved or otherwise.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-outcome"
            }
          },
          {
            "id": "Procedure.report",
            "path": "Procedure.report",
            "comment": "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",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference",
                  "http://hl7.org/fhir/StructureDefinition/Composition"
                ]
              }
            ]
          },
          {
            "id": "Procedure.complication",
            "path": "Procedure.complication",
            "comment": "If complications are only expressed by the narrative text, they can be captured using the CodeableConcept.text.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureComplication"
                }
              ],
              "strength": "example",
              "description": "Codes describing complications that resulted from a procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "Procedure.complicationDetail",
            "path": "Procedure.complicationDetail",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ]
          },
          {
            "id": "Procedure.followUp",
            "path": "Procedure.followUp",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureFollowUp"
                }
              ],
              "strength": "example",
              "description": "Specific follow up required for a procedure e.g. removal of sutures.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-followup"
            }
          },
          {
            "id": "Procedure.note",
            "path": "Procedure.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "Procedure.focalDevice",
            "path": "Procedure.focalDevice",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Procedure.focalDevice.action",
            "path": "Procedure.focalDevice.action",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DeviceActionKind"
                }
              ],
              "strength": "preferred",
              "description": "A kind of change that happened to the device during the procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-action"
            }
          },
          {
            "id": "Procedure.focalDevice.manipulated",
            "path": "Procedure.focalDevice.manipulated",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "Procedure.usedReference",
            "path": "Procedure.usedReference",
            "comment": "For devices actually implanted or removed, use Procedure.device.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ]
          },
          {
            "id": "Procedure.usedCode",
            "path": "Procedure.usedCode",
            "comment": "For devices actually implanted or removed, use Procedure.device.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureUsed"
                }
              ],
              "strength": "example",
              "description": "Codes describing items used during a procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/device-kind"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Provenance",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Provenance",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Security"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "sec"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Provenance",
      "version": "4.0.1",
      "name": "Provenance",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Provenance",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Provenance",
            "path": "Provenance",
            "comment": "Some parties may be duplicated between the target resource and its provenance.  For instance, the prescriber is usually (but not always) the author of the prescription resource. This resource is defined with close consideration for W3C Provenance.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Provenance",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.id",
            "path": "Provenance.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Provenance.meta",
            "path": "Provenance.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Provenance.implicitRules",
            "path": "Provenance.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Provenance.language",
            "path": "Provenance.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Provenance.text",
            "path": "Provenance.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.contained",
            "path": "Provenance.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.extension",
            "path": "Provenance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.modifierExtension",
            "path": "Provenance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Provenance.target",
            "path": "Provenance.target",
            "comment": "Target references are usually version specific, but might not be, if a version has not been assigned or if the provenance information is part of the set of resources being maintained (i.e. a document). When using the RESTful API, the identity of the resource might not be known (especially not the version specific one); the client may either submit the resource first, and then the provenance, or it may submit both using a single transaction. See the notes on transaction for further discussion.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Provenance.target",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Provenance.occurred[x]",
            "path": "Provenance.occurred[x]",
            "comment": "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Provenance.occurred[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              },
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.recorded",
            "path": "Provenance.recorded",
            "comment": "This can be a little different from the time stamp on the resource if there is a delay between recording the event and updating the provenance and target resource.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Provenance.recorded",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Provenance.policy",
            "path": "Provenance.policy",
            "comment": "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Provenance.policy",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.location",
            "path": "Provenance.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Provenance.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.reason",
            "path": "Provenance.reason",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Provenance.reason",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProvenanceReason"
                }
              ],
              "strength": "extensible",
              "description": "The reason the activity took place.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "Provenance.activity",
            "path": "Provenance.activity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Provenance.activity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProvenanceActivity"
                }
              ],
              "strength": "extensible",
              "description": "The activity that took place.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provenance-activity-type"
            }
          },
          {
            "id": "Provenance.agent",
            "path": "Provenance.agent",
            "comment": "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Provenance.agent",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.agent.id",
            "path": "Provenance.agent.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.agent.extension",
            "path": "Provenance.agent.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.agent.modifierExtension",
            "path": "Provenance.agent.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Provenance.agent.type",
            "path": "Provenance.agent.type",
            "comment": "For example: author, performer, enterer, attester, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Provenance.agent.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProvenanceAgentType"
                }
              ],
              "strength": "extensible",
              "description": "The type of participation that a provenance agent played with respect to the activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provenance-agent-type"
            }
          },
          {
            "id": "Provenance.agent.role",
            "path": "Provenance.agent.role",
            "comment": "For example: doctor, nurse, clerk, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Provenance.agent.role",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProvenanceAgentRole"
                }
              ],
              "strength": "example",
              "description": "The role that a provenance agent played with respect to the activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-role-type"
            }
          },
          {
            "id": "Provenance.agent.who",
            "path": "Provenance.agent.who",
            "comment": "whoIdentity should be used when the agent is not a Resource type.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Provenance.agent.who",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Provenance.agent.onBehalfOf",
            "path": "Provenance.agent.onBehalfOf",
            "comment": "onBehalfOfIdentity should be used when the agent is not a Resource type.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Provenance.agent.onBehalfOf",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.entity",
            "path": "Provenance.entity",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Provenance.entity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.entity.id",
            "path": "Provenance.entity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.entity.extension",
            "path": "Provenance.entity.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.entity.modifierExtension",
            "path": "Provenance.entity.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Provenance.entity.role",
            "path": "Provenance.entity.role",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Provenance.entity.role",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProvenanceEntityRole"
                }
              ],
              "strength": "required",
              "description": "How an entity was used in an activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provenance-entity-role|4.0.1"
            }
          },
          {
            "id": "Provenance.entity.what",
            "path": "Provenance.entity.what",
            "comment": "whatIdentity should be used for entities that are not a Resource type.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Provenance.entity.what",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Provenance.entity.agent",
            "path": "Provenance.entity.agent",
            "comment": "A usecase where one Provenance.entity.agent is used where the Entity that was used in the creation/updating of the Target, is not in the context of the same custodianship as the Target, and thus the meaning of Provenance.entity.agent is to say that the entity referenced is managed elsewhere and that this Agent provided access to it.  This would be similar to where the Entity being referenced is managed outside FHIR, such as through HL7 v2, v3, or XDS. This might be where the Entity being referenced is managed in another FHIR resource server. Thus it explains the Provenance of that Entity's use in the context of this Provenance activity.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Provenance.entity.agent",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#Provenance.agent",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Provenance.signature",
            "path": "Provenance.signature",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Provenance.signature",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Signature"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Provenance",
            "path": "Provenance",
            "comment": "Some parties may be duplicated between the target resource and its provenance.  For instance, the prescriber is usually (but not always) the author of the prescription resource. This resource is defined with close consideration for W3C Provenance.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Provenance.target",
            "path": "Provenance.target",
            "comment": "Target references are usually version specific, but might not be, if a version has not been assigned or if the provenance information is part of the set of resources being maintained (i.e. a document). When using the RESTful API, the identity of the resource might not be known (especially not the version specific one); the client may either submit the resource first, and then the provenance, or it may submit both using a single transaction. See the notes on transaction for further discussion.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Provenance.occurred[x]",
            "path": "Provenance.occurred[x]",
            "comment": "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              },
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "Provenance.recorded",
            "path": "Provenance.recorded",
            "comment": "This can be a little different from the time stamp on the resource if there is a delay between recording the event and updating the provenance and target resource.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Provenance.policy",
            "path": "Provenance.policy",
            "comment": "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "Provenance.location",
            "path": "Provenance.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "Provenance.reason",
            "path": "Provenance.reason",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProvenanceReason"
                }
              ],
              "strength": "extensible",
              "description": "The reason the activity took place.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse"
            }
          },
          {
            "id": "Provenance.activity",
            "path": "Provenance.activity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProvenanceActivity"
                }
              ],
              "strength": "extensible",
              "description": "The activity that took place.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provenance-activity-type"
            }
          },
          {
            "id": "Provenance.agent",
            "path": "Provenance.agent",
            "comment": "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Provenance.agent.type",
            "path": "Provenance.agent.type",
            "comment": "For example: author, performer, enterer, attester, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProvenanceAgentType"
                }
              ],
              "strength": "extensible",
              "description": "The type of participation that a provenance agent played with respect to the activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provenance-agent-type"
            }
          },
          {
            "id": "Provenance.agent.role",
            "path": "Provenance.agent.role",
            "comment": "For example: doctor, nurse, clerk, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProvenanceAgentRole"
                }
              ],
              "strength": "example",
              "description": "The role that a provenance agent played with respect to the activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/security-role-type"
            }
          },
          {
            "id": "Provenance.agent.who",
            "path": "Provenance.agent.who",
            "comment": "whoIdentity should be used when the agent is not a Resource type.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Provenance.agent.onBehalfOf",
            "path": "Provenance.agent.onBehalfOf",
            "comment": "onBehalfOfIdentity should be used when the agent is not a Resource type.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Provenance.entity",
            "path": "Provenance.entity",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Provenance.entity.role",
            "path": "Provenance.entity.role",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProvenanceEntityRole"
                }
              ],
              "strength": "required",
              "description": "How an entity was used in an activity.",
              "valueSet": "http://hl7.org/fhir/ValueSet/provenance-entity-role|4.0.1"
            }
          },
          {
            "id": "Provenance.entity.what",
            "path": "Provenance.entity.what",
            "comment": "whatIdentity should be used for entities that are not a Resource type.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Provenance.entity.agent",
            "path": "Provenance.entity.agent",
            "comment": "A usecase where one Provenance.entity.agent is used where the Entity that was used in the creation/updating of the Target, is not in the context of the same custodianship as the Target, and thus the meaning of Provenance.entity.agent is to say that the entity referenced is managed elsewhere and that this Agent provided access to it.  This would be similar to where the Entity being referenced is managed outside FHIR, such as through HL7 v2, v3, or XDS. This might be where the Entity being referenced is managed in another FHIR resource server. Thus it explains the Provenance of that Entity's use in the context of this Provenance activity.",
            "min": 0,
            "max": "*",
            "contentReference": "#Provenance.agent"
          },
          {
            "id": "Provenance.signature",
            "path": "Provenance.signature",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Signature"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Questionnaire",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Definitional Artifacts"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
      "version": "4.0.1",
      "name": "Questionnaire",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "To support structured, hierarchical registration of data gathered using digital forms and other questionnaires.  Questionnaires provide greater control over presentation and allow capture of data in a domain-independent way (i.e. capturing information that would otherwise require multiple distinct types of resources).",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Questionnaire",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Questionnaire",
            "path": "Questionnaire",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "que-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "que-2",
                "severity": "error",
                "human": "The link ids for groups and questions must be unique within the questionnaire",
                "expression": "descendants().linkId.isDistinct()",
                "xpath": "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.id",
            "path": "Questionnaire.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.meta",
            "path": "Questionnaire.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.implicitRules",
            "path": "Questionnaire.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Questionnaire.language",
            "path": "Questionnaire.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Questionnaire.text",
            "path": "Questionnaire.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.contained",
            "path": "Questionnaire.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.extension",
            "path": "Questionnaire.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.modifierExtension",
            "path": "Questionnaire.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Questionnaire.url",
            "path": "Questionnaire.url",
            "comment": "The name of the referenced questionnaire can be conveyed using the http://hl7.org/fhir/StructureDefinition/display extension.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.identifier",
            "path": "Questionnaire.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this questionnaire outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.version",
            "path": "Questionnaire.version",
            "comment": "There may be different questionnaire instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the questionnaire with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.name",
            "path": "Questionnaire.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.title",
            "path": "Questionnaire.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.derivedFrom",
            "path": "Questionnaire.derivedFrom",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.derivedFrom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.status",
            "path": "Questionnaire.status",
            "comment": "Allows filtering of questionnaires that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Questionnaire.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "Questionnaire.experimental",
            "path": "Questionnaire.experimental",
            "comment": "Allows filtering of questionnaires that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.subjectType",
            "path": "Questionnaire.subjectType",
            "comment": "If none are specified, then the subject is unlimited.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.subjectType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "Questionnaire.date",
            "path": "Questionnaire.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the questionnaire. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.publisher",
            "path": "Questionnaire.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the questionnaire is the organization or individual primarily responsible for the maintenance and upkeep of the questionnaire. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the questionnaire. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.contact",
            "path": "Questionnaire.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.description",
            "path": "Questionnaire.description",
            "comment": "This description can be used to capture details such as why the questionnaire was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the questionnaire as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the questionnaire is presumed to be the predominant language in the place the questionnaire was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.useContext",
            "path": "Questionnaire.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.jurisdiction",
            "path": "Questionnaire.jurisdiction",
            "comment": "It may be possible for the questionnaire to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "Questionnaire.purpose",
            "path": "Questionnaire.purpose",
            "comment": "This element does not describe the usage of the questionnaire. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this questionnaire.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.copyright",
            "path": "Questionnaire.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.approvalDate",
            "path": "Questionnaire.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.lastReviewDate",
            "path": "Questionnaire.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.effectivePeriod",
            "path": "Questionnaire.effectivePeriod",
            "comment": "The effective period for a questionnaire  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Questionnaire.code",
            "path": "Questionnaire.code",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireConcept"
                }
              ],
              "strength": "example",
              "description": "Codes for questionnaires, groups and individual questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-questions"
            }
          },
          {
            "id": "Questionnaire.item",
            "path": "Questionnaire.item",
            "comment": "The content of the questionnaire is constructed from an ordered, hierarchical collection of items.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.item",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "que-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "que-1",
                "severity": "error",
                "human": "Group items must have nested items, display items cannot have nested items",
                "expression": "(type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())",
                "xpath": "not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))"
              },
              {
                "key": "que-3",
                "severity": "error",
                "human": "Display items cannot have a \"code\" asserted",
                "expression": "type!='display' or code.empty()",
                "xpath": "not(f:type/@value='display' and f:code)"
              },
              {
                "key": "que-4",
                "severity": "error",
                "human": "A question cannot have both answerOption and answerValueSet",
                "expression": "answerOption.empty() or answerValueSet.empty()",
                "xpath": "not(f:answerValueSet and f:answerOption)"
              },
              {
                "key": "que-5",
                "severity": "error",
                "human": "Only 'choice' and 'open-choice' items can have answerValueSet",
                "expression": "(type ='choice' or type = 'open-choice' or type = 'decimal' or type = 'integer' or type = 'date' or type = 'dateTime' or type = 'time' or type = 'string' or type = 'quantity') or (answerValueSet.empty() and answerOption.empty())",
                "xpath": "f:type/@value=('choice','open-choice','decimal','integer','date','dateTime','time','string','quantity',') or not(f:answerOption or f:answerValueSet)"
              },
              {
                "key": "que-6",
                "severity": "error",
                "human": "Required and repeat aren't permitted for display items",
                "expression": "type!='display' or (required.empty() and repeats.empty())",
                "xpath": "not(f:type/@value='display' and (f:required or f:repeats))"
              },
              {
                "key": "que-8",
                "severity": "error",
                "human": "Initial values can't be specified for groups or display items",
                "expression": "(type!='group' and type!='display') or initial.empty()",
                "xpath": "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])"
              },
              {
                "key": "que-9",
                "severity": "error",
                "human": "Read-only can't be specified for \"display\" items",
                "expression": "type!='display' or readOnly.empty()",
                "xpath": "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])"
              },
              {
                "key": "que-10",
                "severity": "error",
                "human": "Maximum length can only be declared for simple question types",
                "expression": "(type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url' | 'open-choice')) or maxLength.empty()",
                "xpath": "f:type/@value=('boolean', 'decimal', 'integer', 'open-choice', 'string', 'text', 'url') or not(f:maxLength)"
              },
              {
                "key": "que-11",
                "severity": "error",
                "human": "If one or more answerOption is present, initial[x] must be missing",
                "expression": "answerOption.empty() or initial.empty()",
                "xpath": "not(f:answerOption) or not(count(f:*[starts-with(local-name(.), 'initial')]))"
              },
              {
                "key": "que-12",
                "severity": "error",
                "human": "If there are more than one enableWhen, enableBehavior must be specified",
                "expression": "enableWhen.count() > 2 implies enableBehavior.exists()",
                "xpath": "not(f:answerOption) or not(count(f:*[starts-with(local-name(.), 'initial')]))"
              },
              {
                "key": "que-13",
                "severity": "error",
                "human": "Can only have multiple initial values for repeating items",
                "expression": "repeats=true or initial.count() <= 1",
                "xpath": "f:repeats/@value='true' or count(f:initial)<=1"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.id",
            "path": "Questionnaire.item.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.extension",
            "path": "Questionnaire.item.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.modifierExtension",
            "path": "Questionnaire.item.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Questionnaire.item.linkId",
            "path": "Questionnaire.item.linkId",
            "comment": "This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning.  GUIDs or sequential numbers are appropriate here.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.linkId",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.definition",
            "path": "Questionnaire.item.definition",
            "comment": "The uri refers to an ElementDefinition in a [StructureDefinition](structuredefinition.html#) and always starts with the [canonical URL](references.html#canonical) for the target resource. When referring to a StructureDefinition, a fragment identifier is used to specify the element definition by its id [Element.id](element-definitions.html#Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. In the absence of a fragment identifier, the first/root element definition in the target is the matching element definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.definition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.code",
            "path": "Questionnaire.item.code",
            "comment": "The value may come from the ElementDefinition referred to by .definition.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.item.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "condition": [
              "que-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireConcept"
                }
              ],
              "strength": "example",
              "description": "Codes for questionnaires, groups and individual questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-questions"
            }
          },
          {
            "id": "Questionnaire.item.prefix",
            "path": "Questionnaire.item.prefix",
            "comment": "These are generally unique within a questionnaire, though this is not guaranteed. Some questionnaires may have multiple questions with the same label with logic to control which gets exposed.  Typically, these won't be used for \"display\" items, though such use is not prohibited.  Systems SHOULD NOT generate their own prefixes if prefixes are defined for any items within a Questionnaire.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.prefix",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.text",
            "path": "Questionnaire.item.text",
            "comment": "When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading.  Group item instructions should be included as a display type item within the group.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.type",
            "path": "Questionnaire.item.type",
            "comment": "Additional constraints on the type of answer can be conveyed by extensions. The value may come from the ElementDefinition referred to by .definition.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireItemType"
                }
              ],
              "strength": "required",
              "description": "Distinguishes groups from questions and display text and indicates data type for questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/item-type|4.0.1"
            }
          },
          {
            "id": "Questionnaire.item.enableWhen",
            "path": "Questionnaire.item.enableWhen",
            "comment": "If multiple repetitions of this extension are present, the item should be enabled when the condition for *any* of the repetitions is true.  I.e. treat \"enableWhen\"s as being joined by an \"or\" clause.  This element is a modifier because if enableWhen is present for an item, \"required\" is ignored unless one of the enableWhen conditions is met. When an item is disabled, all of its descendants are disabled, regardless of what their own enableWhen logic might evaluate to.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.item.enableWhen",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "que-7",
                "severity": "error",
                "human": "If the operator is 'exists', the value must be a boolean",
                "expression": "operator = 'exists' implies (answer is Boolean)",
                "xpath": "f:operator/@value != 'exists' or exists(f:answerBoolean)"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If enableWhen is present and the condition evaluates to false, then the Questionnaire behaves as though the elements weren't actually present",
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.enableWhen.id",
            "path": "Questionnaire.item.enableWhen.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.enableWhen.extension",
            "path": "Questionnaire.item.enableWhen.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.enableWhen.modifierExtension",
            "path": "Questionnaire.item.enableWhen.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Questionnaire.item.enableWhen.question",
            "path": "Questionnaire.item.enableWhen.question",
            "comment": "If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the \"ancestor\" axis and then the \"preceding\" axis and then the \"following\" axis.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.enableWhen.question",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.enableWhen.operator",
            "path": "Questionnaire.item.enableWhen.operator",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.enableWhen.operator",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireItemOperator"
                }
              ],
              "strength": "required",
              "description": "The criteria by which a question is enabled.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-enable-operator|4.0.1"
            }
          },
          {
            "id": "Questionnaire.item.enableWhen.answer[x]",
            "path": "Questionnaire.item.enableWhen.answer[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.enableWhen.answer[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "decimal"
              },
              {
                "code": "integer"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "string"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "condition": [
              "que-7"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireQuestionOption3"
                }
              ],
              "strength": "example",
              "description": "Allowed values to answer questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
            }
          },
          {
            "id": "Questionnaire.item.enableBehavior",
            "path": "Questionnaire.item.enableBehavior",
            "comment": "This element must be specified if more than one enableWhen value is provided.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.enableBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "que-12"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnableWhenBehavior"
                }
              ],
              "strength": "required",
              "description": "Controls how multiple enableWhen values are interpreted -  whether all or any must be true.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-enable-behavior|4.0.1"
            }
          },
          {
            "id": "Questionnaire.item.required",
            "path": "Questionnaire.item.required",
            "comment": "Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true.  If an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one child element). The value may come from the ElementDefinition referred to by .definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.required",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "Items are generally assumed not to be required unless explicitly specified. Systems SHOULD always populate this value",
            "condition": [
              "que-6"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.repeats",
            "path": "Questionnaire.item.repeats",
            "comment": "If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse.  When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition (i.e. \"repeat the question\") or to simply allow entry/selection of multiple answers for the question (repeat the answers).  Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.\n\nThe resulting QuestionnaireResponse will be populated the same way regardless of rendering - one 'question' item with multiple answer values.\n\n The value may come from the ElementDefinition referred to by .definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.repeats",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "Items are generally assumed not to repeat unless explicitly specified. Systems SHOULD always populate this value",
            "condition": [
              "que-6"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.readOnly",
            "path": "Questionnaire.item.readOnly",
            "comment": "The value of readOnly elements can be established by asserting  extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.readOnly",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "condition": [
              "que-9"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.maxLength",
            "path": "Questionnaire.item.maxLength",
            "comment": "For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.maxLength",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "condition": [
              "que-10"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.answerValueSet",
            "path": "Questionnaire.item.answerValueSet",
            "comment": "LOINC defines many useful value sets for questionnaire responses. See [LOINC Answer Lists](loinc.html#alist). The value may come from the ElementDefinition referred to by .definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.answerValueSet",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "condition": [
              "que-4",
              "que-5"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.answerOption",
            "path": "Questionnaire.item.answerOption",
            "comment": "This element can be used when the value set machinery of answerValueSet is deemed too cumbersome or when there's a need to capture possible answers that are not codes.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.item.answerOption",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "que-4",
              "que-5"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.answerOption.id",
            "path": "Questionnaire.item.answerOption.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.answerOption.extension",
            "path": "Questionnaire.item.answerOption.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.answerOption.modifierExtension",
            "path": "Questionnaire.item.answerOption.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Questionnaire.item.answerOption.value[x]",
            "path": "Questionnaire.item.answerOption.value[x]",
            "comment": "The data type of the value must agree with the item.type.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.answerOption.value[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              },
              {
                "code": "date"
              },
              {
                "code": "time"
              },
              {
                "code": "string"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireQuestionOption"
                }
              ],
              "strength": "example",
              "description": "Allowed values to answer questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
            }
          },
          {
            "id": "Questionnaire.item.answerOption.initialSelected",
            "path": "Questionnaire.item.answerOption.initialSelected",
            "comment": "Use this instead of initial[v] if answerValueSet is present.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.answerOption.initialSelected",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "Only selected items explicitly marked to be selected",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.initial",
            "path": "Questionnaire.item.initial",
            "comment": "The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created.  Note that initial values can influence results.  The data type of initial[x] must agree with the item.type, and only repeating items can have more then one initial value.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.item.initial",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "que-8",
              "que-13"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.initial.id",
            "path": "Questionnaire.item.initial.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.initial.extension",
            "path": "Questionnaire.item.initial.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Questionnaire.item.initial.modifierExtension",
            "path": "Questionnaire.item.initial.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Questionnaire.item.initial.value[x]",
            "path": "Questionnaire.item.initial.value[x]",
            "comment": "The type of the initial value must be consistent with the type of the item.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Questionnaire.item.initial.value[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "decimal"
              },
              {
                "code": "integer"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireQuestionOption2"
                }
              ],
              "strength": "example",
              "description": "Allowed values to answer questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
            }
          },
          {
            "id": "Questionnaire.item.item",
            "path": "Questionnaire.item.item",
            "comment": "There is no specified limit to the depth of nesting.  However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Questionnaire.item.item",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#Questionnaire.item",
            "condition": [
              "que-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Questionnaire",
            "path": "Questionnaire",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "que-2",
                "severity": "error",
                "human": "The link ids for groups and questions must be unique within the questionnaire",
                "expression": "descendants().linkId.isDistinct()",
                "xpath": "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))"
              },
              {
                "key": "que-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "Questionnaire.url",
            "path": "Questionnaire.url",
            "comment": "The name of the referenced questionnaire can be conveyed using the http://hl7.org/fhir/StructureDefinition/display extension.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.identifier",
            "path": "Questionnaire.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this questionnaire outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.version",
            "path": "Questionnaire.version",
            "comment": "There may be different questionnaire instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the questionnaire with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.name",
            "path": "Questionnaire.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.title",
            "path": "Questionnaire.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.derivedFrom",
            "path": "Questionnaire.derivedFrom",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              }
            ]
          },
          {
            "id": "Questionnaire.status",
            "path": "Questionnaire.status",
            "comment": "Allows filtering of questionnaires that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "Questionnaire.experimental",
            "path": "Questionnaire.experimental",
            "comment": "Allows filtering of questionnaires that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.subjectType",
            "path": "Questionnaire.subjectType",
            "comment": "If none are specified, then the subject is unlimited.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "Questionnaire.date",
            "path": "Questionnaire.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the questionnaire. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.publisher",
            "path": "Questionnaire.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the questionnaire is the organization or individual primarily responsible for the maintenance and upkeep of the questionnaire. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the questionnaire. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.contact",
            "path": "Questionnaire.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.description",
            "path": "Questionnaire.description",
            "comment": "This description can be used to capture details such as why the questionnaire was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the questionnaire as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the questionnaire is presumed to be the predominant language in the place the questionnaire was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "Questionnaire.useContext",
            "path": "Questionnaire.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.jurisdiction",
            "path": "Questionnaire.jurisdiction",
            "comment": "It may be possible for the questionnaire to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "Questionnaire.purpose",
            "path": "Questionnaire.purpose",
            "comment": "This element does not describe the usage of the questionnaire. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this questionnaire.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "Questionnaire.copyright",
            "path": "Questionnaire.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "Questionnaire.approvalDate",
            "path": "Questionnaire.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "Questionnaire.lastReviewDate",
            "path": "Questionnaire.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "Questionnaire.effectivePeriod",
            "path": "Questionnaire.effectivePeriod",
            "comment": "The effective period for a questionnaire  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Questionnaire.code",
            "path": "Questionnaire.code",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireConcept"
                }
              ],
              "strength": "example",
              "description": "Codes for questionnaires, groups and individual questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-questions"
            }
          },
          {
            "id": "Questionnaire.item",
            "path": "Questionnaire.item",
            "comment": "The content of the questionnaire is constructed from an ordered, hierarchical collection of items.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "que-3"
            ],
            "constraint": [
              {
                "key": "que-9",
                "severity": "error",
                "human": "Read-only can't be specified for \"display\" items",
                "expression": "type!='display' or readOnly.empty()",
                "xpath": "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])"
              },
              {
                "key": "que-8",
                "severity": "error",
                "human": "Initial values can't be specified for groups or display items",
                "expression": "(type!='group' and type!='display') or initial.empty()",
                "xpath": "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])"
              },
              {
                "key": "que-6",
                "severity": "error",
                "human": "Required and repeat aren't permitted for display items",
                "expression": "type!='display' or (required.empty() and repeats.empty())",
                "xpath": "not(f:type/@value='display' and (f:required or f:repeats))"
              },
              {
                "key": "que-5",
                "severity": "error",
                "human": "Only 'choice' and 'open-choice' items can have answerValueSet",
                "expression": "(type ='choice' or type = 'open-choice' or type = 'decimal' or type = 'integer' or type = 'date' or type = 'dateTime' or type = 'time' or type = 'string' or type = 'quantity') or (answerValueSet.empty() and answerOption.empty())",
                "xpath": "f:type/@value=('choice','open-choice','decimal','integer','date','dateTime','time','string','quantity',') or not(f:answerOption or f:answerValueSet)"
              },
              {
                "key": "que-4",
                "severity": "error",
                "human": "A question cannot have both answerOption and answerValueSet",
                "expression": "answerOption.empty() or answerValueSet.empty()",
                "xpath": "not(f:answerValueSet and f:answerOption)"
              },
              {
                "key": "que-3",
                "severity": "error",
                "human": "Display items cannot have a \"code\" asserted",
                "expression": "type!='display' or code.empty()",
                "xpath": "not(f:type/@value='display' and f:code)"
              },
              {
                "key": "que-10",
                "severity": "error",
                "human": "Maximum length can only be declared for simple question types",
                "expression": "(type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url' | 'open-choice')) or maxLength.empty()",
                "xpath": "f:type/@value=('boolean', 'decimal', 'integer', 'open-choice', 'string', 'text', 'url') or not(f:maxLength)"
              },
              {
                "key": "que-1",
                "severity": "error",
                "human": "Group items must have nested items, display items cannot have nested items",
                "expression": "(type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())",
                "xpath": "not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))"
              },
              {
                "key": "que-13",
                "severity": "error",
                "human": "Can only have multiple initial values for repeating items",
                "expression": "repeats=true or initial.count() <= 1",
                "xpath": "f:repeats/@value='true' or count(f:initial)<=1"
              },
              {
                "key": "que-11",
                "severity": "error",
                "human": "If one or more answerOption is present, initial[x] must be missing",
                "expression": "answerOption.empty() or initial.empty()",
                "xpath": "not(f:answerOption) or not(count(f:*[starts-with(local-name(.), 'initial')]))"
              },
              {
                "key": "que-12",
                "severity": "error",
                "human": "If there are more than one enableWhen, enableBehavior must be specified",
                "expression": "enableWhen.count() > 2 implies enableBehavior.exists()",
                "xpath": "not(f:answerOption) or not(count(f:*[starts-with(local-name(.), 'initial')]))"
              }
            ]
          },
          {
            "id": "Questionnaire.item.linkId",
            "path": "Questionnaire.item.linkId",
            "comment": "This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning.  GUIDs or sequential numbers are appropriate here.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Questionnaire.item.definition",
            "path": "Questionnaire.item.definition",
            "comment": "The uri refers to an ElementDefinition in a [StructureDefinition](structuredefinition.html#) and always starts with the [canonical URL](references.html#canonical) for the target resource. When referring to a StructureDefinition, a fragment identifier is used to specify the element definition by its id [Element.id](element-definitions.html#Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. In the absence of a fragment identifier, the first/root element definition in the target is the matching element definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "Questionnaire.item.code",
            "path": "Questionnaire.item.code",
            "comment": "The value may come from the ElementDefinition referred to by .definition.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "condition": [
              "que-3"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireConcept"
                }
              ],
              "strength": "example",
              "description": "Codes for questionnaires, groups and individual questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-questions"
            }
          },
          {
            "id": "Questionnaire.item.prefix",
            "path": "Questionnaire.item.prefix",
            "comment": "These are generally unique within a questionnaire, though this is not guaranteed. Some questionnaires may have multiple questions with the same label with logic to control which gets exposed.  Typically, these won't be used for \"display\" items, though such use is not prohibited.  Systems SHOULD NOT generate their own prefixes if prefixes are defined for any items within a Questionnaire.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Questionnaire.item.text",
            "path": "Questionnaire.item.text",
            "comment": "When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading.  Group item instructions should be included as a display type item within the group.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Questionnaire.item.type",
            "path": "Questionnaire.item.type",
            "comment": "Additional constraints on the type of answer can be conveyed by extensions. The value may come from the ElementDefinition referred to by .definition.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireItemType"
                }
              ],
              "strength": "required",
              "description": "Distinguishes groups from questions and display text and indicates data type for questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/item-type|4.0.1"
            }
          },
          {
            "id": "Questionnaire.item.enableWhen",
            "path": "Questionnaire.item.enableWhen",
            "comment": "If multiple repetitions of this extension are present, the item should be enabled when the condition for *any* of the repetitions is true.  I.e. treat \"enableWhen\"s as being joined by an \"or\" clause.  This element is a modifier because if enableWhen is present for an item, \"required\" is ignored unless one of the enableWhen conditions is met. When an item is disabled, all of its descendants are disabled, regardless of what their own enableWhen logic might evaluate to.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "que-7",
                "severity": "error",
                "human": "If the operator is 'exists', the value must be a boolean",
                "expression": "operator = 'exists' implies (answer is Boolean)",
                "xpath": "f:operator/@value != 'exists' or exists(f:answerBoolean)"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If enableWhen is present and the condition evaluates to false, then the Questionnaire behaves as though the elements weren't actually present"
          },
          {
            "id": "Questionnaire.item.enableWhen.question",
            "path": "Questionnaire.item.enableWhen.question",
            "comment": "If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the \"ancestor\" axis and then the \"preceding\" axis and then the \"following\" axis.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Questionnaire.item.enableWhen.operator",
            "path": "Questionnaire.item.enableWhen.operator",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireItemOperator"
                }
              ],
              "strength": "required",
              "description": "The criteria by which a question is enabled.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-enable-operator|4.0.1"
            }
          },
          {
            "id": "Questionnaire.item.enableWhen.answer[x]",
            "path": "Questionnaire.item.enableWhen.answer[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "decimal"
              },
              {
                "code": "integer"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "string"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "condition": [
              "que-7"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireQuestionOption3"
                }
              ],
              "strength": "example",
              "description": "Allowed values to answer questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
            }
          },
          {
            "id": "Questionnaire.item.enableBehavior",
            "path": "Questionnaire.item.enableBehavior",
            "comment": "This element must be specified if more than one enableWhen value is provided.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "que-12"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "EnableWhenBehavior"
                }
              ],
              "strength": "required",
              "description": "Controls how multiple enableWhen values are interpreted -  whether all or any must be true.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-enable-behavior|4.0.1"
            }
          },
          {
            "id": "Questionnaire.item.required",
            "path": "Questionnaire.item.required",
            "comment": "Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true.  If an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one child element). The value may come from the ElementDefinition referred to by .definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "Items are generally assumed not to be required unless explicitly specified. Systems SHOULD always populate this value",
            "condition": [
              "que-6"
            ]
          },
          {
            "id": "Questionnaire.item.repeats",
            "path": "Questionnaire.item.repeats",
            "comment": "If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse.  When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition (i.e. \"repeat the question\") or to simply allow entry/selection of multiple answers for the question (repeat the answers).  Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.\n\nThe resulting QuestionnaireResponse will be populated the same way regardless of rendering - one 'question' item with multiple answer values.\n\n The value may come from the ElementDefinition referred to by .definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "Items are generally assumed not to repeat unless explicitly specified. Systems SHOULD always populate this value",
            "condition": [
              "que-6"
            ]
          },
          {
            "id": "Questionnaire.item.readOnly",
            "path": "Questionnaire.item.readOnly",
            "comment": "The value of readOnly elements can be established by asserting  extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "condition": [
              "que-9"
            ]
          },
          {
            "id": "Questionnaire.item.maxLength",
            "path": "Questionnaire.item.maxLength",
            "comment": "For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "condition": [
              "que-10"
            ]
          },
          {
            "id": "Questionnaire.item.answerValueSet",
            "path": "Questionnaire.item.answerValueSet",
            "comment": "LOINC defines many useful value sets for questionnaire responses. See [LOINC Answer Lists](loinc.html#alist). The value may come from the ElementDefinition referred to by .definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "condition": [
              "que-4",
              "que-5"
            ]
          },
          {
            "id": "Questionnaire.item.answerOption",
            "path": "Questionnaire.item.answerOption",
            "comment": "This element can be used when the value set machinery of answerValueSet is deemed too cumbersome or when there's a need to capture possible answers that are not codes.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "que-4",
              "que-5"
            ]
          },
          {
            "id": "Questionnaire.item.answerOption.value[x]",
            "path": "Questionnaire.item.answerOption.value[x]",
            "comment": "The data type of the value must agree with the item.type.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "integer"
              },
              {
                "code": "date"
              },
              {
                "code": "time"
              },
              {
                "code": "string"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireQuestionOption"
                }
              ],
              "strength": "example",
              "description": "Allowed values to answer questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
            }
          },
          {
            "id": "Questionnaire.item.answerOption.initialSelected",
            "path": "Questionnaire.item.answerOption.initialSelected",
            "comment": "Use this instead of initial[v] if answerValueSet is present.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "Only selected items explicitly marked to be selected"
          },
          {
            "id": "Questionnaire.item.initial",
            "path": "Questionnaire.item.initial",
            "comment": "The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created.  Note that initial values can influence results.  The data type of initial[x] must agree with the item.type, and only repeating items can have more then one initial value.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "que-8",
              "que-13"
            ]
          },
          {
            "id": "Questionnaire.item.initial.value[x]",
            "path": "Questionnaire.item.initial.value[x]",
            "comment": "The type of the initial value must be consistent with the type of the item.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "decimal"
              },
              {
                "code": "integer"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireQuestionOption2"
                }
              ],
              "strength": "example",
              "description": "Allowed values to answer questions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
            }
          },
          {
            "id": "Questionnaire.item.item",
            "path": "Questionnaire.item.item",
            "comment": "There is no specified limit to the depth of nesting.  However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting.",
            "min": 0,
            "max": "*",
            "contentReference": "#Questionnaire.item",
            "condition": [
              "que-1"
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "QuestionnaireResponse",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Diagnostics"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
      "version": "4.0.1",
      "name": "QuestionnaireResponse",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "To support structured, hierarchical reporting of data gathered using digital forms and other questionnaires.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "QuestionnaireResponse",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "QuestionnaireResponse",
            "path": "QuestionnaireResponse",
            "comment": "The QuestionnaireResponse contains enough information about the questions asked and their organization that it can be interpreted somewhat independently from the Questionnaire it is based on.  I.e. You don't need access to the Questionnaire in order to extract basic information from a QuestionnaireResponse.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "QuestionnaireResponse",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.id",
            "path": "QuestionnaireResponse.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.meta",
            "path": "QuestionnaireResponse.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.implicitRules",
            "path": "QuestionnaireResponse.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.language",
            "path": "QuestionnaireResponse.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "QuestionnaireResponse.text",
            "path": "QuestionnaireResponse.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.contained",
            "path": "QuestionnaireResponse.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.extension",
            "path": "QuestionnaireResponse.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.modifierExtension",
            "path": "QuestionnaireResponse.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.identifier",
            "path": "QuestionnaireResponse.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.basedOn",
            "path": "QuestionnaireResponse.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "QuestionnaireResponse.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.partOf",
            "path": "QuestionnaireResponse.partOf",
            "comment": "Composition of questionnaire responses will be handled by the parent questionnaire having answers that reference the child questionnaire.  For relationships to referrals, and other types of requests, use basedOn.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "QuestionnaireResponse.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.questionnaire",
            "path": "QuestionnaireResponse.questionnaire",
            "comment": "If a QuestionnaireResponse references a Questionnaire, then the QuestionnaireResponse structure must be consistent with the Questionnaire (i.e. questions must be organized into the same groups, nested questions must still be nested, etc.).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.questionnaire",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.status",
            "path": "QuestionnaireResponse.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireResponseStatus"
                }
              ],
              "strength": "required",
              "description": "Lifecycle status of the questionnaire response.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1"
            }
          },
          {
            "id": "QuestionnaireResponse.subject",
            "path": "QuestionnaireResponse.subject",
            "comment": "If the Questionnaire declared a subjectType, the resource pointed to by this element must be an instance of one of the listed types.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.encounter",
            "path": "QuestionnaireResponse.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. A questionnaire that was initiated during an encounter but not fully completed during the encounter would still generally be associated with the encounter.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.authored",
            "path": "QuestionnaireResponse.authored",
            "comment": "May be different from the lastUpdateTime of the resource itself, because that reflects when the data was known to the server, not when the data was captured.\n\nThis element is optional to allow for systems that might not know the value, however it SHOULD be populated if possible.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.authored",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.author",
            "path": "QuestionnaireResponse.author",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.source",
            "path": "QuestionnaireResponse.source",
            "comment": "If not specified, no inference can be made about who provided the data.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.source",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.item",
            "path": "QuestionnaireResponse.item",
            "comment": "Groups cannot have answers and therefore must nest directly within item. When dealing with questions, nesting must occur within each answer because some questions may have multiple answers (and the nesting occurs for each answer).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "QuestionnaireResponse.item",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "qrs-1",
                "severity": "error",
                "human": "Nested item can't be beneath both item and answer",
                "expression": "(answer.exists() and item.exists()).not()",
                "xpath": "not(exists(f:answer) and exists(f:item))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.item.id",
            "path": "QuestionnaireResponse.item.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.item.extension",
            "path": "QuestionnaireResponse.item.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.item.modifierExtension",
            "path": "QuestionnaireResponse.item.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.item.linkId",
            "path": "QuestionnaireResponse.item.linkId",
            "min": 1,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.item.linkId",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.item.definition",
            "path": "QuestionnaireResponse.item.definition",
            "comment": "The ElementDefinition must be in a [StructureDefinition](structuredefinition.html#), and must have a fragment identifier that identifies the specific data element by its id (Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x].\n\nThere is no need for this element if the item pointed to by the linkId has a definition listed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.item.definition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.item.text",
            "path": "QuestionnaireResponse.item.text",
            "min": 0,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.item.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.item.answer",
            "path": "QuestionnaireResponse.item.answer",
            "comment": "The value is nested because we cannot have a repeating structure that has variable type.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "QuestionnaireResponse.item.answer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.item.answer.id",
            "path": "QuestionnaireResponse.item.answer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.item.answer.extension",
            "path": "QuestionnaireResponse.item.answer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.item.answer.modifierExtension",
            "path": "QuestionnaireResponse.item.answer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.item.answer.value[x]",
            "path": "QuestionnaireResponse.item.answer.value[x]",
            "comment": "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. Must match the datatype specified by Questionnaire.item.type in the corresponding Questionnaire.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "QuestionnaireResponse.item.answer.value[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "decimal"
              },
              {
                "code": "integer"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireAnswer"
                }
              ],
              "strength": "example",
              "description": "Code indicating the response provided for a question.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
            }
          },
          {
            "id": "QuestionnaireResponse.item.answer.item",
            "path": "QuestionnaireResponse.item.answer.item",
            "min": 0,
            "max": "*",
            "base": {
              "path": "QuestionnaireResponse.item.answer.item",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#QuestionnaireResponse.item",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "QuestionnaireResponse.item.item",
            "path": "QuestionnaireResponse.item.item",
            "min": 0,
            "max": "*",
            "base": {
              "path": "QuestionnaireResponse.item.item",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#QuestionnaireResponse.item",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "QuestionnaireResponse",
            "path": "QuestionnaireResponse",
            "comment": "The QuestionnaireResponse contains enough information about the questions asked and their organization that it can be interpreted somewhat independently from the Questionnaire it is based on.  I.e. You don't need access to the Questionnaire in order to extract basic information from a QuestionnaireResponse.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "QuestionnaireResponse.identifier",
            "path": "QuestionnaireResponse.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.basedOn",
            "path": "QuestionnaireResponse.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.partOf",
            "path": "QuestionnaireResponse.partOf",
            "comment": "Composition of questionnaire responses will be handled by the parent questionnaire having answers that reference the child questionnaire.  For relationships to referrals, and other types of requests, use basedOn.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/Procedure"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.questionnaire",
            "path": "QuestionnaireResponse.questionnaire",
            "comment": "If a QuestionnaireResponse references a Questionnaire, then the QuestionnaireResponse structure must be consistent with the Questionnaire (i.e. questions must be organized into the same groups, nested questions must still be nested, etc.).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.status",
            "path": "QuestionnaireResponse.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireResponseStatus"
                }
              ],
              "strength": "required",
              "description": "Lifecycle status of the questionnaire response.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1"
            }
          },
          {
            "id": "QuestionnaireResponse.subject",
            "path": "QuestionnaireResponse.subject",
            "comment": "If the Questionnaire declared a subjectType, the resource pointed to by this element must be an instance of one of the listed types.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.encounter",
            "path": "QuestionnaireResponse.encounter",
            "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. A questionnaire that was initiated during an encounter but not fully completed during the encounter would still generally be associated with the encounter.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.authored",
            "path": "QuestionnaireResponse.authored",
            "comment": "May be different from the lastUpdateTime of the resource itself, because that reflects when the data was known to the server, not when the data was captured.\n\nThis element is optional to allow for systems that might not know the value, however it SHOULD be populated if possible.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.author",
            "path": "QuestionnaireResponse.author",
            "comment": "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.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.source",
            "path": "QuestionnaireResponse.source",
            "comment": "If not specified, no inference can be made about who provided the data.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "QuestionnaireResponse.item",
            "path": "QuestionnaireResponse.item",
            "comment": "Groups cannot have answers and therefore must nest directly within item. When dealing with questions, nesting must occur within each answer because some questions may have multiple answers (and the nesting occurs for each answer).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "qrs-1",
                "severity": "error",
                "human": "Nested item can't be beneath both item and answer",
                "expression": "(answer.exists() and item.exists()).not()",
                "xpath": "not(exists(f:answer) and exists(f:item))"
              }
            ]
          },
          {
            "id": "QuestionnaireResponse.item.linkId",
            "path": "QuestionnaireResponse.item.linkId",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "QuestionnaireResponse.item.definition",
            "path": "QuestionnaireResponse.item.definition",
            "comment": "The ElementDefinition must be in a [StructureDefinition](structuredefinition.html#), and must have a fragment identifier that identifies the specific data element by its id (Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x].\n\nThere is no need for this element if the item pointed to by the linkId has a definition listed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "QuestionnaireResponse.item.text",
            "path": "QuestionnaireResponse.item.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "QuestionnaireResponse.item.answer",
            "path": "QuestionnaireResponse.item.answer",
            "comment": "The value is nested because we cannot have a repeating structure that has variable type.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "QuestionnaireResponse.item.answer.value[x]",
            "path": "QuestionnaireResponse.item.answer.value[x]",
            "comment": "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. Must match the datatype specified by Questionnaire.item.type in the corresponding Questionnaire.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "decimal"
              },
              {
                "code": "integer"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QuestionnaireAnswer"
                }
              ],
              "strength": "example",
              "description": "Code indicating the response provided for a question.",
              "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
            }
          },
          {
            "id": "QuestionnaireResponse.item.answer.item",
            "path": "QuestionnaireResponse.item.answer.item",
            "min": 0,
            "max": "*",
            "contentReference": "#QuestionnaireResponse.item"
          },
          {
            "id": "QuestionnaireResponse.item.item",
            "path": "QuestionnaireResponse.item.item",
            "min": 0,
            "max": "*",
            "contentReference": "#QuestionnaireResponse.item"
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "RelatedPerson",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Individuals"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
      "version": "4.0.1",
      "name": "RelatedPerson",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Need to track persons related to the patient or the healthcare process.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "RelatedPerson",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "RelatedPerson",
            "path": "RelatedPerson",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RelatedPerson",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RelatedPerson.id",
            "path": "RelatedPerson.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RelatedPerson.meta",
            "path": "RelatedPerson.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RelatedPerson.implicitRules",
            "path": "RelatedPerson.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "RelatedPerson.language",
            "path": "RelatedPerson.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "RelatedPerson.text",
            "path": "RelatedPerson.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RelatedPerson.contained",
            "path": "RelatedPerson.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RelatedPerson.extension",
            "path": "RelatedPerson.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RelatedPerson.modifierExtension",
            "path": "RelatedPerson.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "RelatedPerson.identifier",
            "path": "RelatedPerson.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RelatedPerson.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RelatedPerson.active",
            "path": "RelatedPerson.active",
            "comment": "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RelatedPerson.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "RelatedPerson.patient",
            "path": "RelatedPerson.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RelatedPerson.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RelatedPerson.relationship",
            "path": "RelatedPerson.relationship",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RelatedPerson.relationship",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PatientRelationshipType"
                }
              ],
              "strength": "preferred",
              "description": "The nature of the relationship between a patient and the related person.",
              "valueSet": "http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype"
            }
          },
          {
            "id": "RelatedPerson.name",
            "path": "RelatedPerson.name",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RelatedPerson.name",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RelatedPerson.telecom",
            "path": "RelatedPerson.telecom",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RelatedPerson.telecom",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RelatedPerson.gender",
            "path": "RelatedPerson.gender",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RelatedPerson.gender",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "RelatedPerson.birthDate",
            "path": "RelatedPerson.birthDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RelatedPerson.birthDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RelatedPerson.address",
            "path": "RelatedPerson.address",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RelatedPerson.address",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Address"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RelatedPerson.photo",
            "path": "RelatedPerson.photo",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RelatedPerson.photo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RelatedPerson.period",
            "path": "RelatedPerson.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RelatedPerson.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RelatedPerson.communication",
            "path": "RelatedPerson.communication",
            "comment": "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 RelatedPerson.Communication associations.   If the RelatedPerson does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RelatedPerson.communication",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RelatedPerson.communication.id",
            "path": "RelatedPerson.communication.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RelatedPerson.communication.extension",
            "path": "RelatedPerson.communication.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RelatedPerson.communication.modifierExtension",
            "path": "RelatedPerson.communication.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "RelatedPerson.communication.language",
            "path": "RelatedPerson.communication.language",
            "comment": "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.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RelatedPerson.communication.language",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "RelatedPerson.communication.preferred",
            "path": "RelatedPerson.communication.preferred",
            "comment": "This language is specifically identified for communicating healthcare information.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RelatedPerson.communication.preferred",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "RelatedPerson",
            "path": "RelatedPerson",
            "min": 0,
            "max": "*"
          },
          {
            "id": "RelatedPerson.identifier",
            "path": "RelatedPerson.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RelatedPerson.active",
            "path": "RelatedPerson.active",
            "comment": "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "RelatedPerson.patient",
            "path": "RelatedPerson.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "RelatedPerson.relationship",
            "path": "RelatedPerson.relationship",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PatientRelationshipType"
                }
              ],
              "strength": "preferred",
              "description": "The nature of the relationship between a patient and the related person.",
              "valueSet": "http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype"
            }
          },
          {
            "id": "RelatedPerson.name",
            "path": "RelatedPerson.name",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "HumanName"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RelatedPerson.telecom",
            "path": "RelatedPerson.telecom",
            "comment": "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.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RelatedPerson.gender",
            "path": "RelatedPerson.gender",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AdministrativeGender"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The gender of a person used for administrative purposes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
            }
          },
          {
            "id": "RelatedPerson.birthDate",
            "path": "RelatedPerson.birthDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RelatedPerson.address",
            "path": "RelatedPerson.address",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Address"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RelatedPerson.photo",
            "path": "RelatedPerson.photo",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Attachment"
              }
            ]
          },
          {
            "id": "RelatedPerson.period",
            "path": "RelatedPerson.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "RelatedPerson.communication",
            "path": "RelatedPerson.communication",
            "comment": "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 RelatedPerson.Communication associations.   If the RelatedPerson does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "RelatedPerson.communication.language",
            "path": "RelatedPerson.communication.language",
            "comment": "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.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "RelatedPerson.communication.preferred",
            "path": "RelatedPerson.communication.preferred",
            "comment": "This language is specifically identified for communicating healthcare information.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/RequestGroup",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "RequestGroup",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Care Provision"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/RequestGroup",
      "version": "4.0.1",
      "name": "RequestGroup",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "RequestGroup",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "RequestGroup",
            "path": "RequestGroup",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.id",
            "path": "RequestGroup.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RequestGroup.meta",
            "path": "RequestGroup.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RequestGroup.implicitRules",
            "path": "RequestGroup.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "RequestGroup.language",
            "path": "RequestGroup.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "RequestGroup.text",
            "path": "RequestGroup.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.contained",
            "path": "RequestGroup.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.extension",
            "path": "RequestGroup.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.modifierExtension",
            "path": "RequestGroup.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "RequestGroup.identifier",
            "path": "RequestGroup.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RequestGroup.instantiatesCanonical",
            "path": "RequestGroup.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.instantiatesCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RequestGroup.instantiatesUri",
            "path": "RequestGroup.instantiatesUri",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.instantiatesUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RequestGroup.basedOn",
            "path": "RequestGroup.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.replaces",
            "path": "RequestGroup.replaces",
            "comment": "The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.replaces",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.groupIdentifier",
            "path": "RequestGroup.groupIdentifier",
            "comment": "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition.  Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.groupIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RequestGroup.status",
            "path": "RequestGroup.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RequestGroup.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestStatus"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the lifecycle stage of a request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "RequestGroup.intent",
            "path": "RequestGroup.intent",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RequestGroup.intent",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestIntent"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the degree of authority/intentionality associated with a request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
            }
          },
          {
            "id": "RequestGroup.priority",
            "path": "RequestGroup.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this request should be performed with normal priority",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "RequestGroup.code",
            "path": "RequestGroup.code",
            "comment": "This element can be used to provide a code that captures the meaning of the request group as a whole, as opposed to the code of the action element, which captures the meaning of the individual actions within the request group.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RequestGroup.subject",
            "path": "RequestGroup.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.encounter",
            "path": "RequestGroup.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.authoredOn",
            "path": "RequestGroup.authoredOn",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.authoredOn",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.author",
            "path": "RequestGroup.author",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.author",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.reasonCode",
            "path": "RequestGroup.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.reasonReference",
            "path": "RequestGroup.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.note",
            "path": "RequestGroup.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action",
            "path": "RequestGroup.action",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.action",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "rqg-1",
                "severity": "error",
                "human": "Must have resource or action but not both",
                "expression": "resource.exists() != action.exists()",
                "xpath": "exists(f:resource) != exists(f:action)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.id",
            "path": "RequestGroup.action.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.extension",
            "path": "RequestGroup.action.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.modifierExtension",
            "path": "RequestGroup.action.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "RequestGroup.action.prefix",
            "path": "RequestGroup.action.prefix",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.prefix",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.title",
            "path": "RequestGroup.action.title",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.description",
            "path": "RequestGroup.action.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RequestGroup.action.textEquivalent",
            "path": "RequestGroup.action.textEquivalent",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.textEquivalent",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RequestGroup.action.priority",
            "path": "RequestGroup.action.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.code",
            "path": "RequestGroup.action.code",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.action.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.documentation",
            "path": "RequestGroup.action.documentation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.action.documentation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.condition",
            "path": "RequestGroup.action.condition",
            "comment": "When multiple conditions of the same kind are present, the effects are combined using AND semantics, so the overall condition is true only if all of the conditions are true.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.action.condition",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.condition.id",
            "path": "RequestGroup.action.condition.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.condition.extension",
            "path": "RequestGroup.action.condition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.condition.modifierExtension",
            "path": "RequestGroup.action.condition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "RequestGroup.action.condition.kind",
            "path": "RequestGroup.action.condition.kind",
            "comment": "Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe enter/exit criteria for an action.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.condition.kind",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionConditionKind"
                }
              ],
              "strength": "required",
              "description": "The kind of condition for the action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-condition-kind|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.condition.expression",
            "path": "RequestGroup.action.condition.expression",
            "comment": "The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.condition.expression",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Expression"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.relatedAction",
            "path": "RequestGroup.action.relatedAction",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.action.relatedAction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.relatedAction.id",
            "path": "RequestGroup.action.relatedAction.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.relatedAction.extension",
            "path": "RequestGroup.action.relatedAction.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.relatedAction.modifierExtension",
            "path": "RequestGroup.action.relatedAction.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "RequestGroup.action.relatedAction.actionId",
            "path": "RequestGroup.action.relatedAction.actionId",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.relatedAction.actionId",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.relatedAction.relationship",
            "path": "RequestGroup.action.relatedAction.relationship",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.relatedAction.relationship",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionRelationshipType"
                }
              ],
              "strength": "required",
              "description": "Defines the types of relationships between actions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.relatedAction.offset[x]",
            "path": "RequestGroup.action.relatedAction.offset[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.relatedAction.offset[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              },
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.timing[x]",
            "path": "RequestGroup.action.timing[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.timing[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Duration"
              },
              {
                "code": "Range"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.participant",
            "path": "RequestGroup.action.participant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.action.participant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.type",
            "path": "RequestGroup.action.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionType"
                }
              ],
              "strength": "extensible",
              "description": "The type of action to be performed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-type"
            }
          },
          {
            "id": "RequestGroup.action.groupingBehavior",
            "path": "RequestGroup.action.groupingBehavior",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.groupingBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionGroupingBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines organization behavior of a group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-grouping-behavior|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.selectionBehavior",
            "path": "RequestGroup.action.selectionBehavior",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.selectionBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionSelectionBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines selection behavior of a group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-selection-behavior|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.requiredBehavior",
            "path": "RequestGroup.action.requiredBehavior",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.requiredBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionRequiredBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines expectations around whether an action or action group is required.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-required-behavior|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.precheckBehavior",
            "path": "RequestGroup.action.precheckBehavior",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.precheckBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionPrecheckBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines selection frequency behavior for an action or group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-precheck-behavior|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.cardinalityBehavior",
            "path": "RequestGroup.action.cardinalityBehavior",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.cardinalityBehavior",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionCardinalityBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines behavior for an action or a group for how many times that item may be repeated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-cardinality-behavior|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.resource",
            "path": "RequestGroup.action.resource",
            "comment": "The target resource SHALL be a [Request](request.html) resource with a Request.intent set to \"option\".",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RequestGroup.action.resource",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "condition": [
              "rqg-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RequestGroup.action.action",
            "path": "RequestGroup.action.action",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RequestGroup.action.action",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#RequestGroup.action",
            "condition": [
              "rqg-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "RequestGroup",
            "path": "RequestGroup",
            "min": 0,
            "max": "*"
          },
          {
            "id": "RequestGroup.identifier",
            "path": "RequestGroup.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RequestGroup.instantiatesCanonical",
            "path": "RequestGroup.instantiatesCanonical",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RequestGroup.instantiatesUri",
            "path": "RequestGroup.instantiatesUri",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RequestGroup.basedOn",
            "path": "RequestGroup.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "RequestGroup.replaces",
            "path": "RequestGroup.replaces",
            "comment": "The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "RequestGroup.groupIdentifier",
            "path": "RequestGroup.groupIdentifier",
            "comment": "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition.  Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RequestGroup.status",
            "path": "RequestGroup.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestStatus"
                }
              ],
              "strength": "required",
              "description": "Codes identifying the lifecycle stage of a request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "RequestGroup.intent",
            "path": "RequestGroup.intent",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestIntent"
                }
              ],
              "strength": "required",
              "description": "Codes indicating the degree of authority/intentionality associated with a request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
            }
          },
          {
            "id": "RequestGroup.priority",
            "path": "RequestGroup.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this request should be performed with normal priority",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "RequestGroup.code",
            "path": "RequestGroup.code",
            "comment": "This element can be used to provide a code that captures the meaning of the request group as a whole, as opposed to the code of the action element, which captures the meaning of the individual actions within the request group.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RequestGroup.subject",
            "path": "RequestGroup.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ]
          },
          {
            "id": "RequestGroup.encounter",
            "path": "RequestGroup.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          },
          {
            "id": "RequestGroup.authoredOn",
            "path": "RequestGroup.authoredOn",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "RequestGroup.author",
            "path": "RequestGroup.author",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "RequestGroup.reasonCode",
            "path": "RequestGroup.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "RequestGroup.reasonReference",
            "path": "RequestGroup.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ]
          },
          {
            "id": "RequestGroup.note",
            "path": "RequestGroup.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "RequestGroup.action",
            "path": "RequestGroup.action",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "rqg-1",
                "severity": "error",
                "human": "Must have resource or action but not both",
                "expression": "resource.exists() != action.exists()",
                "xpath": "exists(f:resource) != exists(f:action)"
              }
            ]
          },
          {
            "id": "RequestGroup.action.prefix",
            "path": "RequestGroup.action.prefix",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "RequestGroup.action.title",
            "path": "RequestGroup.action.title",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "RequestGroup.action.description",
            "path": "RequestGroup.action.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RequestGroup.action.textEquivalent",
            "path": "RequestGroup.action.textEquivalent",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RequestGroup.action.priority",
            "path": "RequestGroup.action.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.code",
            "path": "RequestGroup.action.code",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "RequestGroup.action.documentation",
            "path": "RequestGroup.action.documentation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "RequestGroup.action.condition",
            "path": "RequestGroup.action.condition",
            "comment": "When multiple conditions of the same kind are present, the effects are combined using AND semantics, so the overall condition is true only if all of the conditions are true.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "RequestGroup.action.condition.kind",
            "path": "RequestGroup.action.condition.kind",
            "comment": "Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe enter/exit criteria for an action.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionConditionKind"
                }
              ],
              "strength": "required",
              "description": "The kind of condition for the action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-condition-kind|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.condition.expression",
            "path": "RequestGroup.action.condition.expression",
            "comment": "The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Expression"
              }
            ]
          },
          {
            "id": "RequestGroup.action.relatedAction",
            "path": "RequestGroup.action.relatedAction",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "RequestGroup.action.relatedAction.actionId",
            "path": "RequestGroup.action.relatedAction.actionId",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "id": "RequestGroup.action.relatedAction.relationship",
            "path": "RequestGroup.action.relatedAction.relationship",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionRelationshipType"
                }
              ],
              "strength": "required",
              "description": "Defines the types of relationships between actions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-relationship-type|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.relatedAction.offset[x]",
            "path": "RequestGroup.action.relatedAction.offset[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              },
              {
                "code": "Range"
              }
            ]
          },
          {
            "id": "RequestGroup.action.timing[x]",
            "path": "RequestGroup.action.timing[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Age"
              },
              {
                "code": "Period"
              },
              {
                "code": "Duration"
              },
              {
                "code": "Range"
              },
              {
                "code": "Timing"
              }
            ]
          },
          {
            "id": "RequestGroup.action.participant",
            "path": "RequestGroup.action.participant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ]
          },
          {
            "id": "RequestGroup.action.type",
            "path": "RequestGroup.action.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionType"
                }
              ],
              "strength": "extensible",
              "description": "The type of action to be performed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-type"
            }
          },
          {
            "id": "RequestGroup.action.groupingBehavior",
            "path": "RequestGroup.action.groupingBehavior",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionGroupingBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines organization behavior of a group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-grouping-behavior|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.selectionBehavior",
            "path": "RequestGroup.action.selectionBehavior",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionSelectionBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines selection behavior of a group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-selection-behavior|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.requiredBehavior",
            "path": "RequestGroup.action.requiredBehavior",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionRequiredBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines expectations around whether an action or action group is required.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-required-behavior|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.precheckBehavior",
            "path": "RequestGroup.action.precheckBehavior",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionPrecheckBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines selection frequency behavior for an action or group.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-precheck-behavior|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.cardinalityBehavior",
            "path": "RequestGroup.action.cardinalityBehavior",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ActionCardinalityBehavior"
                }
              ],
              "strength": "required",
              "description": "Defines behavior for an action or a group for how many times that item may be repeated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/action-cardinality-behavior|4.0.1"
            }
          },
          {
            "id": "RequestGroup.action.resource",
            "path": "RequestGroup.action.resource",
            "comment": "The target resource SHALL be a [Request](request.html) resource with a Request.intent set to \"option\".",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "condition": [
              "rqg-1"
            ]
          },
          {
            "id": "RequestGroup.action.action",
            "path": "RequestGroup.action.action",
            "min": 0,
            "max": "*",
            "contentReference": "#RequestGroup.action",
            "condition": [
              "rqg-1"
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ResearchDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ResearchDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Evidence-Based Medicine"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ResearchDefinition",
      "version": "4.0.1",
      "name": "ResearchDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ResearchDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ResearchDefinition",
            "path": "ResearchDefinition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "rsd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.id",
            "path": "ResearchDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.meta",
            "path": "ResearchDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.implicitRules",
            "path": "ResearchDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.language",
            "path": "ResearchDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ResearchDefinition.text",
            "path": "ResearchDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.contained",
            "path": "ResearchDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.extension",
            "path": "ResearchDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.modifierExtension",
            "path": "ResearchDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.url",
            "path": "ResearchDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.identifier",
            "path": "ResearchDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this research definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.version",
            "path": "ResearchDefinition.version",
            "comment": "There may be different research definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the research definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.name",
            "path": "ResearchDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.title",
            "path": "ResearchDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.shortTitle",
            "path": "ResearchDefinition.shortTitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.shortTitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.subtitle",
            "path": "ResearchDefinition.subtitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.subtitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.status",
            "path": "ResearchDefinition.status",
            "comment": "Allows filtering of research definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ResearchDefinition.experimental",
            "path": "ResearchDefinition.experimental",
            "comment": "Allows filtering of research definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.subject[x]",
            "path": "ResearchDefinition.subject[x]",
            "comment": "The subject of the ResearchDefinition is critical in interpreting the criteria definitions, as the logic in the ResearchDefinitions is evaluated with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what content is available based on its relationship to the subject. In CQL, this corresponds to the context declaration.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.subject[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for the research (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "ResearchDefinition.date",
            "path": "ResearchDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the research definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.publisher",
            "path": "ResearchDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the research definition is the organization or individual primarily responsible for the maintenance and upkeep of the research definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the research definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.contact",
            "path": "ResearchDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.description",
            "path": "ResearchDefinition.description",
            "comment": "This description can be used to capture details such as why the research definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the research definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the research definition is presumed to be the predominant language in the place the research definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.comment",
            "path": "ResearchDefinition.comment",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.comment",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.useContext",
            "path": "ResearchDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.jurisdiction",
            "path": "ResearchDefinition.jurisdiction",
            "comment": "It may be possible for the research definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ResearchDefinition.purpose",
            "path": "ResearchDefinition.purpose",
            "comment": "This element does not describe the usage of the research definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this research definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.usage",
            "path": "ResearchDefinition.usage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.usage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.copyright",
            "path": "ResearchDefinition.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.approvalDate",
            "path": "ResearchDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.lastReviewDate",
            "path": "ResearchDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.effectivePeriod",
            "path": "ResearchDefinition.effectivePeriod",
            "comment": "The effective period for a research definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.topic",
            "path": "ResearchDefinition.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "ResearchDefinition.author",
            "path": "ResearchDefinition.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.editor",
            "path": "ResearchDefinition.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.reviewer",
            "path": "ResearchDefinition.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.endorser",
            "path": "ResearchDefinition.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.relatedArtifact",
            "path": "ResearchDefinition.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.library",
            "path": "ResearchDefinition.library",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchDefinition.library",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Library"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchDefinition.population",
            "path": "ResearchDefinition.population",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.population",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.exposure",
            "path": "ResearchDefinition.exposure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.exposure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.exposureAlternative",
            "path": "ResearchDefinition.exposureAlternative",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.exposureAlternative",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.outcome",
            "path": "ResearchDefinition.outcome",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchDefinition.outcome",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ResearchDefinition",
            "path": "ResearchDefinition",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "rsd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "ResearchDefinition.url",
            "path": "ResearchDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.identifier",
            "path": "ResearchDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this research definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.version",
            "path": "ResearchDefinition.version",
            "comment": "There may be different research definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the research definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.name",
            "path": "ResearchDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.title",
            "path": "ResearchDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.shortTitle",
            "path": "ResearchDefinition.shortTitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchDefinition.subtitle",
            "path": "ResearchDefinition.subtitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchDefinition.status",
            "path": "ResearchDefinition.status",
            "comment": "Allows filtering of research definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ResearchDefinition.experimental",
            "path": "ResearchDefinition.experimental",
            "comment": "Allows filtering of research definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.subject[x]",
            "path": "ResearchDefinition.subject[x]",
            "comment": "The subject of the ResearchDefinition is critical in interpreting the criteria definitions, as the logic in the ResearchDefinitions is evaluated with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what content is available based on its relationship to the subject. In CQL, this corresponds to the context declaration.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for the research (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "ResearchDefinition.date",
            "path": "ResearchDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the research definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.publisher",
            "path": "ResearchDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the research definition is the organization or individual primarily responsible for the maintenance and upkeep of the research definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the research definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.contact",
            "path": "ResearchDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.description",
            "path": "ResearchDefinition.description",
            "comment": "This description can be used to capture details such as why the research definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the research definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the research definition is presumed to be the predominant language in the place the research definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.comment",
            "path": "ResearchDefinition.comment",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchDefinition.useContext",
            "path": "ResearchDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.jurisdiction",
            "path": "ResearchDefinition.jurisdiction",
            "comment": "It may be possible for the research definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ResearchDefinition.purpose",
            "path": "ResearchDefinition.purpose",
            "comment": "This element does not describe the usage of the research definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this research definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ResearchDefinition.usage",
            "path": "ResearchDefinition.usage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchDefinition.copyright",
            "path": "ResearchDefinition.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ResearchDefinition.approvalDate",
            "path": "ResearchDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ResearchDefinition.lastReviewDate",
            "path": "ResearchDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ResearchDefinition.effectivePeriod",
            "path": "ResearchDefinition.effectivePeriod",
            "comment": "The effective period for a research definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.topic",
            "path": "ResearchDefinition.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "ResearchDefinition.author",
            "path": "ResearchDefinition.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ResearchDefinition.editor",
            "path": "ResearchDefinition.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ResearchDefinition.reviewer",
            "path": "ResearchDefinition.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ResearchDefinition.endorser",
            "path": "ResearchDefinition.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ResearchDefinition.relatedArtifact",
            "path": "ResearchDefinition.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "ResearchDefinition.library",
            "path": "ResearchDefinition.library",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Library"
                ]
              }
            ]
          },
          {
            "id": "ResearchDefinition.population",
            "path": "ResearchDefinition.population",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.exposure",
            "path": "ResearchDefinition.exposure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.exposureAlternative",
            "path": "ResearchDefinition.exposureAlternative",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchDefinition.outcome",
            "path": "ResearchDefinition.outcome",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ResearchElementDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Evidence-Based Medicine"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ResearchElementDefinition",
      "version": "4.0.1",
      "name": "ResearchElementDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "purpose": "Need to be able to define and reuse the definition of individual elements of a research question.",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ResearchElementDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ResearchElementDefinition",
            "path": "ResearchElementDefinition",
            "comment": "PICO stands for Population (the population within which exposures are being compared), Intervention (the conditional state or exposure state being described for its effect on outcomes), Comparison (the alternative conditional state or alternative exposure state being compared against), and Outcome (the result or effect of the intervention in the population).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "red-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.id",
            "path": "ResearchElementDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.meta",
            "path": "ResearchElementDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.implicitRules",
            "path": "ResearchElementDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.language",
            "path": "ResearchElementDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ResearchElementDefinition.text",
            "path": "ResearchElementDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.contained",
            "path": "ResearchElementDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.extension",
            "path": "ResearchElementDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.modifierExtension",
            "path": "ResearchElementDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.url",
            "path": "ResearchElementDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.identifier",
            "path": "ResearchElementDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this research element definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.version",
            "path": "ResearchElementDefinition.version",
            "comment": "There may be different research element definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the research element definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.name",
            "path": "ResearchElementDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.title",
            "path": "ResearchElementDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.shortTitle",
            "path": "ResearchElementDefinition.shortTitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.shortTitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.subtitle",
            "path": "ResearchElementDefinition.subtitle",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.subtitle",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.status",
            "path": "ResearchElementDefinition.status",
            "comment": "Allows filtering of research element definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ResearchElementDefinition.experimental",
            "path": "ResearchElementDefinition.experimental",
            "comment": "Allows filtering of research element definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.subject[x]",
            "path": "ResearchElementDefinition.subject[x]",
            "comment": "The subject of the ResearchElementDefinition is critical in interpreting the criteria definitions, as the logic in the ResearchElementDefinitions is evaluated with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what content is available based on its relationship to the subject. In CQL, this corresponds to the context declaration.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.subject[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for a measure (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "ResearchElementDefinition.date",
            "path": "ResearchElementDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the research element definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.publisher",
            "path": "ResearchElementDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the research element definition is the organization or individual primarily responsible for the maintenance and upkeep of the research element definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the research element definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.contact",
            "path": "ResearchElementDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.description",
            "path": "ResearchElementDefinition.description",
            "comment": "This description can be used to capture details such as why the research element definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the research element definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the research element definition is presumed to be the predominant language in the place the research element definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.comment",
            "path": "ResearchElementDefinition.comment",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.comment",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.useContext",
            "path": "ResearchElementDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.jurisdiction",
            "path": "ResearchElementDefinition.jurisdiction",
            "comment": "It may be possible for the research element definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ResearchElementDefinition.purpose",
            "path": "ResearchElementDefinition.purpose",
            "comment": "This element does not describe the usage of the research element definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this research element definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.usage",
            "path": "ResearchElementDefinition.usage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.usage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.copyright",
            "path": "ResearchElementDefinition.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.approvalDate",
            "path": "ResearchElementDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.lastReviewDate",
            "path": "ResearchElementDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.effectivePeriod",
            "path": "ResearchElementDefinition.effectivePeriod",
            "comment": "The effective period for a research element definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.topic",
            "path": "ResearchElementDefinition.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "ResearchElementDefinition.author",
            "path": "ResearchElementDefinition.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.editor",
            "path": "ResearchElementDefinition.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.reviewer",
            "path": "ResearchElementDefinition.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.endorser",
            "path": "ResearchElementDefinition.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.relatedArtifact",
            "path": "ResearchElementDefinition.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.library",
            "path": "ResearchElementDefinition.library",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.library",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Library"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.type",
            "path": "ResearchElementDefinition.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchElementType"
                }
              ],
              "strength": "required",
              "description": "The possible types of research elements (E.g. Population, Exposure, Outcome).",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-element-type|4.0.1"
            }
          },
          {
            "id": "ResearchElementDefinition.variableType",
            "path": "ResearchElementDefinition.variableType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.variableType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VariableType"
                }
              ],
              "strength": "required",
              "description": "The possible types of variables for exposures or outcomes (E.g. Dichotomous, Continuous, Descriptive).",
              "valueSet": "http://hl7.org/fhir/ValueSet/variable-type|4.0.1"
            }
          },
          {
            "id": "ResearchElementDefinition.characteristic",
            "path": "ResearchElementDefinition.characteristic",
            "comment": "Characteristics can be defined flexibly to accommodate different use cases for membership criteria, ranging from simple codes, all the way to using an expression language to express the criteria.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.characteristic",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.characteristic.id",
            "path": "ResearchElementDefinition.characteristic.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.characteristic.extension",
            "path": "ResearchElementDefinition.characteristic.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.characteristic.modifierExtension",
            "path": "ResearchElementDefinition.characteristic.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.characteristic.definition[x]",
            "path": "ResearchElementDefinition.characteristic.definition[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.definition[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              },
              {
                "code": "Expression"
              },
              {
                "code": "DataRequirement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.characteristic.usageContext",
            "path": "ResearchElementDefinition.characteristic.usageContext",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchElementDefinition.characteristic.usageContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.characteristic.exclude",
            "path": "ResearchElementDefinition.characteristic.exclude",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.exclude",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "False",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.characteristic.unitOfMeasure",
            "path": "ResearchElementDefinition.characteristic.unitOfMeasure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.unitOfMeasure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "UCUMUnits"
                }
              ],
              "strength": "required",
              "description": "Unified Code for Units of Measure (UCUM).",
              "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units|4.0.1"
            }
          },
          {
            "id": "ResearchElementDefinition.characteristic.studyEffectiveDescription",
            "path": "ResearchElementDefinition.characteristic.studyEffectiveDescription",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.studyEffectiveDescription",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.characteristic.studyEffective[x]",
            "path": "ResearchElementDefinition.characteristic.studyEffective[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.studyEffective[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Duration"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.characteristic.studyEffectiveTimeFromStart",
            "path": "ResearchElementDefinition.characteristic.studyEffectiveTimeFromStart",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.studyEffectiveTimeFromStart",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.characteristic.studyEffectiveGroupMeasure",
            "path": "ResearchElementDefinition.characteristic.studyEffectiveGroupMeasure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.studyEffectiveGroupMeasure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupMeasure"
                }
              ],
              "strength": "required",
              "description": "Possible group measure aggregates (E.g. Mean, Median).",
              "valueSet": "http://hl7.org/fhir/ValueSet/group-measure|4.0.1"
            }
          },
          {
            "id": "ResearchElementDefinition.characteristic.participantEffectiveDescription",
            "path": "ResearchElementDefinition.characteristic.participantEffectiveDescription",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.participantEffectiveDescription",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.characteristic.participantEffective[x]",
            "path": "ResearchElementDefinition.characteristic.participantEffective[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.participantEffective[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Duration"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.characteristic.participantEffectiveTimeFromStart",
            "path": "ResearchElementDefinition.characteristic.participantEffectiveTimeFromStart",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.participantEffectiveTimeFromStart",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchElementDefinition.characteristic.participantEffectiveGroupMeasure",
            "path": "ResearchElementDefinition.characteristic.participantEffectiveGroupMeasure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchElementDefinition.characteristic.participantEffectiveGroupMeasure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupMeasure"
                }
              ],
              "strength": "required",
              "description": "Possible group measure aggregates (E.g. Mean, Median).",
              "valueSet": "http://hl7.org/fhir/ValueSet/group-measure|4.0.1"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ResearchElementDefinition",
            "path": "ResearchElementDefinition",
            "comment": "PICO stands for Population (the population within which exposures are being compared), Intervention (the conditional state or exposure state being described for its effect on outcomes), Comparison (the alternative conditional state or alternative exposure state being compared against), and Outcome (the result or effect of the intervention in the population).",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "red-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.url",
            "path": "ResearchElementDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.identifier",
            "path": "ResearchElementDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this research element definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.version",
            "path": "ResearchElementDefinition.version",
            "comment": "There may be different research element definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the research element definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.name",
            "path": "ResearchElementDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.title",
            "path": "ResearchElementDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.shortTitle",
            "path": "ResearchElementDefinition.shortTitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.subtitle",
            "path": "ResearchElementDefinition.subtitle",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.status",
            "path": "ResearchElementDefinition.status",
            "comment": "Allows filtering of research element definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ResearchElementDefinition.experimental",
            "path": "ResearchElementDefinition.experimental",
            "comment": "Allows filtering of research element definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.subject[x]",
            "path": "ResearchElementDefinition.subject[x]",
            "comment": "The subject of the ResearchElementDefinition is critical in interpreting the criteria definitions, as the logic in the ResearchElementDefinitions is evaluated with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what content is available based on its relationship to the subject. In CQL, this corresponds to the context declaration.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "meaningWhenMissing": "Patient",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubjectType"
                }
              ],
              "strength": "extensible",
              "description": "The possible types of subjects for a measure (E.g. Patient, Practitioner, Organization, Location, etc.).",
              "valueSet": "http://hl7.org/fhir/ValueSet/subject-type"
            }
          },
          {
            "id": "ResearchElementDefinition.date",
            "path": "ResearchElementDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the research element definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.publisher",
            "path": "ResearchElementDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the research element definition is the organization or individual primarily responsible for the maintenance and upkeep of the research element definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the research element definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.contact",
            "path": "ResearchElementDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.description",
            "path": "ResearchElementDefinition.description",
            "comment": "This description can be used to capture details such as why the research element definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the research element definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the research element definition is presumed to be the predominant language in the place the research element definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.comment",
            "path": "ResearchElementDefinition.comment",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.useContext",
            "path": "ResearchElementDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.jurisdiction",
            "path": "ResearchElementDefinition.jurisdiction",
            "comment": "It may be possible for the research element definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ResearchElementDefinition.purpose",
            "path": "ResearchElementDefinition.purpose",
            "comment": "This element does not describe the usage of the research element definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this research element definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.usage",
            "path": "ResearchElementDefinition.usage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.copyright",
            "path": "ResearchElementDefinition.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.approvalDate",
            "path": "ResearchElementDefinition.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.lastReviewDate",
            "path": "ResearchElementDefinition.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.effectivePeriod",
            "path": "ResearchElementDefinition.effectivePeriod",
            "comment": "The effective period for a research element definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.topic",
            "path": "ResearchElementDefinition.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "ResearchElementDefinition.author",
            "path": "ResearchElementDefinition.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.editor",
            "path": "ResearchElementDefinition.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.reviewer",
            "path": "ResearchElementDefinition.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.endorser",
            "path": "ResearchElementDefinition.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.relatedArtifact",
            "path": "ResearchElementDefinition.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.library",
            "path": "ResearchElementDefinition.library",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Library"
                ]
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.type",
            "path": "ResearchElementDefinition.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchElementType"
                }
              ],
              "strength": "required",
              "description": "The possible types of research elements (E.g. Population, Exposure, Outcome).",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-element-type|4.0.1"
            }
          },
          {
            "id": "ResearchElementDefinition.variableType",
            "path": "ResearchElementDefinition.variableType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VariableType"
                }
              ],
              "strength": "required",
              "description": "The possible types of variables for exposures or outcomes (E.g. Dichotomous, Continuous, Descriptive).",
              "valueSet": "http://hl7.org/fhir/ValueSet/variable-type|4.0.1"
            }
          },
          {
            "id": "ResearchElementDefinition.characteristic",
            "path": "ResearchElementDefinition.characteristic",
            "comment": "Characteristics can be defined flexibly to accommodate different use cases for membership criteria, ranging from simple codes, all the way to using an expression language to express the criteria.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.characteristic.definition[x]",
            "path": "ResearchElementDefinition.characteristic.definition[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              },
              {
                "code": "Expression"
              },
              {
                "code": "DataRequirement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchElementDefinition.characteristic.usageContext",
            "path": "ResearchElementDefinition.characteristic.usageContext",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.characteristic.exclude",
            "path": "ResearchElementDefinition.characteristic.exclude",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "False"
          },
          {
            "id": "ResearchElementDefinition.characteristic.unitOfMeasure",
            "path": "ResearchElementDefinition.characteristic.unitOfMeasure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "UCUMUnits"
                }
              ],
              "strength": "required",
              "description": "Unified Code for Units of Measure (UCUM).",
              "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units|4.0.1"
            }
          },
          {
            "id": "ResearchElementDefinition.characteristic.studyEffectiveDescription",
            "path": "ResearchElementDefinition.characteristic.studyEffectiveDescription",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.characteristic.studyEffective[x]",
            "path": "ResearchElementDefinition.characteristic.studyEffective[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Duration"
              },
              {
                "code": "Timing"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.characteristic.studyEffectiveTimeFromStart",
            "path": "ResearchElementDefinition.characteristic.studyEffectiveTimeFromStart",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.characteristic.studyEffectiveGroupMeasure",
            "path": "ResearchElementDefinition.characteristic.studyEffectiveGroupMeasure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupMeasure"
                }
              ],
              "strength": "required",
              "description": "Possible group measure aggregates (E.g. Mean, Median).",
              "valueSet": "http://hl7.org/fhir/ValueSet/group-measure|4.0.1"
            }
          },
          {
            "id": "ResearchElementDefinition.characteristic.participantEffectiveDescription",
            "path": "ResearchElementDefinition.characteristic.participantEffectiveDescription",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.characteristic.participantEffective[x]",
            "path": "ResearchElementDefinition.characteristic.participantEffective[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Duration"
              },
              {
                "code": "Timing"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.characteristic.participantEffectiveTimeFromStart",
            "path": "ResearchElementDefinition.characteristic.participantEffectiveTimeFromStart",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "ResearchElementDefinition.characteristic.participantEffectiveGroupMeasure",
            "path": "ResearchElementDefinition.characteristic.participantEffectiveGroupMeasure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "GroupMeasure"
                }
              ],
              "strength": "required",
              "description": "Possible group measure aggregates (E.g. Mean, Median).",
              "valueSet": "http://hl7.org/fhir/ValueSet/group-measure|4.0.1"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ResearchStudy",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ResearchStudy",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Public Health &amp; Research"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ResearchStudy",
      "version": "4.0.1",
      "name": "ResearchStudy",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ResearchStudy",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ResearchStudy",
            "path": "ResearchStudy",
            "comment": "Need to make sure we encompass public health studies.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.id",
            "path": "ResearchStudy.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.meta",
            "path": "ResearchStudy.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.implicitRules",
            "path": "ResearchStudy.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ResearchStudy.language",
            "path": "ResearchStudy.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ResearchStudy.text",
            "path": "ResearchStudy.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.contained",
            "path": "ResearchStudy.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.extension",
            "path": "ResearchStudy.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.modifierExtension",
            "path": "ResearchStudy.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ResearchStudy.identifier",
            "path": "ResearchStudy.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.title",
            "path": "ResearchStudy.title",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.protocol",
            "path": "ResearchStudy.protocol",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.protocol",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.partOf",
            "path": "ResearchStudy.partOf",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchStudy"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.status",
            "path": "ResearchStudy.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ResearchStudy.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyStatus"
                }
              ],
              "strength": "required",
              "description": "Codes that convey the current status of the research study.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-study-status|4.0.1"
            }
          },
          {
            "id": "ResearchStudy.primaryPurposeType",
            "path": "ResearchStudy.primaryPurposeType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.primaryPurposeType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyPrimaryPurposeType"
                }
              ],
              "strength": "extensible",
              "description": "Codes for the main intent of the study.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-study-prim-purp-type"
            }
          },
          {
            "id": "ResearchStudy.phase",
            "path": "ResearchStudy.phase",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.phase",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyPhase"
                }
              ],
              "strength": "example",
              "description": "Codes for the stage in the progression of a therapy from initial experimental use in humans in clinical trials to post-market evaluation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-study-phase"
            }
          },
          {
            "id": "ResearchStudy.category",
            "path": "ResearchStudy.category",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyCategory"
                }
              ],
              "strength": "example",
              "description": "Codes that describe the type of research study.  E.g. Study phase, Interventional/Observational, blinding type, etc."
            }
          },
          {
            "id": "ResearchStudy.focus",
            "path": "ResearchStudy.focus",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.focus",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyFocus"
                }
              ],
              "strength": "example",
              "description": "Codes for medications, devices and other interventions."
            }
          },
          {
            "id": "ResearchStudy.condition",
            "path": "ResearchStudy.condition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.condition",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionCode"
                }
              ],
              "strength": "example",
              "description": "Identification of the condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "ResearchStudy.contact",
            "path": "ResearchStudy.contact",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.relatedArtifact",
            "path": "ResearchStudy.relatedArtifact",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.keyword",
            "path": "ResearchStudy.keyword",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.keyword",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyKeyword"
                }
              ],
              "strength": "example",
              "description": "Words associated with the study that may be useful in discovery."
            }
          },
          {
            "id": "ResearchStudy.location",
            "path": "ResearchStudy.location",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.location",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ResearchStudy.description",
            "path": "ResearchStudy.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.enrollment",
            "path": "ResearchStudy.enrollment",
            "comment": "The Group referenced should not generally enumerate specific subjects.  Subjects will be linked to the study using the ResearchSubject resource.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.enrollment",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.period",
            "path": "ResearchStudy.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.sponsor",
            "path": "ResearchStudy.sponsor",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.sponsor",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.principalInvestigator",
            "path": "ResearchStudy.principalInvestigator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.principalInvestigator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.site",
            "path": "ResearchStudy.site",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.site",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchStudy.reasonStopped",
            "path": "ResearchStudy.reasonStopped",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.reasonStopped",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyReasonStopped"
                }
              ],
              "strength": "example",
              "description": "Codes for why the study ended prematurely.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-study-reason-stopped"
            }
          },
          {
            "id": "ResearchStudy.note",
            "path": "ResearchStudy.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.arm",
            "path": "ResearchStudy.arm",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.arm",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.arm.id",
            "path": "ResearchStudy.arm.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.arm.extension",
            "path": "ResearchStudy.arm.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.arm.modifierExtension",
            "path": "ResearchStudy.arm.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ResearchStudy.arm.name",
            "path": "ResearchStudy.arm.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ResearchStudy.arm.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.arm.type",
            "path": "ResearchStudy.arm.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.arm.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.arm.description",
            "path": "ResearchStudy.arm.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.arm.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.objective",
            "path": "ResearchStudy.objective",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchStudy.objective",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.objective.id",
            "path": "ResearchStudy.objective.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.objective.extension",
            "path": "ResearchStudy.objective.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.objective.modifierExtension",
            "path": "ResearchStudy.objective.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ResearchStudy.objective.name",
            "path": "ResearchStudy.objective.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.objective.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchStudy.objective.type",
            "path": "ResearchStudy.objective.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchStudy.objective.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyObjectiveType"
                }
              ],
              "strength": "preferred",
              "description": "Codes for the kind of study objective.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-study-objective-type"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ResearchStudy",
            "path": "ResearchStudy",
            "comment": "Need to make sure we encompass public health studies.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "ResearchStudy.identifier",
            "path": "ResearchStudy.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchStudy.title",
            "path": "ResearchStudy.title",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchStudy.protocol",
            "path": "ResearchStudy.protocol",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchStudy.partOf",
            "path": "ResearchStudy.partOf",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchStudy"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchStudy.status",
            "path": "ResearchStudy.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyStatus"
                }
              ],
              "strength": "required",
              "description": "Codes that convey the current status of the research study.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-study-status|4.0.1"
            }
          },
          {
            "id": "ResearchStudy.primaryPurposeType",
            "path": "ResearchStudy.primaryPurposeType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyPrimaryPurposeType"
                }
              ],
              "strength": "extensible",
              "description": "Codes for the main intent of the study.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-study-prim-purp-type"
            }
          },
          {
            "id": "ResearchStudy.phase",
            "path": "ResearchStudy.phase",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyPhase"
                }
              ],
              "strength": "example",
              "description": "Codes for the stage in the progression of a therapy from initial experimental use in humans in clinical trials to post-market evaluation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-study-phase"
            }
          },
          {
            "id": "ResearchStudy.category",
            "path": "ResearchStudy.category",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyCategory"
                }
              ],
              "strength": "example",
              "description": "Codes that describe the type of research study.  E.g. Study phase, Interventional/Observational, blinding type, etc."
            }
          },
          {
            "id": "ResearchStudy.focus",
            "path": "ResearchStudy.focus",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyFocus"
                }
              ],
              "strength": "example",
              "description": "Codes for medications, devices and other interventions."
            }
          },
          {
            "id": "ResearchStudy.condition",
            "path": "ResearchStudy.condition",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConditionCode"
                }
              ],
              "strength": "example",
              "description": "Identification of the condition or diagnosis.",
              "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
            }
          },
          {
            "id": "ResearchStudy.contact",
            "path": "ResearchStudy.contact",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchStudy.relatedArtifact",
            "path": "ResearchStudy.relatedArtifact",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "ResearchStudy.keyword",
            "path": "ResearchStudy.keyword",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyKeyword"
                }
              ],
              "strength": "example",
              "description": "Words associated with the study that may be useful in discovery."
            }
          },
          {
            "id": "ResearchStudy.location",
            "path": "ResearchStudy.location",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ResearchStudy.description",
            "path": "ResearchStudy.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ResearchStudy.enrollment",
            "path": "ResearchStudy.enrollment",
            "comment": "The Group referenced should not generally enumerate specific subjects.  Subjects will be linked to the study using the ResearchSubject resource.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchStudy.period",
            "path": "ResearchStudy.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchStudy.sponsor",
            "path": "ResearchStudy.sponsor",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchStudy.principalInvestigator",
            "path": "ResearchStudy.principalInvestigator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchStudy.site",
            "path": "ResearchStudy.site",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchStudy.reasonStopped",
            "path": "ResearchStudy.reasonStopped",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyReasonStopped"
                }
              ],
              "strength": "example",
              "description": "Codes for why the study ended prematurely.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-study-reason-stopped"
            }
          },
          {
            "id": "ResearchStudy.note",
            "path": "ResearchStudy.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "ResearchStudy.arm",
            "path": "ResearchStudy.arm",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ResearchStudy.arm.name",
            "path": "ResearchStudy.arm.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchStudy.arm.type",
            "path": "ResearchStudy.arm.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "ResearchStudy.arm.description",
            "path": "ResearchStudy.arm.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchStudy.objective",
            "path": "ResearchStudy.objective",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ResearchStudy.objective.name",
            "path": "ResearchStudy.objective.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchStudy.objective.type",
            "path": "ResearchStudy.objective.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchStudyObjectiveType"
                }
              ],
              "strength": "preferred",
              "description": "Codes for the kind of study objective.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-study-objective-type"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ResearchSubject",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ResearchSubject",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Public Health &amp; Research"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ResearchSubject",
      "version": "4.0.1",
      "name": "ResearchSubject",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ResearchSubject",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ResearchSubject",
            "path": "ResearchSubject",
            "comment": "Need to make sure we encompass public health studies.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchSubject",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchSubject.id",
            "path": "ResearchSubject.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchSubject.meta",
            "path": "ResearchSubject.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchSubject.implicitRules",
            "path": "ResearchSubject.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ResearchSubject.language",
            "path": "ResearchSubject.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ResearchSubject.text",
            "path": "ResearchSubject.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchSubject.contained",
            "path": "ResearchSubject.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchSubject.extension",
            "path": "ResearchSubject.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchSubject.modifierExtension",
            "path": "ResearchSubject.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ResearchSubject.identifier",
            "path": "ResearchSubject.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ResearchSubject.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchSubject.status",
            "path": "ResearchSubject.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ResearchSubject.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchSubjectStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates the progression of a study subject through a study.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-subject-status|4.0.1"
            }
          },
          {
            "id": "ResearchSubject.period",
            "path": "ResearchSubject.period",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchSubject.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchSubject.study",
            "path": "ResearchSubject.study",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ResearchSubject.study",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchStudy"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchSubject.individual",
            "path": "ResearchSubject.individual",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ResearchSubject.individual",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ResearchSubject.assignedArm",
            "path": "ResearchSubject.assignedArm",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchSubject.assignedArm",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchSubject.actualArm",
            "path": "ResearchSubject.actualArm",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchSubject.actualArm",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ResearchSubject.consent",
            "path": "ResearchSubject.consent",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ResearchSubject.consent",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Consent"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ResearchSubject",
            "path": "ResearchSubject",
            "comment": "Need to make sure we encompass public health studies.",
            "min": 0,
            "max": "*"
          },
          {
            "id": "ResearchSubject.identifier",
            "path": "ResearchSubject.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchSubject.status",
            "path": "ResearchSubject.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResearchSubjectStatus"
                }
              ],
              "strength": "required",
              "description": "Indicates the progression of a study subject through a study.",
              "valueSet": "http://hl7.org/fhir/ValueSet/research-subject-status|4.0.1"
            }
          },
          {
            "id": "ResearchSubject.period",
            "path": "ResearchSubject.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchSubject.study",
            "path": "ResearchSubject.study",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ResearchStudy"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchSubject.individual",
            "path": "ResearchSubject.individual",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ResearchSubject.assignedArm",
            "path": "ResearchSubject.assignedArm",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchSubject.actualArm",
            "path": "ResearchSubject.actualArm",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ResearchSubject.consent",
            "path": "ResearchSubject.consent",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Consent"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/RiskAssessment",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "RiskAssessment",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Care Provision"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/RiskAssessment",
      "version": "4.0.1",
      "name": "RiskAssessment",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "RiskAssessment",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "RiskAssessment",
            "path": "RiskAssessment",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskAssessment",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.id",
            "path": "RiskAssessment.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskAssessment.meta",
            "path": "RiskAssessment.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskAssessment.implicitRules",
            "path": "RiskAssessment.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "RiskAssessment.language",
            "path": "RiskAssessment.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "RiskAssessment.text",
            "path": "RiskAssessment.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.contained",
            "path": "RiskAssessment.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.extension",
            "path": "RiskAssessment.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.modifierExtension",
            "path": "RiskAssessment.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "RiskAssessment.identifier",
            "path": "RiskAssessment.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskAssessment.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskAssessment.basedOn",
            "path": "RiskAssessment.basedOn",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.basedOn",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.parent",
            "path": "RiskAssessment.parent",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.parent",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.status",
            "path": "RiskAssessment.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RiskAssessment.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RiskAssessmentStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the risk assessment; e.g. preliminary, final, amended, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
            }
          },
          {
            "id": "RiskAssessment.method",
            "path": "RiskAssessment.method",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.method",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RiskAssessmentMethod"
                }
              ],
              "strength": "example",
              "description": "The mechanism or algorithm used to make the assessment; e.g. TIMI, PRISM, Cardiff Type 2 diabetes, etc."
            }
          },
          {
            "id": "RiskAssessment.code",
            "path": "RiskAssessment.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskAssessment.subject",
            "path": "RiskAssessment.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RiskAssessment.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskAssessment.encounter",
            "path": "RiskAssessment.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskAssessment.occurrence[x]",
            "path": "RiskAssessment.occurrence[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.occurrence[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskAssessment.condition",
            "path": "RiskAssessment.condition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.condition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskAssessment.performer",
            "path": "RiskAssessment.performer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.performer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskAssessment.reasonCode",
            "path": "RiskAssessment.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskAssessment.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.reasonReference",
            "path": "RiskAssessment.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskAssessment.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.basis",
            "path": "RiskAssessment.basis",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskAssessment.basis",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.prediction",
            "path": "RiskAssessment.prediction",
            "comment": "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": "*",
            "base": {
              "path": "RiskAssessment.prediction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ras-2",
                "severity": "error",
                "human": "Must be <= 100",
                "expression": "probability is decimal implies (probability as decimal) <= 100",
                "xpath": "not(f:probabilityDecimal) or f:probabilityDecimal/@value <= 100"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.prediction.id",
            "path": "RiskAssessment.prediction.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.prediction.extension",
            "path": "RiskAssessment.prediction.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.prediction.modifierExtension",
            "path": "RiskAssessment.prediction.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "RiskAssessment.prediction.outcome",
            "path": "RiskAssessment.prediction.outcome",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.prediction.outcome",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RiskAssessmentOutcome"
                }
              ],
              "strength": "example",
              "description": "The condition or other outcome; e.g. death, remission, amputation, infection, etc."
            }
          },
          {
            "id": "RiskAssessment.prediction.probability[x]",
            "path": "RiskAssessment.prediction.probability[x]",
            "comment": "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",
            "base": {
              "path": "RiskAssessment.prediction.probability[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              },
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ras-1",
                "severity": "error",
                "human": "low and high must be percentages, if present",
                "expression": "(low.empty() or ((low.code = '%') and (low.system = %ucum))) and (high.empty() or ((high.code = '%') and (high.system = %ucum)))",
                "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'])"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.prediction.qualitativeRisk",
            "path": "RiskAssessment.prediction.qualitativeRisk",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.prediction.qualitativeRisk",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RiskAssessmentProbability"
                }
              ],
              "strength": "example",
              "description": "The likelihood of the occurrence of a specified outcome.",
              "valueSet": "http://hl7.org/fhir/ValueSet/risk-probability"
            }
          },
          {
            "id": "RiskAssessment.prediction.relativeRisk",
            "path": "RiskAssessment.prediction.relativeRisk",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.prediction.relativeRisk",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.prediction.when[x]",
            "path": "RiskAssessment.prediction.when[x]",
            "comment": "If not specified, the risk applies \"over the subject's lifespan\".",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.prediction.when[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              },
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.prediction.rationale",
            "path": "RiskAssessment.prediction.rationale",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.prediction.rationale",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.mitigation",
            "path": "RiskAssessment.mitigation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskAssessment.mitigation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskAssessment.note",
            "path": "RiskAssessment.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskAssessment.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "RiskAssessment",
            "path": "RiskAssessment",
            "min": 0,
            "max": "*"
          },
          {
            "id": "RiskAssessment.identifier",
            "path": "RiskAssessment.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskAssessment.basedOn",
            "path": "RiskAssessment.basedOn",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "RiskAssessment.parent",
            "path": "RiskAssessment.parent",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "RiskAssessment.status",
            "path": "RiskAssessment.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RiskAssessmentStatus"
                }
              ],
              "strength": "required",
              "description": "The status of the risk assessment; e.g. preliminary, final, amended, etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
            }
          },
          {
            "id": "RiskAssessment.method",
            "path": "RiskAssessment.method",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RiskAssessmentMethod"
                }
              ],
              "strength": "example",
              "description": "The mechanism or algorithm used to make the assessment; e.g. TIMI, PRISM, Cardiff Type 2 diabetes, etc."
            }
          },
          {
            "id": "RiskAssessment.code",
            "path": "RiskAssessment.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskAssessment.subject",
            "path": "RiskAssessment.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskAssessment.encounter",
            "path": "RiskAssessment.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskAssessment.occurrence[x]",
            "path": "RiskAssessment.occurrence[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskAssessment.condition",
            "path": "RiskAssessment.condition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskAssessment.performer",
            "path": "RiskAssessment.performer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskAssessment.reasonCode",
            "path": "RiskAssessment.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ]
          },
          {
            "id": "RiskAssessment.reasonReference",
            "path": "RiskAssessment.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ]
          },
          {
            "id": "RiskAssessment.basis",
            "path": "RiskAssessment.basis",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "RiskAssessment.prediction",
            "path": "RiskAssessment.prediction",
            "comment": "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"
              }
            ],
            "constraint": [
              {
                "key": "ras-2",
                "severity": "error",
                "human": "Must be <= 100",
                "expression": "probability is decimal implies (probability as decimal) <= 100",
                "xpath": "not(f:probabilityDecimal) or f:probabilityDecimal/@value <= 100"
              }
            ]
          },
          {
            "id": "RiskAssessment.prediction.outcome",
            "path": "RiskAssessment.prediction.outcome",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RiskAssessmentOutcome"
                }
              ],
              "strength": "example",
              "description": "The condition or other outcome; e.g. death, remission, amputation, infection, etc."
            }
          },
          {
            "id": "RiskAssessment.prediction.probability[x]",
            "path": "RiskAssessment.prediction.probability[x]",
            "comment": "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"
              }
            ],
            "constraint": [
              {
                "key": "ras-1",
                "severity": "error",
                "human": "low and high must be percentages, if present",
                "expression": "(low.empty() or ((low.code = '%') and (low.system = %ucum))) and (high.empty() or ((high.code = '%') and (high.system = %ucum)))",
                "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'])"
              }
            ]
          },
          {
            "id": "RiskAssessment.prediction.qualitativeRisk",
            "path": "RiskAssessment.prediction.qualitativeRisk",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RiskAssessmentProbability"
                }
              ],
              "strength": "example",
              "description": "The likelihood of the occurrence of a specified outcome.",
              "valueSet": "http://hl7.org/fhir/ValueSet/risk-probability"
            }
          },
          {
            "id": "RiskAssessment.prediction.relativeRisk",
            "path": "RiskAssessment.prediction.relativeRisk",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "RiskAssessment.prediction.when[x]",
            "path": "RiskAssessment.prediction.when[x]",
            "comment": "If not specified, the risk applies \"over the subject's lifespan\".",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              },
              {
                "code": "Range"
              }
            ]
          },
          {
            "id": "RiskAssessment.prediction.rationale",
            "path": "RiskAssessment.prediction.rationale",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "RiskAssessment.mitigation",
            "path": "RiskAssessment.mitigation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "RiskAssessment.note",
            "path": "RiskAssessment.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/RiskEvidenceSynthesis",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "RiskEvidenceSynthesis",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Evidence-Based Medicine"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "cds"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/RiskEvidenceSynthesis",
      "version": "4.0.1",
      "name": "RiskEvidenceSynthesis",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "RiskEvidenceSynthesis",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "RiskEvidenceSynthesis",
            "path": "RiskEvidenceSynthesis",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "rvs-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.id",
            "path": "RiskEvidenceSynthesis.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.meta",
            "path": "RiskEvidenceSynthesis.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.implicitRules",
            "path": "RiskEvidenceSynthesis.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.language",
            "path": "RiskEvidenceSynthesis.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.text",
            "path": "RiskEvidenceSynthesis.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.contained",
            "path": "RiskEvidenceSynthesis.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.extension",
            "path": "RiskEvidenceSynthesis.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.modifierExtension",
            "path": "RiskEvidenceSynthesis.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.url",
            "path": "RiskEvidenceSynthesis.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.identifier",
            "path": "RiskEvidenceSynthesis.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this risk evidence synthesis outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.version",
            "path": "RiskEvidenceSynthesis.version",
            "comment": "There may be different risk evidence synthesis instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the risk evidence synthesis with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.name",
            "path": "RiskEvidenceSynthesis.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.title",
            "path": "RiskEvidenceSynthesis.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.status",
            "path": "RiskEvidenceSynthesis.status",
            "comment": "Allows filtering of risk evidence synthesiss that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.date",
            "path": "RiskEvidenceSynthesis.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the risk evidence synthesis. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.publisher",
            "path": "RiskEvidenceSynthesis.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the risk evidence synthesis is the organization or individual primarily responsible for the maintenance and upkeep of the risk evidence synthesis. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the risk evidence synthesis. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.contact",
            "path": "RiskEvidenceSynthesis.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.description",
            "path": "RiskEvidenceSynthesis.description",
            "comment": "This description can be used to capture details such as why the risk evidence synthesis was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the risk evidence synthesis as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the risk evidence synthesis is presumed to be the predominant language in the place the risk evidence synthesis was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.note",
            "path": "RiskEvidenceSynthesis.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.useContext",
            "path": "RiskEvidenceSynthesis.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.jurisdiction",
            "path": "RiskEvidenceSynthesis.jurisdiction",
            "comment": "It may be possible for the risk evidence synthesis to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.copyright",
            "path": "RiskEvidenceSynthesis.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.approvalDate",
            "path": "RiskEvidenceSynthesis.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.approvalDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.lastReviewDate",
            "path": "RiskEvidenceSynthesis.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.lastReviewDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.effectivePeriod",
            "path": "RiskEvidenceSynthesis.effectivePeriod",
            "comment": "The effective period for a risk evidence synthesis  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.effectivePeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.topic",
            "path": "RiskEvidenceSynthesis.topic",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.topic",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.author",
            "path": "RiskEvidenceSynthesis.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.editor",
            "path": "RiskEvidenceSynthesis.editor",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.editor",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.reviewer",
            "path": "RiskEvidenceSynthesis.reviewer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.reviewer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.endorser",
            "path": "RiskEvidenceSynthesis.endorser",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.endorser",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.relatedArtifact",
            "path": "RiskEvidenceSynthesis.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.relatedArtifact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.synthesisType",
            "path": "RiskEvidenceSynthesis.synthesisType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.synthesisType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SynthesisType"
                }
              ],
              "strength": "extensible",
              "description": "Types of combining results from a body of evidence (eg. summary data meta-analysis).",
              "valueSet": "http://hl7.org/fhir/ValueSet/synthesis-type"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.studyType",
            "path": "RiskEvidenceSynthesis.studyType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.studyType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StudyType"
                }
              ],
              "strength": "extensible",
              "description": "Types of research studies (types of research methods).",
              "valueSet": "http://hl7.org/fhir/ValueSet/study-type"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.population",
            "path": "RiskEvidenceSynthesis.population",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.population",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.exposure",
            "path": "RiskEvidenceSynthesis.exposure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.exposure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.outcome",
            "path": "RiskEvidenceSynthesis.outcome",
            "min": 1,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.outcome",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize",
            "path": "RiskEvidenceSynthesis.sampleSize",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.sampleSize",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize.id",
            "path": "RiskEvidenceSynthesis.sampleSize.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize.extension",
            "path": "RiskEvidenceSynthesis.sampleSize.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize.modifierExtension",
            "path": "RiskEvidenceSynthesis.sampleSize.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize.description",
            "path": "RiskEvidenceSynthesis.sampleSize.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.sampleSize.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize.numberOfStudies",
            "path": "RiskEvidenceSynthesis.sampleSize.numberOfStudies",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.sampleSize.numberOfStudies",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize.numberOfParticipants",
            "path": "RiskEvidenceSynthesis.sampleSize.numberOfParticipants",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.sampleSize.numberOfParticipants",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate",
            "path": "RiskEvidenceSynthesis.riskEstimate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.id",
            "path": "RiskEvidenceSynthesis.riskEstimate.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.extension",
            "path": "RiskEvidenceSynthesis.riskEstimate.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.modifierExtension",
            "path": "RiskEvidenceSynthesis.riskEstimate.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.description",
            "path": "RiskEvidenceSynthesis.riskEstimate.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.type",
            "path": "RiskEvidenceSynthesis.riskEstimate.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RiskEstimateType"
                }
              ],
              "strength": "extensible",
              "description": "Whether the risk estimate is dichotomous, continuous or qualitative and the specific type of risk estimate (eg proportion or median).",
              "valueSet": "http://hl7.org/fhir/ValueSet/risk-estimate-type"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.value",
            "path": "RiskEvidenceSynthesis.riskEstimate.value",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.unitOfMeasure",
            "path": "RiskEvidenceSynthesis.riskEstimate.unitOfMeasure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.unitOfMeasure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "UCUMUnits"
                }
              ],
              "strength": "required",
              "description": "Unified Code for Units of Measure (UCUM).",
              "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units|4.0.1"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.denominatorCount",
            "path": "RiskEvidenceSynthesis.riskEstimate.denominatorCount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.denominatorCount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.numeratorCount",
            "path": "RiskEvidenceSynthesis.riskEstimate.numeratorCount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.numeratorCount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.id",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.extension",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.modifierExtension",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.type",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PrecisionEstimateType"
                }
              ],
              "strength": "extensible",
              "description": "Method of reporting variability of estimates, such as confidence intervals, interquartile range or standard deviation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/precision-estimate-type"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.level",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.level",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.level",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.from",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.from",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.from",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.to",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.to",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.to",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.certainty",
            "path": "RiskEvidenceSynthesis.certainty",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.certainty",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.id",
            "path": "RiskEvidenceSynthesis.certainty.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.extension",
            "path": "RiskEvidenceSynthesis.certainty.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.modifierExtension",
            "path": "RiskEvidenceSynthesis.certainty.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.rating",
            "path": "RiskEvidenceSynthesis.certainty.rating",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.certainty.rating",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QualityOfEvidenceRating"
                }
              ],
              "strength": "extensible",
              "description": "The quality of the evidence described. The code system used specifies the quality scale used to grade this evidence source while the code specifies the actual quality score (represented as a coded value) associated with the evidence.",
              "valueSet": "http://hl7.org/fhir/ValueSet/evidence-quality"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.note",
            "path": "RiskEvidenceSynthesis.certainty.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.certainty.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.id",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.extension",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.modifierExtension",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.type",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CertaintySubcomponentType"
                }
              ],
              "strength": "extensible",
              "description": "The subcomponent classification of quality of evidence rating systems.",
              "valueSet": "http://hl7.org/fhir/ValueSet/certainty-subcomponent-type"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.rating",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.rating",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.rating",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CertaintySubcomponentRating"
                }
              ],
              "strength": "extensible",
              "description": "The quality rating of the subcomponent of a quality of evidence rating.",
              "valueSet": "http://hl7.org/fhir/ValueSet/certainty-subcomponent-rating"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.note",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "RiskEvidenceSynthesis",
            "path": "RiskEvidenceSynthesis",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "rvs-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.url",
            "path": "RiskEvidenceSynthesis.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.identifier",
            "path": "RiskEvidenceSynthesis.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this risk evidence synthesis outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.version",
            "path": "RiskEvidenceSynthesis.version",
            "comment": "There may be different risk evidence synthesis instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the risk evidence synthesis with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.name",
            "path": "RiskEvidenceSynthesis.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.title",
            "path": "RiskEvidenceSynthesis.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.status",
            "path": "RiskEvidenceSynthesis.status",
            "comment": "Allows filtering of risk evidence synthesiss that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.date",
            "path": "RiskEvidenceSynthesis.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the risk evidence synthesis. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.publisher",
            "path": "RiskEvidenceSynthesis.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the risk evidence synthesis is the organization or individual primarily responsible for the maintenance and upkeep of the risk evidence synthesis. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the risk evidence synthesis. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.contact",
            "path": "RiskEvidenceSynthesis.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.description",
            "path": "RiskEvidenceSynthesis.description",
            "comment": "This description can be used to capture details such as why the risk evidence synthesis was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the risk evidence synthesis as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the risk evidence synthesis is presumed to be the predominant language in the place the risk evidence synthesis was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.note",
            "path": "RiskEvidenceSynthesis.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.useContext",
            "path": "RiskEvidenceSynthesis.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.jurisdiction",
            "path": "RiskEvidenceSynthesis.jurisdiction",
            "comment": "It may be possible for the risk evidence synthesis to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.copyright",
            "path": "RiskEvidenceSynthesis.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.approvalDate",
            "path": "RiskEvidenceSynthesis.approvalDate",
            "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.lastReviewDate",
            "path": "RiskEvidenceSynthesis.lastReviewDate",
            "comment": "If specified, this date follows the original approval date.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.effectivePeriod",
            "path": "RiskEvidenceSynthesis.effectivePeriod",
            "comment": "The effective period for a risk evidence synthesis  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.topic",
            "path": "RiskEvidenceSynthesis.topic",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "DefinitionTopic"
                }
              ],
              "strength": "example",
              "description": "High-level categorization of the definition, used for searching, sorting, and filtering.",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.author",
            "path": "RiskEvidenceSynthesis.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.editor",
            "path": "RiskEvidenceSynthesis.editor",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.reviewer",
            "path": "RiskEvidenceSynthesis.reviewer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.endorser",
            "path": "RiskEvidenceSynthesis.endorser",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.relatedArtifact",
            "path": "RiskEvidenceSynthesis.relatedArtifact",
            "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "RelatedArtifact"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.synthesisType",
            "path": "RiskEvidenceSynthesis.synthesisType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SynthesisType"
                }
              ],
              "strength": "extensible",
              "description": "Types of combining results from a body of evidence (eg. summary data meta-analysis).",
              "valueSet": "http://hl7.org/fhir/ValueSet/synthesis-type"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.studyType",
            "path": "RiskEvidenceSynthesis.studyType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StudyType"
                }
              ],
              "strength": "extensible",
              "description": "Types of research studies (types of research methods).",
              "valueSet": "http://hl7.org/fhir/ValueSet/study-type"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.population",
            "path": "RiskEvidenceSynthesis.population",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.exposure",
            "path": "RiskEvidenceSynthesis.exposure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.outcome",
            "path": "RiskEvidenceSynthesis.outcome",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/EvidenceVariable"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize",
            "path": "RiskEvidenceSynthesis.sampleSize",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize.description",
            "path": "RiskEvidenceSynthesis.sampleSize.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize.numberOfStudies",
            "path": "RiskEvidenceSynthesis.sampleSize.numberOfStudies",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.sampleSize.numberOfParticipants",
            "path": "RiskEvidenceSynthesis.sampleSize.numberOfParticipants",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate",
            "path": "RiskEvidenceSynthesis.riskEstimate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.description",
            "path": "RiskEvidenceSynthesis.riskEstimate.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.type",
            "path": "RiskEvidenceSynthesis.riskEstimate.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RiskEstimateType"
                }
              ],
              "strength": "extensible",
              "description": "Whether the risk estimate is dichotomous, continuous or qualitative and the specific type of risk estimate (eg proportion or median).",
              "valueSet": "http://hl7.org/fhir/ValueSet/risk-estimate-type"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.value",
            "path": "RiskEvidenceSynthesis.riskEstimate.value",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.unitOfMeasure",
            "path": "RiskEvidenceSynthesis.riskEstimate.unitOfMeasure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "UCUMUnits"
                }
              ],
              "strength": "required",
              "description": "Unified Code for Units of Measure (UCUM).",
              "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units|4.0.1"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.denominatorCount",
            "path": "RiskEvidenceSynthesis.riskEstimate.denominatorCount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.numeratorCount",
            "path": "RiskEvidenceSynthesis.riskEstimate.numeratorCount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.type",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PrecisionEstimateType"
                }
              ],
              "strength": "extensible",
              "description": "Method of reporting variability of estimates, such as confidence intervals, interquartile range or standard deviation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/precision-estimate-type"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.level",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.level",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.from",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.from",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.to",
            "path": "RiskEvidenceSynthesis.riskEstimate.precisionEstimate.to",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.certainty",
            "path": "RiskEvidenceSynthesis.certainty",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.rating",
            "path": "RiskEvidenceSynthesis.certainty.rating",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "QualityOfEvidenceRating"
                }
              ],
              "strength": "extensible",
              "description": "The quality of the evidence described. The code system used specifies the quality scale used to grade this evidence source while the code specifies the actual quality score (represented as a coded value) associated with the evidence.",
              "valueSet": "http://hl7.org/fhir/ValueSet/evidence-quality"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.note",
            "path": "RiskEvidenceSynthesis.certainty.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.type",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CertaintySubcomponentType"
                }
              ],
              "strength": "extensible",
              "description": "The subcomponent classification of quality of evidence rating systems.",
              "valueSet": "http://hl7.org/fhir/ValueSet/certainty-subcomponent-type"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.rating",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.rating",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CertaintySubcomponentRating"
                }
              ],
              "strength": "extensible",
              "description": "The quality rating of the subcomponent of a quality of evidence rating.",
              "valueSet": "http://hl7.org/fhir/ValueSet/certainty-subcomponent-rating"
            }
          },
          {
            "id": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.note",
            "path": "RiskEvidenceSynthesis.certainty.certaintySubcomponent.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Schedule",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Schedule",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Workflow"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Schedule",
      "version": "4.0.1",
      "name": "Schedule",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Schedule",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Schedule",
            "path": "Schedule",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Schedule",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Schedule.id",
            "path": "Schedule.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Schedule.meta",
            "path": "Schedule.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Schedule.implicitRules",
            "path": "Schedule.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Schedule.language",
            "path": "Schedule.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Schedule.text",
            "path": "Schedule.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Schedule.contained",
            "path": "Schedule.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Schedule.extension",
            "path": "Schedule.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Schedule.modifierExtension",
            "path": "Schedule.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Schedule.identifier",
            "path": "Schedule.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Schedule.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Schedule.active",
            "path": "Schedule.active",
            "comment": "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Schedule.active",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "Schedule.serviceCategory",
            "path": "Schedule.serviceCategory",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Schedule.serviceCategory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-category"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-category"
            }
          },
          {
            "id": "Schedule.serviceType",
            "path": "Schedule.serviceType",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Schedule.serviceType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-type"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
            }
          },
          {
            "id": "Schedule.specialty",
            "path": "Schedule.specialty",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Schedule.specialty",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "specialty"
                }
              ],
              "strength": "preferred",
              "description": "Additional details about where the content was created (e.g. clinical specialty).",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "Schedule.actor",
            "path": "Schedule.actor",
            "comment": "The capacity to support multiple referenced resource types should be used in cases where the specific resources themselves cannot be scheduled without the other, and thus only make sense to the system exposing them as a group. Common examples of this are where the combination of a practitioner and a room (Location) are always required by a system.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "Schedule.actor",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Schedule.planningHorizon",
            "path": "Schedule.planningHorizon",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Schedule.planningHorizon",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Schedule.comment",
            "path": "Schedule.comment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Schedule.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Schedule",
            "path": "Schedule",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Schedule.identifier",
            "path": "Schedule.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Schedule.active",
            "path": "Schedule.active",
            "comment": "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
            "isSummary": true
          },
          {
            "id": "Schedule.serviceCategory",
            "path": "Schedule.serviceCategory",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-category"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-category"
            }
          },
          {
            "id": "Schedule.serviceType",
            "path": "Schedule.serviceType",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-type"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
            }
          },
          {
            "id": "Schedule.specialty",
            "path": "Schedule.specialty",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "specialty"
                }
              ],
              "strength": "preferred",
              "description": "Additional details about where the content was created (e.g. clinical specialty).",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "Schedule.actor",
            "path": "Schedule.actor",
            "comment": "The capacity to support multiple referenced resource types should be used in cases where the specific resources themselves cannot be scheduled without the other, and thus only make sense to the system exposing them as a group. Common examples of this are where the combination of a practitioner and a room (Location) are always required by a system.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Schedule.planningHorizon",
            "path": "Schedule.planningHorizon",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Schedule.comment",
            "path": "Schedule.comment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SearchParameter",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SearchParameter",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Conformance"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/SearchParameter",
      "version": "4.0.1",
      "name": "SearchParameter",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "SearchParameter",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "SearchParameter",
            "path": "SearchParameter",
            "comment": "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": 0,
            "max": "*",
            "base": {
              "path": "SearchParameter",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "spd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "spd-1",
                "severity": "error",
                "human": "If an xpath is present, there SHALL be an xpathUsage",
                "expression": "xpath.empty() or xpathUsage.exists()",
                "xpath": "not(exists(f:xpath)) or exists(f:xpathUsage)"
              },
              {
                "key": "spd-2",
                "severity": "error",
                "human": "Search parameters can only have chain names when the search parameter type is 'reference'",
                "expression": "chain.empty() or type = 'reference'",
                "xpath": "not(exists(f:chain)) or (f:type/@value = 'reference')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.id",
            "path": "SearchParameter.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.meta",
            "path": "SearchParameter.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.implicitRules",
            "path": "SearchParameter.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "SearchParameter.language",
            "path": "SearchParameter.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "SearchParameter.text",
            "path": "SearchParameter.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.contained",
            "path": "SearchParameter.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.extension",
            "path": "SearchParameter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.modifierExtension",
            "path": "SearchParameter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "SearchParameter.url",
            "path": "SearchParameter.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SearchParameter.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.version",
            "path": "SearchParameter.version",
            "comment": "There may be different search parameter instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the search parameter with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SearchParameter.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.name",
            "path": "SearchParameter.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SearchParameter.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.derivedFrom",
            "path": "SearchParameter.derivedFrom",
            "comment": "The intent of this is that a server can designate that it provides support for a search parameter defined in the specification itself (e.g.  [`value-quantity`](http://hl7.org/fhir/SearchParameter/Observation-value-quantity), but detail how it is supported by the server.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SearchParameter.derivedFrom",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SearchParameter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.status",
            "path": "SearchParameter.status",
            "comment": "Allows filtering of search parameters that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SearchParameter.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "SearchParameter.experimental",
            "path": "SearchParameter.experimental",
            "comment": "Allows filtering of search parameters that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SearchParameter.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.date",
            "path": "SearchParameter.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the search parameter. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SearchParameter.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.publisher",
            "path": "SearchParameter.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the search parameter is the organization or individual primarily responsible for the maintenance and upkeep of the search parameter. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the search parameter. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SearchParameter.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.contact",
            "path": "SearchParameter.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SearchParameter.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.description",
            "path": "SearchParameter.description",
            "comment": "This description can be used to capture details such as why the search parameter was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the search parameter as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the search parameter is presumed to be the predominant language in the place the search parameter was created).",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SearchParameter.description",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.useContext",
            "path": "SearchParameter.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SearchParameter.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.jurisdiction",
            "path": "SearchParameter.jurisdiction",
            "comment": "It may be possible for the search parameter to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SearchParameter.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "SearchParameter.purpose",
            "path": "SearchParameter.purpose",
            "comment": "This element does not describe the usage of the search parameter. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this search parameter.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SearchParameter.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.code",
            "path": "SearchParameter.code",
            "comment": "For maximum compatibility, use only lowercase ASCII characters.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SearchParameter.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SearchParameter.base",
            "path": "SearchParameter.base",
            "comment": "A search parameter must always apply to at least one resource type. When search parameters apply to more than one resource type, they can be used against any of the listed resource types, or in a cross-type search (see [Cross Resource Search](http.html#xres-search)).",
            "min": 1,
            "max": "*",
            "base": {
              "path": "SearchParameter.base",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "SearchParameter.type",
            "path": "SearchParameter.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SearchParameter.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchParamType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "Data types allowed to be used for search parameters.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-param-type|4.0.1"
            }
          },
          {
            "id": "SearchParameter.expression",
            "path": "SearchParameter.expression",
            "comment": "Note that the elements returned by the expression 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. For composite search parameters, the outcome of the expression must a collection of base elements from which the composites are derived.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SearchParameter.expression",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "spd-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.xpath",
            "path": "SearchParameter.xpath",
            "comment": "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",
            "base": {
              "path": "SearchParameter.xpath",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "spd-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.xpathUsage",
            "path": "SearchParameter.xpathUsage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SearchParameter.xpathUsage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "spd-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "XPathUsageType"
                }
              ],
              "strength": "required",
              "description": "How a search parameter relates to the set of elements returned by evaluating its xpath query.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-xpath-usage|4.0.1"
            }
          },
          {
            "id": "SearchParameter.target",
            "path": "SearchParameter.target",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SearchParameter.target",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "SearchParameter.multipleOr",
            "path": "SearchParameter.multipleOr",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SearchParameter.multipleOr",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.multipleAnd",
            "path": "SearchParameter.multipleAnd",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SearchParameter.multipleAnd",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.comparator",
            "path": "SearchParameter.comparator",
            "comment": "If no comparators are listed, clients should not expect servers to support any comparators.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SearchParameter.comparator",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchComparator"
                }
              ],
              "strength": "required",
              "description": "What Search Comparator Codes are supported in search.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-comparator|4.0.1"
            }
          },
          {
            "id": "SearchParameter.modifier",
            "path": "SearchParameter.modifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SearchParameter.modifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchModifierCode"
                }
              ],
              "strength": "required",
              "description": "A supported modifier for a search parameter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-modifier-code|4.0.1"
            }
          },
          {
            "id": "SearchParameter.chain",
            "path": "SearchParameter.chain",
            "comment": "Systems are not required to list all the chain names they support, but if they don't list them, clients might not know to use them.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SearchParameter.chain",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.component",
            "path": "SearchParameter.component",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SearchParameter.component",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.component.id",
            "path": "SearchParameter.component.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.component.extension",
            "path": "SearchParameter.component.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.component.modifierExtension",
            "path": "SearchParameter.component.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SearchParameter.component.definition",
            "path": "SearchParameter.component.definition",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SearchParameter.component.definition",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SearchParameter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SearchParameter.component.expression",
            "path": "SearchParameter.component.expression",
            "comment": "This expression overrides the expression in the definition and extracts the index values from the outcome of the composite expression.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SearchParameter.component.expression",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "SearchParameter",
            "path": "SearchParameter",
            "comment": "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": 0,
            "max": "*",
            "constraint": [
              {
                "key": "spd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "spd-1",
                "severity": "error",
                "human": "If an xpath is present, there SHALL be an xpathUsage",
                "expression": "xpath.empty() or xpathUsage.exists()",
                "xpath": "not(exists(f:xpath)) or exists(f:xpathUsage)"
              },
              {
                "key": "spd-2",
                "severity": "error",
                "human": "Search parameters can only have chain names when the search parameter type is 'reference'",
                "expression": "chain.empty() or type = 'reference'",
                "xpath": "not(exists(f:chain)) or (f:type/@value = 'reference')"
              }
            ]
          },
          {
            "id": "SearchParameter.url",
            "path": "SearchParameter.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SearchParameter.version",
            "path": "SearchParameter.version",
            "comment": "There may be different search parameter instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the search parameter with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SearchParameter.name",
            "path": "SearchParameter.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "SearchParameter.derivedFrom",
            "path": "SearchParameter.derivedFrom",
            "comment": "The intent of this is that a server can designate that it provides support for a search parameter defined in the specification itself (e.g.  [`value-quantity`](http://hl7.org/fhir/SearchParameter/Observation-value-quantity), but detail how it is supported by the server.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SearchParameter"
                ]
              }
            ]
          },
          {
            "id": "SearchParameter.status",
            "path": "SearchParameter.status",
            "comment": "Allows filtering of search parameters that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "SearchParameter.experimental",
            "path": "SearchParameter.experimental",
            "comment": "Allows filtering of search parameters that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SearchParameter.date",
            "path": "SearchParameter.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the search parameter. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SearchParameter.publisher",
            "path": "SearchParameter.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the search parameter is the organization or individual primarily responsible for the maintenance and upkeep of the search parameter. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the search parameter. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SearchParameter.contact",
            "path": "SearchParameter.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SearchParameter.description",
            "path": "SearchParameter.description",
            "comment": "This description can be used to capture details such as why the search parameter was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the search parameter as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the search parameter is presumed to be the predominant language in the place the search parameter was created).",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SearchParameter.useContext",
            "path": "SearchParameter.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SearchParameter.jurisdiction",
            "path": "SearchParameter.jurisdiction",
            "comment": "It may be possible for the search parameter to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "SearchParameter.purpose",
            "path": "SearchParameter.purpose",
            "comment": "This element does not describe the usage of the search parameter. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this search parameter.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "SearchParameter.code",
            "path": "SearchParameter.code",
            "comment": "For maximum compatibility, use only lowercase ASCII characters.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SearchParameter.base",
            "path": "SearchParameter.base",
            "comment": "A search parameter must always apply to at least one resource type. When search parameters apply to more than one resource type, they can be used against any of the listed resource types, or in a cross-type search (see [Cross Resource Search](http.html#xres-search)).",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "SearchParameter.type",
            "path": "SearchParameter.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchParamType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "Data types allowed to be used for search parameters.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-param-type|4.0.1"
            }
          },
          {
            "id": "SearchParameter.expression",
            "path": "SearchParameter.expression",
            "comment": "Note that the elements returned by the expression 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. For composite search parameters, the outcome of the expression must a collection of base elements from which the composites are derived.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "spd-1"
            ]
          },
          {
            "id": "SearchParameter.xpath",
            "path": "SearchParameter.xpath",
            "comment": "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"
            ]
          },
          {
            "id": "SearchParameter.xpathUsage",
            "path": "SearchParameter.xpathUsage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "spd-1"
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "XPathUsageType"
                }
              ],
              "strength": "required",
              "description": "How a search parameter relates to the set of elements returned by evaluating its xpath query.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-xpath-usage|4.0.1"
            }
          },
          {
            "id": "SearchParameter.target",
            "path": "SearchParameter.target",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ResourceType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "One of the resource types defined as part of this version of FHIR.",
              "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
            }
          },
          {
            "id": "SearchParameter.multipleOr",
            "path": "SearchParameter.multipleOr",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "SearchParameter.multipleAnd",
            "path": "SearchParameter.multipleAnd",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "SearchParameter.comparator",
            "path": "SearchParameter.comparator",
            "comment": "If no comparators are listed, clients should not expect servers to support any comparators.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchComparator"
                }
              ],
              "strength": "required",
              "description": "What Search Comparator Codes are supported in search.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-comparator|4.0.1"
            }
          },
          {
            "id": "SearchParameter.modifier",
            "path": "SearchParameter.modifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SearchModifierCode"
                }
              ],
              "strength": "required",
              "description": "A supported modifier for a search parameter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/search-modifier-code|4.0.1"
            }
          },
          {
            "id": "SearchParameter.chain",
            "path": "SearchParameter.chain",
            "comment": "Systems are not required to list all the chain names they support, but if they don't list them, clients might not know to use them.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "SearchParameter.component",
            "path": "SearchParameter.component",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "SearchParameter.component.definition",
            "path": "SearchParameter.component.definition",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SearchParameter"
                ]
              }
            ]
          },
          {
            "id": "SearchParameter.component.expression",
            "path": "SearchParameter.component.expression",
            "comment": "This expression overrides the expression in the definition and extracts the index values from the outcome of the composite expression.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ServiceRequest",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Care Provision"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
      "version": "4.0.1",
      "name": "ServiceRequest",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ServiceRequest",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ServiceRequest",
            "path": "ServiceRequest",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "prr-1",
                "severity": "error",
                "human": "orderDetail SHALL only be present if code is present",
                "expression": "orderDetail.empty() or code.exists()",
                "xpath": "exists(f:code) or not(exists(f:orderDetail))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ServiceRequest.id",
            "path": "ServiceRequest.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.meta",
            "path": "ServiceRequest.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.implicitRules",
            "path": "ServiceRequest.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ServiceRequest.language",
            "path": "ServiceRequest.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ServiceRequest.text",
            "path": "ServiceRequest.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ServiceRequest.contained",
            "path": "ServiceRequest.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ServiceRequest.extension",
            "path": "ServiceRequest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ServiceRequest.modifierExtension",
            "path": "ServiceRequest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ServiceRequest.identifier",
            "path": "ServiceRequest.identifier",
            "comment": "The identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2).  For further discussion and examples see the resource notes section below.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.instantiatesCanonical",
            "path": "ServiceRequest.instantiatesCanonical",
            "comment": "Note: This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.instantiatesCanonical",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.instantiatesUri",
            "path": "ServiceRequest.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.instantiatesUri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.basedOn",
            "path": "ServiceRequest.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.replaces",
            "path": "ServiceRequest.replaces",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.replaces",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.requisition",
            "path": "ServiceRequest.requisition",
            "comment": "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.requisition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.status",
            "path": "ServiceRequest.status",
            "comment": "The status is generally fully in the control of the requester - they determine whether the order is draft or active and, after it has been activated, competed, cancelled or suspended. States relating to the activities of the performer are reflected on either the corresponding event (see [Event Pattern](event.html) for general discussion) or using the [Task](task.html) resource.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ServiceRequest.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestStatus"
                }
              ],
              "strength": "required",
              "description": "The status of a service order.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "ServiceRequest.intent",
            "path": "ServiceRequest.intent",
            "comment": "This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ServiceRequest.intent",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestIntent"
                }
              ],
              "strength": "required",
              "description": "The kind of service request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
            }
          },
          {
            "id": "ServiceRequest.category",
            "path": "ServiceRequest.category",
            "comment": "There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource.  The level of granularity is defined by the category concepts in the value set.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestCategory"
                }
              ],
              "strength": "example",
              "description": "Classification of the requested service.",
              "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-category"
            }
          },
          {
            "id": "ServiceRequest.priority",
            "path": "ServiceRequest.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this task should be performed with normal priority",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "ServiceRequest.doNotPerform",
            "path": "ServiceRequest.doNotPerform",
            "comment": "In general, only the code and timeframe will be present, though occasional additional qualifiers such as body site or even performer could be included to narrow the scope of the prohibition.  If the ServiceRequest.code and ServiceRequest.doNotPerform both contain negation, that will reinforce prohibition and should not have a double negative interpretation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.doNotPerform",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If missing, the request is a positive request e.g. \"do perform\"",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "If true this element negates the specified action. For Example,  instead of a request for a procedure, it is a request for the procedure to not occur.",
            "isSummary": true
          },
          {
            "id": "ServiceRequest.code",
            "path": "ServiceRequest.code",
            "comment": "Many laboratory and radiology procedure codes embed the specimen/organ system in the test order name, for example,  serum or serum/plasma glucose, or a chest x-ray. The specimen might not be recorded separately from the test code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestCode"
                }
              ],
              "strength": "example",
              "description": "Codes for tests or services that can be carried out by a designated individual, organization or healthcare service.  For laboratory, LOINC is  (preferred)[http://build.fhir.org/terminologies.html#preferred] and a valueset using LOINC Order codes is available [here](valueset-diagnostic-requests.html).",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code"
            }
          },
          {
            "id": "ServiceRequest.orderDetail",
            "path": "ServiceRequest.orderDetail",
            "comment": "For information from the medical record intended to support the delivery of the requested services, use the `supportingInformation` element.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.orderDetail",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "prr-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OrderDetail"
                }
              ],
              "strength": "example",
              "description": "Codified order entry details which are based on order context.",
              "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-orderdetail"
            }
          },
          {
            "id": "ServiceRequest.quantity[x]",
            "path": "ServiceRequest.quantity[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.quantity[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.subject",
            "path": "ServiceRequest.subject",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ServiceRequest.subject",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.encounter",
            "path": "ServiceRequest.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.occurrence[x]",
            "path": "ServiceRequest.occurrence[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.occurrence[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.asNeeded[x]",
            "path": "ServiceRequest.asNeeded[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.asNeeded[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureAsNeededReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying the pre-condition that should hold prior to performing a procedure.  For example \"pain\", \"on flare-up\", etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason"
            }
          },
          {
            "id": "ServiceRequest.authoredOn",
            "path": "ServiceRequest.authoredOn",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.authoredOn",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.requester",
            "path": "ServiceRequest.requester",
            "comment": "This not the dispatcher, but rather who is the authorizer.  This element is not intended to handle delegation which would generally be managed through the Provenance resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.requester",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.performerType",
            "path": "ServiceRequest.performerType",
            "comment": "This is a  role, not  a participation type.  In other words, does not describe the task but describes the capacity.  For example, “compounding pharmacy”, “psychiatrist” or “internal referral”.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.performerType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestParticipantRole"
                }
              ],
              "strength": "example",
              "description": "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participant-role"
            }
          },
          {
            "id": "ServiceRequest.performer",
            "path": "ServiceRequest.performer",
            "comment": "If multiple performers are present, it is interpreted as a list of *alternative* performers without any preference regardless of order.  If order of preference is needed use the [request-performerOrder extension](extension-request-performerorder.html).  Use CareTeam to represent a group of performers (for example, Practitioner A *and* Practitioner B).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.performer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.locationCode",
            "path": "ServiceRequest.locationCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.locationCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestLocation"
                }
              ],
              "strength": "example",
              "description": "A location type where services are delivered.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType"
            }
          },
          {
            "id": "ServiceRequest.locationReference",
            "path": "ServiceRequest.locationReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.locationReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.reasonCode",
            "path": "ServiceRequest.reasonCode",
            "comment": "This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all.   Use `CodeableConcept.text` element if the data is free (uncoded) text as shown in the [CT Scan example](servicerequest-example-di.html).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestReason"
                }
              ],
              "strength": "example",
              "description": "Diagnosis or problem codes justifying the reason for requesting the service investigation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason"
            }
          },
          {
            "id": "ServiceRequest.reasonReference",
            "path": "ServiceRequest.reasonReference",
            "comment": "This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all.    To be as specific as possible,  a reference to  *Observation* or *Condition* should be used if available.  Otherwise when referencing  *DiagnosticReport*  it should contain a finding  in `DiagnosticReport.conclusion` and/or `DiagnosticReport.conclusionCode`.   When using a reference to *DocumentReference*, the target document should contain clear findings language providing the relevant reason for this service request.  Use  the CodeableConcept text element in `ServiceRequest.reasonCode` if the data is free (uncoded) text as shown in the [CT Scan example](servicerequest-example-di.html).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.insurance",
            "path": "ServiceRequest.insurance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.insurance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage",
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ServiceRequest.supportingInfo",
            "path": "ServiceRequest.supportingInfo",
            "comment": "To represent information about how the services are to be delivered use the `instructions` element.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.supportingInfo",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ServiceRequest.specimen",
            "path": "ServiceRequest.specimen",
            "comment": "Many diagnostic procedures need a specimen, but the request itself is not actually about the specimen. This element is for when the diagnostic is requested on already existing specimens and the request points to the specimen it applies to.    Conversely, if the request is entered first with an unknown specimen, then the [Specimen](specimen.html) resource points to the ServiceRequest.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.specimen",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.bodySite",
            "path": "ServiceRequest.bodySite",
            "comment": "Only used if not implicit in the code found in ServiceRequest.code.  If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately)  then use the standard extension [procedure-targetBodyStructure](extension-procedure-targetbodystructure.html).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.bodySite",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "ServiceRequest.note",
            "path": "ServiceRequest.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ServiceRequest.patientInstruction",
            "path": "ServiceRequest.patientInstruction",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ServiceRequest.patientInstruction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ServiceRequest.relevantHistory",
            "path": "ServiceRequest.relevantHistory",
            "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ServiceRequest.relevantHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ServiceRequest",
            "path": "ServiceRequest",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "prr-1",
                "severity": "error",
                "human": "orderDetail SHALL only be present if code is present",
                "expression": "orderDetail.empty() or code.exists()",
                "xpath": "exists(f:code) or not(exists(f:orderDetail))"
              }
            ]
          },
          {
            "id": "ServiceRequest.identifier",
            "path": "ServiceRequest.identifier",
            "comment": "The identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2).  For further discussion and examples see the resource notes section below.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.instantiatesCanonical",
            "path": "ServiceRequest.instantiatesCanonical",
            "comment": "Note: This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
                  "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.instantiatesUri",
            "path": "ServiceRequest.instantiatesUri",
            "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.basedOn",
            "path": "ServiceRequest.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CarePlan",
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
                  "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.replaces",
            "path": "ServiceRequest.replaces",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.requisition",
            "path": "ServiceRequest.requisition",
            "comment": "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.status",
            "path": "ServiceRequest.status",
            "comment": "The status is generally fully in the control of the requester - they determine whether the order is draft or active and, after it has been activated, competed, cancelled or suspended. States relating to the activities of the performer are reflected on either the corresponding event (see [Event Pattern](event.html) for general discussion) or using the [Task](task.html) resource.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestStatus"
                }
              ],
              "strength": "required",
              "description": "The status of a service order.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
            }
          },
          {
            "id": "ServiceRequest.intent",
            "path": "ServiceRequest.intent",
            "comment": "This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestIntent"
                }
              ],
              "strength": "required",
              "description": "The kind of service request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1"
            }
          },
          {
            "id": "ServiceRequest.category",
            "path": "ServiceRequest.category",
            "comment": "There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource.  The level of granularity is defined by the category concepts in the value set.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestCategory"
                }
              ],
              "strength": "example",
              "description": "Classification of the requested service.",
              "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-category"
            }
          },
          {
            "id": "ServiceRequest.priority",
            "path": "ServiceRequest.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this task should be performed with normal priority",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "ServiceRequest.doNotPerform",
            "path": "ServiceRequest.doNotPerform",
            "comment": "In general, only the code and timeframe will be present, though occasional additional qualifiers such as body site or even performer could be included to narrow the scope of the prohibition.  If the ServiceRequest.code and ServiceRequest.doNotPerform both contain negation, that will reinforce prohibition and should not have a double negative interpretation.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If missing, the request is a positive request e.g. \"do perform\"",
            "isModifier": true,
            "isModifierReason": "If true this element negates the specified action. For Example,  instead of a request for a procedure, it is a request for the procedure to not occur.",
            "isSummary": true
          },
          {
            "id": "ServiceRequest.code",
            "path": "ServiceRequest.code",
            "comment": "Many laboratory and radiology procedure codes embed the specimen/organ system in the test order name, for example,  serum or serum/plasma glucose, or a chest x-ray. The specimen might not be recorded separately from the test code.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestCode"
                }
              ],
              "strength": "example",
              "description": "Codes for tests or services that can be carried out by a designated individual, organization or healthcare service.  For laboratory, LOINC is  (preferred)[http://build.fhir.org/terminologies.html#preferred] and a valueset using LOINC Order codes is available [here](valueset-diagnostic-requests.html).",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code"
            }
          },
          {
            "id": "ServiceRequest.orderDetail",
            "path": "ServiceRequest.orderDetail",
            "comment": "For information from the medical record intended to support the delivery of the requested services, use the `supportingInformation` element.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "condition": [
              "prr-1"
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "OrderDetail"
                }
              ],
              "strength": "example",
              "description": "Codified order entry details which are based on order context.",
              "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-orderdetail"
            }
          },
          {
            "id": "ServiceRequest.quantity[x]",
            "path": "ServiceRequest.quantity[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "Range"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.subject",
            "path": "ServiceRequest.subject",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.encounter",
            "path": "ServiceRequest.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.occurrence[x]",
            "path": "ServiceRequest.occurrence[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.asNeeded[x]",
            "path": "ServiceRequest.asNeeded[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ProcedureAsNeededReason"
                }
              ],
              "strength": "example",
              "description": "A coded concept identifying the pre-condition that should hold prior to performing a procedure.  For example \"pain\", \"on flare-up\", etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason"
            }
          },
          {
            "id": "ServiceRequest.authoredOn",
            "path": "ServiceRequest.authoredOn",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.requester",
            "path": "ServiceRequest.requester",
            "comment": "This not the dispatcher, but rather who is the authorizer.  This element is not intended to handle delegation which would generally be managed through the Provenance resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.performerType",
            "path": "ServiceRequest.performerType",
            "comment": "This is a  role, not  a participation type.  In other words, does not describe the task but describes the capacity.  For example, “compounding pharmacy”, “psychiatrist” or “internal referral”.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestParticipantRole"
                }
              ],
              "strength": "example",
              "description": "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
              "valueSet": "http://hl7.org/fhir/ValueSet/participant-role"
            }
          },
          {
            "id": "ServiceRequest.performer",
            "path": "ServiceRequest.performer",
            "comment": "If multiple performers are present, it is interpreted as a list of *alternative* performers without any preference regardless of order.  If order of preference is needed use the [request-performerOrder extension](extension-request-performerorder.html).  Use CareTeam to represent a group of performers (for example, Practitioner A *and* Practitioner B).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.locationCode",
            "path": "ServiceRequest.locationCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestLocation"
                }
              ],
              "strength": "example",
              "description": "A location type where services are delivered.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType"
            }
          },
          {
            "id": "ServiceRequest.locationReference",
            "path": "ServiceRequest.locationReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.reasonCode",
            "path": "ServiceRequest.reasonCode",
            "comment": "This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all.   Use `CodeableConcept.text` element if the data is free (uncoded) text as shown in the [CT Scan example](servicerequest-example-di.html).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ServiceRequestReason"
                }
              ],
              "strength": "example",
              "description": "Diagnosis or problem codes justifying the reason for requesting the service investigation.",
              "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason"
            }
          },
          {
            "id": "ServiceRequest.reasonReference",
            "path": "ServiceRequest.reasonReference",
            "comment": "This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all.    To be as specific as possible,  a reference to  *Observation* or *Condition* should be used if available.  Otherwise when referencing  *DiagnosticReport*  it should contain a finding  in `DiagnosticReport.conclusion` and/or `DiagnosticReport.conclusionCode`.   When using a reference to *DocumentReference*, the target document should contain clear findings language providing the relevant reason for this service request.  Use  the CodeableConcept text element in `ServiceRequest.reasonCode` if the data is free (uncoded) text as shown in the [CT Scan example](servicerequest-example-di.html).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.insurance",
            "path": "ServiceRequest.insurance",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage",
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ]
          },
          {
            "id": "ServiceRequest.supportingInfo",
            "path": "ServiceRequest.supportingInfo",
            "comment": "To represent information about how the services are to be delivered use the `instructions` element.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "ServiceRequest.specimen",
            "path": "ServiceRequest.specimen",
            "comment": "Many diagnostic procedures need a specimen, but the request itself is not actually about the specimen. This element is for when the diagnostic is requested on already existing specimens and the request points to the specimen it applies to.    Conversely, if the request is entered first with an unknown specimen, then the [Specimen](specimen.html) resource points to the ServiceRequest.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.bodySite",
            "path": "ServiceRequest.bodySite",
            "comment": "Only used if not implicit in the code found in ServiceRequest.code.  If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately)  then use the standard extension [procedure-targetBodyStructure](extension-procedure-targetbodystructure.html).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "ServiceRequest.note",
            "path": "ServiceRequest.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "ServiceRequest.patientInstruction",
            "path": "ServiceRequest.patientInstruction",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ServiceRequest.relevantHistory",
            "path": "ServiceRequest.relevantHistory",
            "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Slot",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Slot",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Workflow"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Slot",
      "version": "4.0.1",
      "name": "Slot",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Slot",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Slot",
            "path": "Slot",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Slot",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Slot.id",
            "path": "Slot.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Slot.meta",
            "path": "Slot.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Slot.implicitRules",
            "path": "Slot.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Slot.language",
            "path": "Slot.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Slot.text",
            "path": "Slot.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Slot.contained",
            "path": "Slot.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Slot.extension",
            "path": "Slot.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Slot.modifierExtension",
            "path": "Slot.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Slot.identifier",
            "path": "Slot.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Slot.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Slot.serviceCategory",
            "path": "Slot.serviceCategory",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Slot.serviceCategory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-category"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-category"
            }
          },
          {
            "id": "Slot.serviceType",
            "path": "Slot.serviceType",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Slot.serviceType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-type"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
            }
          },
          {
            "id": "Slot.specialty",
            "path": "Slot.specialty",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Slot.specialty",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "specialty"
                }
              ],
              "strength": "preferred",
              "description": "Additional details about where the content was created (e.g. clinical specialty).",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "Slot.appointmentType",
            "path": "Slot.appointmentType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Slot.appointmentType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "appointment-type"
                }
              ],
              "strength": "preferred",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0276"
            }
          },
          {
            "id": "Slot.schedule",
            "path": "Slot.schedule",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Slot.schedule",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Schedule"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Slot.status",
            "path": "Slot.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Slot.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SlotStatus"
                }
              ],
              "strength": "required",
              "description": "The free/busy status of the slot.",
              "valueSet": "http://hl7.org/fhir/ValueSet/slotstatus|4.0.1"
            }
          },
          {
            "id": "Slot.start",
            "path": "Slot.start",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Slot.start",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Slot.end",
            "path": "Slot.end",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Slot.end",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Slot.overbooked",
            "path": "Slot.overbooked",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Slot.overbooked",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If overbooked is missing, systems may assume that there are still appointments available",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Slot.comment",
            "path": "Slot.comment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Slot.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Slot",
            "path": "Slot",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Slot.identifier",
            "path": "Slot.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Slot.serviceCategory",
            "path": "Slot.serviceCategory",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-category"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-category"
            }
          },
          {
            "id": "Slot.serviceType",
            "path": "Slot.serviceType",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "service-type"
                }
              ],
              "strength": "example",
              "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
            }
          },
          {
            "id": "Slot.specialty",
            "path": "Slot.specialty",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "specialty"
                }
              ],
              "strength": "preferred",
              "description": "Additional details about where the content was created (e.g. clinical specialty).",
              "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
            }
          },
          {
            "id": "Slot.appointmentType",
            "path": "Slot.appointmentType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "appointment-type"
                }
              ],
              "strength": "preferred",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0276"
            }
          },
          {
            "id": "Slot.schedule",
            "path": "Slot.schedule",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Schedule"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Slot.status",
            "path": "Slot.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SlotStatus"
                }
              ],
              "strength": "required",
              "description": "The free/busy status of the slot.",
              "valueSet": "http://hl7.org/fhir/ValueSet/slotstatus|4.0.1"
            }
          },
          {
            "id": "Slot.start",
            "path": "Slot.start",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Slot.end",
            "path": "Slot.end",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Slot.overbooked",
            "path": "Slot.overbooked",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If overbooked is missing, systems may assume that there are still appointments available"
          },
          {
            "id": "Slot.comment",
            "path": "Slot.comment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Specimen",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Specimen",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Diagnostics"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Specimen",
      "version": "4.0.1",
      "name": "Specimen",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Specimen",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Specimen",
            "path": "Specimen",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Specimen",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.id",
            "path": "Specimen.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Specimen.meta",
            "path": "Specimen.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Specimen.implicitRules",
            "path": "Specimen.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Specimen.language",
            "path": "Specimen.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Specimen.text",
            "path": "Specimen.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.contained",
            "path": "Specimen.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.extension",
            "path": "Specimen.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.modifierExtension",
            "path": "Specimen.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Specimen.identifier",
            "path": "Specimen.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Specimen.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Specimen.accessionIdentifier",
            "path": "Specimen.accessionIdentifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.accessionIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Specimen.status",
            "path": "Specimen.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenStatus"
                }
              ],
              "strength": "required",
              "description": "Codes providing the status/availability of a specimen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-status|4.0.1"
            }
          },
          {
            "id": "Specimen.type",
            "path": "Specimen.type",
            "comment": "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",
            "base": {
              "path": "Specimen.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenType"
                }
              ],
              "strength": "example",
              "description": "The type of the specimen.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0487"
            }
          },
          {
            "id": "Specimen.subject",
            "path": "Specimen.subject",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.subject",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Specimen.receivedTime",
            "path": "Specimen.receivedTime",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.receivedTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Specimen.parent",
            "path": "Specimen.parent",
            "comment": "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": "*",
            "base": {
              "path": "Specimen.parent",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.request",
            "path": "Specimen.request",
            "comment": "The request may be explicit or implied such with a ServiceRequest that requires a blood draw.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Specimen.request",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.collection",
            "path": "Specimen.collection",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.collection",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.collection.id",
            "path": "Specimen.collection.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.collection.extension",
            "path": "Specimen.collection.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.collection.modifierExtension",
            "path": "Specimen.collection.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Specimen.collection.collector",
            "path": "Specimen.collection.collector",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.collection.collector",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Specimen.collection.collected[x]",
            "path": "Specimen.collection.collected[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.collection.collected[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Specimen.collection.duration",
            "path": "Specimen.collection.duration",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.collection.duration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Specimen.collection.quantity",
            "path": "Specimen.collection.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.collection.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.collection.method",
            "path": "Specimen.collection.method",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.collection.method",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenCollectionMethod"
                }
              ],
              "strength": "example",
              "description": "The  technique that is used to perform the procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-collection-method"
            }
          },
          {
            "id": "Specimen.collection.bodySite",
            "path": "Specimen.collection.bodySite",
            "comment": "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 [bodySite](extension-bodysite.html).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.collection.bodySite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "Specimen.collection.fastingStatus[x]",
            "path": "Specimen.collection.fastingStatus[x]",
            "comment": "Representing fasting status using this element is preferred to representing it with an observation using a 'pre-coordinated code'  such as  LOINC 2005-7 (Calcium [Moles/​time] in 2 hour Urine --12 hours fasting), or  using  a component observation ` such as `Observation.component code`  = LOINC 49541-6 (Fasting status - Reported).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.collection.fastingStatus[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FastingStatus"
                }
              ],
              "strength": "extensible",
              "description": "Codes describing the fasting status of the patient.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0916"
            }
          },
          {
            "id": "Specimen.processing",
            "path": "Specimen.processing",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Specimen.processing",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.processing.id",
            "path": "Specimen.processing.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.processing.extension",
            "path": "Specimen.processing.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.processing.modifierExtension",
            "path": "Specimen.processing.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Specimen.processing.description",
            "path": "Specimen.processing.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.processing.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.processing.procedure",
            "path": "Specimen.processing.procedure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.processing.procedure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenProcessingProcedure"
                }
              ],
              "strength": "example",
              "description": "Type indicating the technique used to process the specimen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-processing-procedure"
            }
          },
          {
            "id": "Specimen.processing.additive",
            "path": "Specimen.processing.additive",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Specimen.processing.additive",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.processing.time[x]",
            "path": "Specimen.processing.time[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.processing.time[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.container",
            "path": "Specimen.container",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Specimen.container",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.container.id",
            "path": "Specimen.container.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.container.extension",
            "path": "Specimen.container.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.container.modifierExtension",
            "path": "Specimen.container.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Specimen.container.identifier",
            "path": "Specimen.container.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Specimen.container.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Specimen.container.description",
            "path": "Specimen.container.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.container.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.container.type",
            "path": "Specimen.container.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.container.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenContainerType"
                }
              ],
              "strength": "example",
              "description": "Type of specimen container.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-container-type"
            }
          },
          {
            "id": "Specimen.container.capacity",
            "path": "Specimen.container.capacity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.container.capacity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.container.specimenQuantity",
            "path": "Specimen.container.specimenQuantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.container.specimenQuantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Specimen.container.additive[x]",
            "path": "Specimen.container.additive[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Specimen.container.additive[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenContainerAdditive"
                }
              ],
              "strength": "example",
              "description": "Substance added to specimen container.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0371"
            }
          },
          {
            "id": "Specimen.condition",
            "path": "Specimen.condition",
            "comment": "Specimen condition is an observation made about the specimen.  It's a point-in-time assessment.  It can be used to assess its quality or appropriateness for a specific test.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Specimen.condition",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenCondition"
                }
              ],
              "strength": "extensible",
              "description": "Codes describing the state of the specimen.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0493"
            }
          },
          {
            "id": "Specimen.note",
            "path": "Specimen.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Specimen.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Specimen",
            "path": "Specimen",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Specimen.identifier",
            "path": "Specimen.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Specimen.accessionIdentifier",
            "path": "Specimen.accessionIdentifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Specimen.status",
            "path": "Specimen.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenStatus"
                }
              ],
              "strength": "required",
              "description": "Codes providing the status/availability of a specimen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-status|4.0.1"
            }
          },
          {
            "id": "Specimen.type",
            "path": "Specimen.type",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenType"
                }
              ],
              "strength": "example",
              "description": "The type of the specimen.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0487"
            }
          },
          {
            "id": "Specimen.subject",
            "path": "Specimen.subject",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Specimen.receivedTime",
            "path": "Specimen.receivedTime",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Specimen.parent",
            "path": "Specimen.parent",
            "comment": "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",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Specimen"
                ]
              }
            ]
          },
          {
            "id": "Specimen.request",
            "path": "Specimen.request",
            "comment": "The request may be explicit or implied such with a ServiceRequest that requires a blood draw.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
                ]
              }
            ]
          },
          {
            "id": "Specimen.collection",
            "path": "Specimen.collection",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Specimen.collection.collector",
            "path": "Specimen.collection.collector",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Specimen.collection.collected[x]",
            "path": "Specimen.collection.collected[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Specimen.collection.duration",
            "path": "Specimen.collection.duration",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Specimen.collection.quantity",
            "path": "Specimen.collection.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "Specimen.collection.method",
            "path": "Specimen.collection.method",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenCollectionMethod"
                }
              ],
              "strength": "example",
              "description": "The  technique that is used to perform the procedure.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-collection-method"
            }
          },
          {
            "id": "Specimen.collection.bodySite",
            "path": "Specimen.collection.bodySite",
            "comment": "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 [bodySite](extension-bodysite.html).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "BodySite"
                }
              ],
              "strength": "example",
              "description": "Codes describing anatomical locations. May include laterality.",
              "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
            }
          },
          {
            "id": "Specimen.collection.fastingStatus[x]",
            "path": "Specimen.collection.fastingStatus[x]",
            "comment": "Representing fasting status using this element is preferred to representing it with an observation using a 'pre-coordinated code'  such as  LOINC 2005-7 (Calcium [Moles/​time] in 2 hour Urine --12 hours fasting), or  using  a component observation ` such as `Observation.component code`  = LOINC 49541-6 (Fasting status - Reported).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Duration"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FastingStatus"
                }
              ],
              "strength": "extensible",
              "description": "Codes describing the fasting status of the patient.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0916"
            }
          },
          {
            "id": "Specimen.processing",
            "path": "Specimen.processing",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Specimen.processing.description",
            "path": "Specimen.processing.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Specimen.processing.procedure",
            "path": "Specimen.processing.procedure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenProcessingProcedure"
                }
              ],
              "strength": "example",
              "description": "Type indicating the technique used to process the specimen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-processing-procedure"
            }
          },
          {
            "id": "Specimen.processing.additive",
            "path": "Specimen.processing.additive",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ]
          },
          {
            "id": "Specimen.processing.time[x]",
            "path": "Specimen.processing.time[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Specimen.container",
            "path": "Specimen.container",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Specimen.container.identifier",
            "path": "Specimen.container.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Specimen.container.description",
            "path": "Specimen.container.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "Specimen.container.type",
            "path": "Specimen.container.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenContainerType"
                }
              ],
              "strength": "example",
              "description": "Type of specimen container.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-container-type"
            }
          },
          {
            "id": "Specimen.container.capacity",
            "path": "Specimen.container.capacity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "Specimen.container.specimenQuantity",
            "path": "Specimen.container.specimenQuantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "Specimen.container.additive[x]",
            "path": "Specimen.container.additive[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenContainerAdditive"
                }
              ],
              "strength": "example",
              "description": "Substance added to specimen container.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0371"
            }
          },
          {
            "id": "Specimen.condition",
            "path": "Specimen.condition",
            "comment": "Specimen condition is an observation made about the specimen.  It's a point-in-time assessment.  It can be used to assess its quality or appropriateness for a specific test.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenCondition"
                }
              ],
              "strength": "extensible",
              "description": "Codes describing the state of the specimen.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0493"
            }
          },
          {
            "id": "Specimen.note",
            "path": "Specimen.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SpecimenDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SpecimenDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Definitional Artifacts"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/SpecimenDefinition",
      "version": "4.0.1",
      "name": "SpecimenDefinition",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "SpecimenDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "SpecimenDefinition",
            "path": "SpecimenDefinition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SpecimenDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.id",
            "path": "SpecimenDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.meta",
            "path": "SpecimenDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.implicitRules",
            "path": "SpecimenDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.language",
            "path": "SpecimenDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "SpecimenDefinition.text",
            "path": "SpecimenDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.contained",
            "path": "SpecimenDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.extension",
            "path": "SpecimenDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.modifierExtension",
            "path": "SpecimenDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.identifier",
            "path": "SpecimenDefinition.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.typeCollected",
            "path": "SpecimenDefinition.typeCollected",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeCollected",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CollectedSpecimenType"
                }
              ],
              "strength": "example",
              "description": "The type of the specimen to be collected.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0487"
            }
          },
          {
            "id": "SpecimenDefinition.patientPreparation",
            "path": "SpecimenDefinition.patientPreparation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SpecimenDefinition.patientPreparation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PreparePatient"
                }
              ],
              "strength": "example",
              "description": "Checks on the patient prior specimen collection.",
              "valueSet": "http://hl7.org/fhir/ValueSet/prepare-patient-prior-specimen-collection"
            }
          },
          {
            "id": "SpecimenDefinition.timeAspect",
            "path": "SpecimenDefinition.timeAspect",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.timeAspect",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueString": "24 hour, 20' post charge"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.collection",
            "path": "SpecimenDefinition.collection",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SpecimenDefinition.collection",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenCollection"
                }
              ],
              "strength": "example",
              "description": "The action to collect a type of specimen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-collection"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested",
            "path": "SpecimenDefinition.typeTested",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SpecimenDefinition.typeTested",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.id",
            "path": "SpecimenDefinition.typeTested.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.extension",
            "path": "SpecimenDefinition.typeTested.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.modifierExtension",
            "path": "SpecimenDefinition.typeTested.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.typeTested.isDerived",
            "path": "SpecimenDefinition.typeTested.isDerived",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.isDerived",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueBoolean": false
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.type",
            "path": "SpecimenDefinition.typeTested.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IntendedSpecimenType"
                }
              ],
              "strength": "example",
              "description": "The type of specimen conditioned in a container for lab testing.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0487"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.preference",
            "path": "SpecimenDefinition.typeTested.preference",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.preference",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "preferred, alternate"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenContainedPreference"
                }
              ],
              "strength": "required",
              "description": "Degree of preference of a type of conditioned specimen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-contained-preference|4.0.1"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.container",
            "path": "SpecimenDefinition.typeTested.container",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.container",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.container.id",
            "path": "SpecimenDefinition.typeTested.container.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.container.extension",
            "path": "SpecimenDefinition.typeTested.container.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.container.modifierExtension",
            "path": "SpecimenDefinition.typeTested.container.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.typeTested.container.material",
            "path": "SpecimenDefinition.typeTested.container.material",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.container.material",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContainerMaterial"
                }
              ],
              "strength": "example",
              "description": "Types of material for specimen containers.",
              "valueSet": "http://hl7.org/fhir/ValueSet/container-material"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.container.type",
            "path": "SpecimenDefinition.typeTested.container.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.container.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContainerType"
                }
              ],
              "strength": "example",
              "description": "Type of specimen container.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-container-type"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.container.cap",
            "path": "SpecimenDefinition.typeTested.container.cap",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.container.cap",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContainerCap"
                }
              ],
              "strength": "example",
              "description": "Color of the container cap.",
              "valueSet": "http://hl7.org/fhir/ValueSet/container-cap"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.container.description",
            "path": "SpecimenDefinition.typeTested.container.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.container.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueString": "Blue top tube with citrate"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.container.capacity",
            "path": "SpecimenDefinition.typeTested.container.capacity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.container.capacity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.container.minimumVolume[x]",
            "path": "SpecimenDefinition.typeTested.container.minimumVolume[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.container.minimumVolume[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.container.additive",
            "path": "SpecimenDefinition.typeTested.container.additive",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SpecimenDefinition.typeTested.container.additive",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.container.additive.id",
            "path": "SpecimenDefinition.typeTested.container.additive.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.container.additive.extension",
            "path": "SpecimenDefinition.typeTested.container.additive.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.container.additive.modifierExtension",
            "path": "SpecimenDefinition.typeTested.container.additive.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.typeTested.container.additive.additive[x]",
            "path": "SpecimenDefinition.typeTested.container.additive.additive[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.container.additive.additive[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContainerAdditive"
                }
              ],
              "strength": "example",
              "description": "Substance added to specimen container.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0371"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.container.preparation",
            "path": "SpecimenDefinition.typeTested.container.preparation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.container.preparation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.requirement",
            "path": "SpecimenDefinition.typeTested.requirement",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.requirement",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.retentionTime",
            "path": "SpecimenDefinition.typeTested.retentionTime",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.retentionTime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.rejectionCriterion",
            "path": "SpecimenDefinition.typeTested.rejectionCriterion",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SpecimenDefinition.typeTested.rejectionCriterion",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RejectionCriterion"
                }
              ],
              "strength": "example",
              "description": "Criterion for rejection of the specimen by laboratory.",
              "valueSet": "http://hl7.org/fhir/ValueSet/rejection-criteria"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.handling",
            "path": "SpecimenDefinition.typeTested.handling",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SpecimenDefinition.typeTested.handling",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.id",
            "path": "SpecimenDefinition.typeTested.handling.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.extension",
            "path": "SpecimenDefinition.typeTested.handling.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.modifierExtension",
            "path": "SpecimenDefinition.typeTested.handling.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.temperatureQualifier",
            "path": "SpecimenDefinition.typeTested.handling.temperatureQualifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.handling.temperatureQualifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "HandlingConditionSet"
                }
              ],
              "strength": "example",
              "description": "Set of handling instructions prior testing of the specimen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/handling-condition"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.temperatureRange",
            "path": "SpecimenDefinition.typeTested.handling.temperatureRange",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.handling.temperatureRange",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Range"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.maxDuration",
            "path": "SpecimenDefinition.typeTested.handling.maxDuration",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.handling.maxDuration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Duration"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.instruction",
            "path": "SpecimenDefinition.typeTested.handling.instruction",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SpecimenDefinition.typeTested.handling.instruction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueString": "freeze within 4 hours"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "SpecimenDefinition",
            "path": "SpecimenDefinition",
            "min": 0,
            "max": "*"
          },
          {
            "id": "SpecimenDefinition.identifier",
            "path": "SpecimenDefinition.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.typeCollected",
            "path": "SpecimenDefinition.typeCollected",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CollectedSpecimenType"
                }
              ],
              "strength": "example",
              "description": "The type of the specimen to be collected.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0487"
            }
          },
          {
            "id": "SpecimenDefinition.patientPreparation",
            "path": "SpecimenDefinition.patientPreparation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PreparePatient"
                }
              ],
              "strength": "example",
              "description": "Checks on the patient prior specimen collection.",
              "valueSet": "http://hl7.org/fhir/ValueSet/prepare-patient-prior-specimen-collection"
            }
          },
          {
            "id": "SpecimenDefinition.timeAspect",
            "path": "SpecimenDefinition.timeAspect",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueString": "24 hour, 20' post charge"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SpecimenDefinition.collection",
            "path": "SpecimenDefinition.collection",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenCollection"
                }
              ],
              "strength": "example",
              "description": "The action to collect a type of specimen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-collection"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested",
            "path": "SpecimenDefinition.typeTested",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.isDerived",
            "path": "SpecimenDefinition.typeTested.isDerived",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueBoolean": false
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.type",
            "path": "SpecimenDefinition.typeTested.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "IntendedSpecimenType"
                }
              ],
              "strength": "example",
              "description": "The type of specimen conditioned in a container for lab testing.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0487"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.preference",
            "path": "SpecimenDefinition.typeTested.preference",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "preferred, alternate"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SpecimenContainedPreference"
                }
              ],
              "strength": "required",
              "description": "Degree of preference of a type of conditioned specimen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-contained-preference|4.0.1"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.container",
            "path": "SpecimenDefinition.typeTested.container",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.container.material",
            "path": "SpecimenDefinition.typeTested.container.material",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContainerMaterial"
                }
              ],
              "strength": "example",
              "description": "Types of material for specimen containers.",
              "valueSet": "http://hl7.org/fhir/ValueSet/container-material"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.container.type",
            "path": "SpecimenDefinition.typeTested.container.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContainerType"
                }
              ],
              "strength": "example",
              "description": "Type of specimen container.",
              "valueSet": "http://hl7.org/fhir/ValueSet/specimen-container-type"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.container.cap",
            "path": "SpecimenDefinition.typeTested.container.cap",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContainerCap"
                }
              ],
              "strength": "example",
              "description": "Color of the container cap.",
              "valueSet": "http://hl7.org/fhir/ValueSet/container-cap"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.container.description",
            "path": "SpecimenDefinition.typeTested.container.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueString": "Blue top tube with citrate"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.container.capacity",
            "path": "SpecimenDefinition.typeTested.container.capacity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.container.minimumVolume[x]",
            "path": "SpecimenDefinition.typeTested.container.minimumVolume[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              },
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.container.additive",
            "path": "SpecimenDefinition.typeTested.container.additive",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.container.additive.additive[x]",
            "path": "SpecimenDefinition.typeTested.container.additive.additive[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ContainerAdditive"
                }
              ],
              "strength": "example",
              "description": "Substance added to specimen container.",
              "valueSet": "http://terminology.hl7.org/ValueSet/v2-0371"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.container.preparation",
            "path": "SpecimenDefinition.typeTested.container.preparation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.requirement",
            "path": "SpecimenDefinition.typeTested.requirement",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.retentionTime",
            "path": "SpecimenDefinition.typeTested.retentionTime",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.rejectionCriterion",
            "path": "SpecimenDefinition.typeTested.rejectionCriterion",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RejectionCriterion"
                }
              ],
              "strength": "example",
              "description": "Criterion for rejection of the specimen by laboratory.",
              "valueSet": "http://hl7.org/fhir/ValueSet/rejection-criteria"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.handling",
            "path": "SpecimenDefinition.typeTested.handling",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.temperatureQualifier",
            "path": "SpecimenDefinition.typeTested.handling.temperatureQualifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "HandlingConditionSet"
                }
              ],
              "strength": "example",
              "description": "Set of handling instructions prior testing of the specimen.",
              "valueSet": "http://hl7.org/fhir/ValueSet/handling-condition"
            }
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.temperatureRange",
            "path": "SpecimenDefinition.typeTested.handling.temperatureRange",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Range"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.maxDuration",
            "path": "SpecimenDefinition.typeTested.handling.maxDuration",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Duration"
              }
            ]
          },
          {
            "id": "SpecimenDefinition.typeTested.handling.instruction",
            "path": "SpecimenDefinition.typeTested.handling.instruction",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueString": "freeze within 4 hours"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/StructureDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "StructureDefinition",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Conformance"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/StructureDefinition",
      "version": "4.0.1",
      "name": "StructureDefinition",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "StructureDefinition",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "StructureDefinition",
            "path": "StructureDefinition",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureDefinition",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "sdf-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "sdf-1",
                "severity": "error",
                "human": "Element paths must be unique unless the structure is a constraint",
                "expression": "derivation = 'constraint' or snapshot.element.select(path).isDistinct()",
                "xpath": "(f:derivation/@value = 'constraint') or (count(f:snapshot/f:element) = count(distinct-values(f:snapshot/f:element/f:path/@value)))"
              },
              {
                "key": "sdf-15a",
                "requirements": "No Type on the root element (differential)",
                "severity": "error",
                "human": "If the first element in a differential has no \".\" in the path and it's not a logical model, it has no type",
                "expression": "(kind!='logical'  and differential.element.first().path.contains('.').not()) implies differential.element.first().type.empty()",
                "xpath": "f:kind/@value='logical' or not(f:differential/f:element[1][not(contains(f:path/@value, '.'))]/f:type)"
              },
              {
                "key": "sdf-4",
                "requirements": "Ensure that the base types are abstract",
                "severity": "error",
                "human": "If the structure is not abstract, then there SHALL be a baseDefinition",
                "expression": "abstract = true or baseDefinition.exists()",
                "xpath": "(f:abstract/@value=true()) or exists(f:baseDefinition)"
              },
              {
                "key": "sdf-5",
                "severity": "error",
                "human": "If the structure defines an extension then the structure must have context information",
                "expression": "type != 'Extension' or derivation = 'specialization' or (context.exists())",
                "xpath": "not(f:type/@value = 'extension') or (f:derivation/@value = 'specialization') or (exists(f:context))"
              },
              {
                "key": "sdf-6",
                "severity": "error",
                "human": "A structure must have either a differential, or a snapshot (or both)",
                "expression": "snapshot.exists() or differential.exists()",
                "xpath": "exists(f:snapshot) or exists(f:differential)"
              },
              {
                "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 an element without a \".\" in the path (e.g. the first element)",
                "expression": "children().element.where(path.contains('.').not()).label.empty() and children().element.where(path.contains('.').not()).code.empty() and children().element.where(path.contains('.').not()).requirements.empty()",
                "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)]))"
              },
              {
                "key": "sdf-11",
                "requirements": "Ensure that the type is not inconsistent with the other information in the structure",
                "severity": "error",
                "human": "If there's a type, its content must match the path name in the first element of a snapshot",
                "expression": "kind != 'logical' implies snapshot.empty() or snapshot.element.first().path = type",
                "xpath": "(f:kind/@value = 'logical') or not(exists(f:snapshot)) or (f:type/@value = f:snapshot/f:element[1]/f:path/@value)"
              },
              {
                "key": "sdf-14",
                "requirements": "elements have id",
                "severity": "error",
                "human": "All element definitions must have an id",
                "expression": "snapshot.element.all(id.exists()) and differential.element.all(id.exists())",
                "xpath": "count(*/f:element)=count(*/f:element/@id)"
              },
              {
                "key": "sdf-15",
                "requirements": "No Type on the root element (snapshot)",
                "severity": "error",
                "human": "The first element in a snapshot has no type unless model is a logical model.",
                "expression": "kind!='logical' implies snapshot.element.first().type.empty()",
                "xpath": "f:kind/@value='logical' or not(f:snapshot/f:element[1]/f:type)"
              },
              {
                "key": "sdf-16",
                "requirements": "element ids need to be unique",
                "severity": "error",
                "human": "All element definitions must have unique ids (snapshot)",
                "expression": "snapshot.element.all(id.exists()) and snapshot.element.id.trace('ids').isDistinct()",
                "xpath": "count(f:snapshot/f:element)=count(f:snapshot/f:element/@id) and (count(f:snapshot/f:element)=count(distinct-values(f:snapshot/f:element/@id)))"
              },
              {
                "key": "sdf-17",
                "requirements": "element ids need to be unique",
                "severity": "error",
                "human": "All element definitions must have unique ids (diff)",
                "expression": "differential.element.all(id.exists()) and differential.element.id.trace('ids').isDistinct()",
                "xpath": "count(f:differential/f:element)=count(f:differential/f:element/@id) and (count(f:differential/f:element)=count(distinct-values(f:differential/f:element/@id)))"
              },
              {
                "key": "sdf-18",
                "requirements": "contextInvariant",
                "severity": "error",
                "human": "Context Invariants can only be used for extensions",
                "expression": "contextInvariant.exists() implies type = 'Extension'",
                "xpath": "not(exists(f:contextInvariant)) or (f:type/@value = 'Extension')"
              },
              {
                "key": "sdf-19",
                "requirements": "custom types only in logical models",
                "severity": "error",
                "human": "FHIR Specification models only use FHIR defined types",
                "expression": "url.startsWith('http://hl7.org/fhir/StructureDefinition') implies (differential.element.type.code.all(matches('^[a-zA-Z0-9]+$') or matches('^http:\\\\/\\\\/hl7\\\\.org\\\\/fhirpath\\\\/System\\\\.[A-Z][A-Za-z]+$')) and snapshot.element.type.code.all(matches('^[a-zA-Z0-9\\\\.]+$') or matches('^http:\\\\/\\\\/hl7\\\\.org\\\\/fhirpath\\\\/System\\\\.[A-Z][A-Za-z]+$')))",
                "xpath": "not(starts-with(f:url/@value, 'http://hl7.org/fhir/StructureDefinition')) or count(f:differential/f:element/f:type/f:code[@value and not(matches(string(@value), '^[a-zA-Z0-9\\.]+$'))]|f:snapshot/f:element/f:type/f:code[@value and not(matches(string(@value), '^[a-zA-Z0-9]+$\\.'))]) =0"
              },
              {
                "key": "sdf-21",
                "requirements": "no default values on data types or resources",
                "severity": "error",
                "human": "Default values can only be specified on specializations",
                "expression": "differential.element.defaultValue.exists() implies (derivation = 'specialization')",
                "xpath": "not(exists(f:differential/f:element/*[starts-with(local-name(), 'defaultValue')])) or (f:derivation/@value = 'specialization')"
              },
              {
                "key": "sdf-22",
                "requirements": "no default values on data types or resources",
                "severity": "error",
                "human": "FHIR Specification models never have default values",
                "expression": "url.startsWith('http://hl7.org/fhir/StructureDefinition') implies (snapshot.element.defaultValue.empty() and differential.element.defaultValue.empty())",
                "xpath": "not(starts-with(f:url/@value, 'http://hl7.org/fhir/StructureDefinition')) or (not(exists(f:snapshot/f:element/*[starts-with(local-name(), 'defaultValue')])) and not(exists(f:differential/f:element/*[starts-with(local-name(), 'defaultValue')])))"
              },
              {
                "key": "sdf-23",
                "requirements": "no sliceName on root",
                "severity": "error",
                "human": "No slice name on root",
                "expression": "(snapshot | differential).element.all(path.contains('.').not() implies sliceName.empty())",
                "xpath": "count(*[self::snapshot or self::differential]/f:element[not(contains(f:path/@value, '.')) and f:sliceName])=0"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.id",
            "path": "StructureDefinition.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.meta",
            "path": "StructureDefinition.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.implicitRules",
            "path": "StructureDefinition.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "StructureDefinition.language",
            "path": "StructureDefinition.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "StructureDefinition.text",
            "path": "StructureDefinition.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.contained",
            "path": "StructureDefinition.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.extension",
            "path": "StructureDefinition.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.modifierExtension",
            "path": "StructureDefinition.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "StructureDefinition.url",
            "path": "StructureDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureDefinition.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.identifier",
            "path": "StructureDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this structure definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureDefinition.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.version",
            "path": "StructureDefinition.version",
            "comment": "There may be different structure definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the structure definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.name",
            "path": "StructureDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.Some Examples: \n\n* O2SatObservation\n* PresentationReport\n* Immunization2\n* AcmeAdmissionRecordOld.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureDefinition.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.title",
            "path": "StructureDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.Applications don't have to use this name but can always fall back to it. The title also corresponds to the label for the root element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.status",
            "path": "StructureDefinition.status",
            "comment": "Allows filtering of structure definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureDefinition.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "StructureDefinition.experimental",
            "path": "StructureDefinition.experimental",
            "comment": "Allows filtering of structure definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.date",
            "path": "StructureDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the structure definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.publisher",
            "path": "StructureDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the structure definition is the organization or individual primarily responsible for the maintenance and upkeep of the structure definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the structure definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.contact",
            "path": "StructureDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureDefinition.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.description",
            "path": "StructureDefinition.description",
            "comment": "This description can be used to capture details such as why the structure definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the structure definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the structure definition is presumed to be the predominant language in the place the structure definition was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.useContext",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "StructureDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureDefinition.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.jurisdiction",
            "path": "StructureDefinition.jurisdiction",
            "comment": "It may be possible for the structure definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureDefinition.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "StructureDefinition.purpose",
            "path": "StructureDefinition.purpose",
            "comment": "This element does not describe the usage of the structure definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this structure definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.copyright",
            "path": "StructureDefinition.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.keyword",
            "path": "StructureDefinition.keyword",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureDefinition.keyword",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureDefinitionKeyword"
                }
              ],
              "strength": "extensible",
              "description": "Codes for the meaning of the defined structure (SNOMED CT and LOINC codes, as an example).",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-use"
            }
          },
          {
            "id": "StructureDefinition.fhirVersion",
            "path": "StructureDefinition.fhirVersion",
            "comment": "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",
            "base": {
              "path": "StructureDefinition.fhirVersion",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRVersion"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "All published FHIR Versions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/FHIR-version|4.0.1"
            }
          },
          {
            "id": "StructureDefinition.mapping",
            "path": "StructureDefinition.mapping",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureDefinition.mapping",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "sdf-2",
                "severity": "error",
                "human": "Must have at least a name or a uri (or both)",
                "expression": "name.exists() or uri.exists()",
                "xpath": "exists(f:uri) or exists(f:name)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.mapping.id",
            "path": "StructureDefinition.mapping.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.mapping.extension",
            "path": "StructureDefinition.mapping.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.mapping.modifierExtension",
            "path": "StructureDefinition.mapping.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureDefinition.mapping.identity",
            "path": "StructureDefinition.mapping.identity",
            "comment": "The specification is described once, with general comments, and then specific mappings are made that reference this declaration.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureDefinition.mapping.identity",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.mapping.uri",
            "path": "StructureDefinition.mapping.uri",
            "comment": "A formal identity for the specification being mapped to helps with identifying maps consistently.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.mapping.uri",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "sdf-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.mapping.name",
            "path": "StructureDefinition.mapping.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.mapping.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "sdf-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.mapping.comment",
            "path": "StructureDefinition.mapping.comment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.mapping.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.kind",
            "path": "StructureDefinition.kind",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureDefinition.kind",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureDefinitionKind"
                }
              ],
              "strength": "required",
              "description": "Defines the type of structure that a definition is describing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/structure-definition-kind|4.0.1"
            }
          },
          {
            "id": "StructureDefinition.abstract",
            "path": "StructureDefinition.abstract",
            "comment": "Abstract Resources cannot be instantiated - a concrete sub-type must be used. Abstract datatypes and extensions cannot be used in an instance. For logical models, the exact implication of \"abstract\" will rest with the author, depending how the logical model is used. 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 StructureDefinition, but have children described, are anonymous concrete types that specialize Element.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureDefinition.abstract",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.context",
            "path": "StructureDefinition.context",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureDefinition.context",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "sdf-5"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.context.id",
            "path": "StructureDefinition.context.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.context.extension",
            "path": "StructureDefinition.context.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.context.modifierExtension",
            "path": "StructureDefinition.context.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureDefinition.context.type",
            "path": "StructureDefinition.context.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureDefinition.context.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ExtensionContextType"
                }
              ],
              "strength": "required",
              "description": "How an extension context is interpreted.",
              "valueSet": "http://hl7.org/fhir/ValueSet/extension-context-type|4.0.1"
            }
          },
          {
            "id": "StructureDefinition.context.expression",
            "path": "StructureDefinition.context.expression",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureDefinition.context.expression",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.contextInvariant",
            "path": "StructureDefinition.contextInvariant",
            "comment": "The rules are only evaluated when the extension is present. When evaluating the invariant, the FHIRPath focus is the element that holds the extension, and %extension refers to the extension itself.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureDefinition.contextInvariant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "sdf-18"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.type",
            "path": "StructureDefinition.type",
            "comment": "Note that in the case of constraints, the type could be determined by chasing through the baseDefinition references until a concrete structure (derivation = specialization) is reached, or by looking at the path of the first element in the snapshot - if present - but providing the type directly makes for simpler tooling and indexing. \n\nThe type must match the elements defined in the differential and the snapshot. For all FHIR defined types, the path name of the element will start with the type name. For logical models, where the type is a URL, the type name SHOULD start with the tail of the type URL where required.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureDefinition.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "sdf-11"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRDefinedTypeExt"
                }
              ],
              "strength": "extensible",
              "description": "Either a resource or a data type, including logical model types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/defined-types"
            }
          },
          {
            "id": "StructureDefinition.baseDefinition",
            "path": "StructureDefinition.baseDefinition",
            "comment": "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",
            "base": {
              "path": "StructureDefinition.baseDefinition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "condition": [
              "sdf-4"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureDefinition.derivation",
            "path": "StructureDefinition.derivation",
            "comment": "If the definition is a specialization, then it adds new elements in the differential, and the snapshot includes the inherited elements.  If the definition is a constraint, then it cannot define new elements, it can only make new rules about existing content (see [Profiling Resources](profiling.html#resources)).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.derivation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TypeDerivationRule"
                }
              ],
              "strength": "required",
              "description": "How a type relates to its baseDefinition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/type-derivation-rule|4.0.1"
            }
          },
          {
            "id": "StructureDefinition.snapshot",
            "path": "StructureDefinition.snapshot",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.snapshot",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "sdf-6"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "sdf-3",
                "severity": "error",
                "human": "Each element definition in a snapshot must have a formal definition and cardinalities",
                "expression": "element.all(definition.exists() and min.exists() and max.exists())",
                "xpath": "count(f:element) = count(f:element[exists(f:definition) and exists(f:min) and exists(f:max)])"
              },
              {
                "key": "sdf-8",
                "severity": "error",
                "human": "All snapshot elements must start with the StructureDefinition's specified type for non-logical models, or with the same type name for logical models",
                "expression": "(%resource.kind = 'logical' or element.first().path = %resource.type) and element.tail().all(path.startsWith(%resource.snapshot.element.first().path&'.'))",
                "xpath": "f:element[1]/f:path/@value=parent::f:StructureDefinition/f:type/@value and count(f:element[position()!=1])=count(f:element[position()!=1][starts-with(f:path/@value, concat(ancestor::f:StructureDefinition/f:type/@value, '.'))])"
              },
              {
                "key": "sdf-8b",
                "severity": "error",
                "human": "All snapshot elements must have a base definition",
                "expression": "element.all(base.exists())",
                "xpath": "count(f:element) = count(f:element/f:base)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.snapshot.id",
            "path": "StructureDefinition.snapshot.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.snapshot.extension",
            "path": "StructureDefinition.snapshot.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.snapshot.modifierExtension",
            "path": "StructureDefinition.snapshot.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureDefinition.snapshot.element",
            "path": "StructureDefinition.snapshot.element",
            "min": 1,
            "max": "*",
            "base": {
              "path": "StructureDefinition.snapshot.element",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "ElementDefinition"
              }
            ],
            "condition": [
              "sdf-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "sdf-10",
                "requirements": "binding is required",
                "severity": "error",
                "human": "provide either a binding reference or a description (or both)",
                "expression": "binding.empty() or binding.valueSet.exists() or binding.description.exists()",
                "xpath": "not(exists(f:binding)) or exists(f:binding/f:valueSet) or exists(f:binding/f:description)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.differential",
            "path": "StructureDefinition.differential",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureDefinition.differential",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "sdf-6"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "sdf-20",
                "requirements": "no slicing on root",
                "severity": "error",
                "human": "No slicing on the root element",
                "expression": "element.where(path.contains('.').not()).slicing.empty()",
                "xpath": "not(f:element[1]/f:slicing)"
              },
              {
                "key": "sdf-8a",
                "severity": "error",
                "human": "In any differential, all the elements must start with the StructureDefinition's specified type for non-logical models, or with the same type name for logical models",
                "expression": "(%resource.kind = 'logical' or element.first().path.startsWith(%resource.type)) and (element.tail().empty() or element.tail().all(path.startsWith(%resource.differential.element.first().path.replaceMatches('\\\\..*','')&'.')))",
                "xpath": "count(f:element)=count(f:element[f:path/@value=ancestor::f:StructureDefinition/f:type/@value or starts-with(f:path/@value, concat(ancestor::f:StructureDefinition/f:type/@value, '.'))])"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.differential.id",
            "path": "StructureDefinition.differential.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.differential.extension",
            "path": "StructureDefinition.differential.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureDefinition.differential.modifierExtension",
            "path": "StructureDefinition.differential.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureDefinition.differential.element",
            "path": "StructureDefinition.differential.element",
            "min": 1,
            "max": "*",
            "base": {
              "path": "StructureDefinition.differential.element",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "ElementDefinition"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "StructureDefinition",
            "path": "StructureDefinition",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "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 an element without a \".\" in the path (e.g. the first element)",
                "expression": "children().element.where(path.contains('.').not()).label.empty() and children().element.where(path.contains('.').not()).code.empty() and children().element.where(path.contains('.').not()).requirements.empty()",
                "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)]))"
              },
              {
                "key": "sdf-15a",
                "requirements": "No Type on the root element (differential)",
                "severity": "error",
                "human": "If the first element in a differential has no \".\" in the path and it's not a logical model, it has no type",
                "expression": "(kind!='logical'  and differential.element.first().path.contains('.').not()) implies differential.element.first().type.empty()",
                "xpath": "f:kind/@value='logical' or not(f:differential/f:element[1][not(contains(f:path/@value, '.'))]/f:type)"
              },
              {
                "key": "sdf-19",
                "requirements": "custom types only in logical models",
                "severity": "error",
                "human": "FHIR Specification models only use FHIR defined types",
                "expression": "url.startsWith('http://hl7.org/fhir/StructureDefinition') implies (differential.element.type.code.all(matches('^[a-zA-Z0-9]+$') or matches('^http:\\\\/\\\\/hl7\\\\.org\\\\/fhirpath\\\\/System\\\\.[A-Z][A-Za-z]+$')) and snapshot.element.type.code.all(matches('^[a-zA-Z0-9\\\\.]+$') or matches('^http:\\\\/\\\\/hl7\\\\.org\\\\/fhirpath\\\\/System\\\\.[A-Z][A-Za-z]+$')))",
                "xpath": "not(starts-with(f:url/@value, 'http://hl7.org/fhir/StructureDefinition')) or count(f:differential/f:element/f:type/f:code[@value and not(matches(string(@value), '^[a-zA-Z0-9\\.]+$'))]|f:snapshot/f:element/f:type/f:code[@value and not(matches(string(@value), '^[a-zA-Z0-9]+$\\.'))]) =0"
              },
              {
                "key": "sdf-16",
                "requirements": "element ids need to be unique",
                "severity": "error",
                "human": "All element definitions must have unique ids (snapshot)",
                "expression": "snapshot.element.all(id.exists()) and snapshot.element.id.trace('ids').isDistinct()",
                "xpath": "count(f:snapshot/f:element)=count(f:snapshot/f:element/@id) and (count(f:snapshot/f:element)=count(distinct-values(f:snapshot/f:element/@id)))"
              },
              {
                "key": "sdf-15",
                "requirements": "No Type on the root element (snapshot)",
                "severity": "error",
                "human": "The first element in a snapshot has no type unless model is a logical model.",
                "expression": "kind!='logical' implies snapshot.element.first().type.empty()",
                "xpath": "f:kind/@value='logical' or not(f:snapshot/f:element[1]/f:type)"
              },
              {
                "key": "sdf-18",
                "requirements": "contextInvariant",
                "severity": "error",
                "human": "Context Invariants can only be used for extensions",
                "expression": "contextInvariant.exists() implies type = 'Extension'",
                "xpath": "not(exists(f:contextInvariant)) or (f:type/@value = 'Extension')"
              },
              {
                "key": "sdf-17",
                "requirements": "element ids need to be unique",
                "severity": "error",
                "human": "All element definitions must have unique ids (diff)",
                "expression": "differential.element.all(id.exists()) and differential.element.id.trace('ids').isDistinct()",
                "xpath": "count(f:differential/f:element)=count(f:differential/f:element/@id) and (count(f:differential/f:element)=count(distinct-values(f:differential/f:element/@id)))"
              },
              {
                "key": "sdf-23",
                "requirements": "no sliceName on root",
                "severity": "error",
                "human": "No slice name on root",
                "expression": "(snapshot | differential).element.all(path.contains('.').not() implies sliceName.empty())",
                "xpath": "count(*[self::snapshot or self::differential]/f:element[not(contains(f:path/@value, '.')) and f:sliceName])=0"
              },
              {
                "key": "sdf-11",
                "requirements": "Ensure that the type is not inconsistent with the other information in the structure",
                "severity": "error",
                "human": "If there's a type, its content must match the path name in the first element of a snapshot",
                "expression": "kind != 'logical' implies snapshot.empty() or snapshot.element.first().path = type",
                "xpath": "(f:kind/@value = 'logical') or not(exists(f:snapshot)) or (f:type/@value = f:snapshot/f:element[1]/f:path/@value)"
              },
              {
                "key": "sdf-22",
                "requirements": "no default values on data types or resources",
                "severity": "error",
                "human": "FHIR Specification models never have default values",
                "expression": "url.startsWith('http://hl7.org/fhir/StructureDefinition') implies (snapshot.element.defaultValue.empty() and differential.element.defaultValue.empty())",
                "xpath": "not(starts-with(f:url/@value, 'http://hl7.org/fhir/StructureDefinition')) or (not(exists(f:snapshot/f:element/*[starts-with(local-name(), 'defaultValue')])) and not(exists(f:differential/f:element/*[starts-with(local-name(), 'defaultValue')])))"
              },
              {
                "key": "sdf-14",
                "requirements": "elements have id",
                "severity": "error",
                "human": "All element definitions must have an id",
                "expression": "snapshot.element.all(id.exists()) and differential.element.all(id.exists())",
                "xpath": "count(*/f:element)=count(*/f:element/@id)"
              },
              {
                "key": "sdf-1",
                "severity": "error",
                "human": "Element paths must be unique unless the structure is a constraint",
                "expression": "derivation = 'constraint' or snapshot.element.select(path).isDistinct()",
                "xpath": "(f:derivation/@value = 'constraint') or (count(f:snapshot/f:element) = count(distinct-values(f:snapshot/f:element/f:path/@value)))"
              },
              {
                "key": "sdf-21",
                "requirements": "no default values on data types or resources",
                "severity": "error",
                "human": "Default values can only be specified on specializations",
                "expression": "differential.element.defaultValue.exists() implies (derivation = 'specialization')",
                "xpath": "not(exists(f:differential/f:element/*[starts-with(local-name(), 'defaultValue')])) or (f:derivation/@value = 'specialization')"
              },
              {
                "key": "sdf-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "sdf-6",
                "severity": "error",
                "human": "A structure must have either a differential, or a snapshot (or both)",
                "expression": "snapshot.exists() or differential.exists()",
                "xpath": "exists(f:snapshot) or exists(f:differential)"
              },
              {
                "key": "sdf-5",
                "severity": "error",
                "human": "If the structure defines an extension then the structure must have context information",
                "expression": "type != 'Extension' or derivation = 'specialization' or (context.exists())",
                "xpath": "not(f:type/@value = 'extension') or (f:derivation/@value = 'specialization') or (exists(f:context))"
              },
              {
                "key": "sdf-4",
                "requirements": "Ensure that the base types are abstract",
                "severity": "error",
                "human": "If the structure is not abstract, then there SHALL be a baseDefinition",
                "expression": "abstract = true or baseDefinition.exists()",
                "xpath": "(f:abstract/@value=true()) or exists(f:baseDefinition)"
              }
            ]
          },
          {
            "id": "StructureDefinition.url",
            "path": "StructureDefinition.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.identifier",
            "path": "StructureDefinition.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this structure definition outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.version",
            "path": "StructureDefinition.version",
            "comment": "There may be different structure definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the structure definition with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.name",
            "path": "StructureDefinition.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.Some Examples: \n\n* O2SatObservation\n* PresentationReport\n* Immunization2\n* AcmeAdmissionRecordOld.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.title",
            "path": "StructureDefinition.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.Applications don't have to use this name but can always fall back to it. The title also corresponds to the label for the root element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.status",
            "path": "StructureDefinition.status",
            "comment": "Allows filtering of structure definitions that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "StructureDefinition.experimental",
            "path": "StructureDefinition.experimental",
            "comment": "Allows filtering of structure definitions that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.date",
            "path": "StructureDefinition.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the structure definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.publisher",
            "path": "StructureDefinition.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the structure definition is the organization or individual primarily responsible for the maintenance and upkeep of the structure definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the structure definition. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.contact",
            "path": "StructureDefinition.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.description",
            "path": "StructureDefinition.description",
            "comment": "This description can be used to capture details such as why the structure definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the structure definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the structure definition is presumed to be the predominant language in the place the structure definition was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "StructureDefinition.useContext",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "StructureDefinition.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.jurisdiction",
            "path": "StructureDefinition.jurisdiction",
            "comment": "It may be possible for the structure definition to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "StructureDefinition.purpose",
            "path": "StructureDefinition.purpose",
            "comment": "This element does not describe the usage of the structure definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this structure definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "StructureDefinition.copyright",
            "path": "StructureDefinition.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "StructureDefinition.keyword",
            "path": "StructureDefinition.keyword",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureDefinitionKeyword"
                }
              ],
              "strength": "extensible",
              "description": "Codes for the meaning of the defined structure (SNOMED CT and LOINC codes, as an example).",
              "valueSet": "http://hl7.org/fhir/ValueSet/definition-use"
            }
          },
          {
            "id": "StructureDefinition.fhirVersion",
            "path": "StructureDefinition.fhirVersion",
            "comment": "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": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRVersion"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "All published FHIR Versions.",
              "valueSet": "http://hl7.org/fhir/ValueSet/FHIR-version|4.0.1"
            }
          },
          {
            "id": "StructureDefinition.mapping",
            "path": "StructureDefinition.mapping",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "sdf-2",
                "severity": "error",
                "human": "Must have at least a name or a uri (or both)",
                "expression": "name.exists() or uri.exists()",
                "xpath": "exists(f:uri) or exists(f:name)"
              }
            ]
          },
          {
            "id": "StructureDefinition.mapping.identity",
            "path": "StructureDefinition.mapping.identity",
            "comment": "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"
              }
            ]
          },
          {
            "id": "StructureDefinition.mapping.uri",
            "path": "StructureDefinition.mapping.uri",
            "comment": "A formal identity for the specification being mapped to helps with identifying maps consistently.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "sdf-2"
            ]
          },
          {
            "id": "StructureDefinition.mapping.name",
            "path": "StructureDefinition.mapping.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "sdf-2"
            ]
          },
          {
            "id": "StructureDefinition.mapping.comment",
            "path": "StructureDefinition.mapping.comment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "StructureDefinition.kind",
            "path": "StructureDefinition.kind",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureDefinitionKind"
                }
              ],
              "strength": "required",
              "description": "Defines the type of structure that a definition is describing.",
              "valueSet": "http://hl7.org/fhir/ValueSet/structure-definition-kind|4.0.1"
            }
          },
          {
            "id": "StructureDefinition.abstract",
            "path": "StructureDefinition.abstract",
            "comment": "Abstract Resources cannot be instantiated - a concrete sub-type must be used. Abstract datatypes and extensions cannot be used in an instance. For logical models, the exact implication of \"abstract\" will rest with the author, depending how the logical model is used. 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 StructureDefinition, but have children described, are anonymous concrete types that specialize Element.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.context",
            "path": "StructureDefinition.context",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "sdf-5"
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.context.type",
            "path": "StructureDefinition.context.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ExtensionContextType"
                }
              ],
              "strength": "required",
              "description": "How an extension context is interpreted.",
              "valueSet": "http://hl7.org/fhir/ValueSet/extension-context-type|4.0.1"
            }
          },
          {
            "id": "StructureDefinition.context.expression",
            "path": "StructureDefinition.context.expression",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.contextInvariant",
            "path": "StructureDefinition.contextInvariant",
            "comment": "The rules are only evaluated when the extension is present. When evaluating the invariant, the FHIRPath focus is the element that holds the extension, and %extension refers to the extension itself.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "sdf-18"
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.type",
            "path": "StructureDefinition.type",
            "comment": "Note that in the case of constraints, the type could be determined by chasing through the baseDefinition references until a concrete structure (derivation = specialization) is reached, or by looking at the path of the first element in the snapshot - if present - but providing the type directly makes for simpler tooling and indexing. \n\nThe type must match the elements defined in the differential and the snapshot. For all FHIR defined types, the path name of the element will start with the type name. For logical models, where the type is a URL, the type name SHOULD start with the tail of the type URL where required.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "sdf-11"
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRDefinedTypeExt"
                }
              ],
              "strength": "extensible",
              "description": "Either a resource or a data type, including logical model types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/defined-types"
            }
          },
          {
            "id": "StructureDefinition.baseDefinition",
            "path": "StructureDefinition.baseDefinition",
            "comment": "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": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                    "valueBoolean": true
                  }
                ],
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "condition": [
              "sdf-4"
            ],
            "isSummary": true
          },
          {
            "id": "StructureDefinition.derivation",
            "path": "StructureDefinition.derivation",
            "comment": "If the definition is a specialization, then it adds new elements in the differential, and the snapshot includes the inherited elements.  If the definition is a constraint, then it cannot define new elements, it can only make new rules about existing content (see [Profiling Resources](profiling.html#resources)).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TypeDerivationRule"
                }
              ],
              "strength": "required",
              "description": "How a type relates to its baseDefinition.",
              "valueSet": "http://hl7.org/fhir/ValueSet/type-derivation-rule|4.0.1"
            }
          },
          {
            "id": "StructureDefinition.snapshot",
            "path": "StructureDefinition.snapshot",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "sdf-6"
            ],
            "constraint": [
              {
                "key": "sdf-8",
                "severity": "error",
                "human": "All snapshot elements must start with the StructureDefinition's specified type for non-logical models, or with the same type name for logical models",
                "expression": "(%resource.kind = 'logical' or element.first().path = %resource.type) and element.tail().all(path.startsWith(%resource.snapshot.element.first().path&'.'))",
                "xpath": "f:element[1]/f:path/@value=parent::f:StructureDefinition/f:type/@value and count(f:element[position()!=1])=count(f:element[position()!=1][starts-with(f:path/@value, concat(ancestor::f:StructureDefinition/f:type/@value, '.'))])"
              },
              {
                "key": "sdf-3",
                "severity": "error",
                "human": "Each element definition in a snapshot must have a formal definition and cardinalities",
                "expression": "element.all(definition.exists() and min.exists() and max.exists())",
                "xpath": "count(f:element) = count(f:element[exists(f:definition) and exists(f:min) and exists(f:max)])"
              },
              {
                "key": "sdf-8b",
                "severity": "error",
                "human": "All snapshot elements must have a base definition",
                "expression": "element.all(base.exists())",
                "xpath": "count(f:element) = count(f:element/f:base)"
              }
            ]
          },
          {
            "id": "StructureDefinition.snapshot.element",
            "path": "StructureDefinition.snapshot.element",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "ElementDefinition"
              }
            ],
            "condition": [
              "sdf-3"
            ],
            "constraint": [
              {
                "key": "sdf-10",
                "requirements": "binding is required",
                "severity": "error",
                "human": "provide either a binding reference or a description (or both)",
                "expression": "binding.empty() or binding.valueSet.exists() or binding.description.exists()",
                "xpath": "not(exists(f:binding)) or exists(f:binding/f:valueSet) or exists(f:binding/f:description)"
              }
            ]
          },
          {
            "id": "StructureDefinition.differential",
            "path": "StructureDefinition.differential",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "sdf-6"
            ],
            "constraint": [
              {
                "key": "sdf-20",
                "requirements": "no slicing on root",
                "severity": "error",
                "human": "No slicing on the root element",
                "expression": "element.where(path.contains('.').not()).slicing.empty()",
                "xpath": "not(f:element[1]/f:slicing)"
              },
              {
                "key": "sdf-8a",
                "severity": "error",
                "human": "In any differential, all the elements must start with the StructureDefinition's specified type for non-logical models, or with the same type name for logical models",
                "expression": "(%resource.kind = 'logical' or element.first().path.startsWith(%resource.type)) and (element.tail().empty() or element.tail().all(path.startsWith(%resource.differential.element.first().path.replaceMatches('\\\\..*','')&'.')))",
                "xpath": "count(f:element)=count(f:element[f:path/@value=ancestor::f:StructureDefinition/f:type/@value or starts-with(f:path/@value, concat(ancestor::f:StructureDefinition/f:type/@value, '.'))])"
              }
            ]
          },
          {
            "id": "StructureDefinition.differential.element",
            "path": "StructureDefinition.differential.element",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "ElementDefinition"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/StructureMap",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "StructureMap",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Conformance"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/StructureMap",
      "version": "4.0.1",
      "name": "StructureMap",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "StructureMap",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "StructureMap",
            "path": "StructureMap",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "smp-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.id",
            "path": "StructureMap.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.meta",
            "path": "StructureMap.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.implicitRules",
            "path": "StructureMap.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "StructureMap.language",
            "path": "StructureMap.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "StructureMap.text",
            "path": "StructureMap.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.contained",
            "path": "StructureMap.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.extension",
            "path": "StructureMap.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.modifierExtension",
            "path": "StructureMap.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "StructureMap.url",
            "path": "StructureMap.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.identifier",
            "path": "StructureMap.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this structure map outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.version",
            "path": "StructureMap.version",
            "comment": "There may be different structure map instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the structure map with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.name",
            "path": "StructureMap.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.title",
            "path": "StructureMap.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.status",
            "path": "StructureMap.status",
            "comment": "Allows filtering of structure maps that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "StructureMap.experimental",
            "path": "StructureMap.experimental",
            "comment": "Allows filtering of structure maps that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.date",
            "path": "StructureMap.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the structure map. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.publisher",
            "path": "StructureMap.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the structure map is the organization or individual primarily responsible for the maintenance and upkeep of the structure map. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the structure map. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.contact",
            "path": "StructureMap.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.description",
            "path": "StructureMap.description",
            "comment": "This description can be used to capture details such as why the structure map was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the structure map as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the structure map is presumed to be the predominant language in the place the structure map was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.useContext",
            "path": "StructureMap.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.jurisdiction",
            "path": "StructureMap.jurisdiction",
            "comment": "It may be possible for the structure map to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "StructureMap.purpose",
            "path": "StructureMap.purpose",
            "comment": "This element does not describe the usage of the structure map. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this structure map.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.copyright",
            "path": "StructureMap.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.structure",
            "path": "StructureMap.structure",
            "comment": "It is not necessary for a structure map to identify any dependent structures, though not listing them may restrict its usefulness.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.structure",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.structure.id",
            "path": "StructureMap.structure.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.structure.extension",
            "path": "StructureMap.structure.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.structure.modifierExtension",
            "path": "StructureMap.structure.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureMap.structure.url",
            "path": "StructureMap.structure.url",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.structure.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.structure.mode",
            "path": "StructureMap.structure.mode",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.structure.mode",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapModelMode"
                }
              ],
              "strength": "required",
              "description": "How the referenced structure is used in this mapping.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-model-mode|4.0.1"
            }
          },
          {
            "id": "StructureMap.structure.alias",
            "path": "StructureMap.structure.alias",
            "comment": "This is needed if both types have the same name (e.g. version conversion).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.structure.alias",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.structure.documentation",
            "path": "StructureMap.structure.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.structure.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.import",
            "path": "StructureMap.import",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.import",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureMap"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group",
            "path": "StructureMap.group",
            "min": 1,
            "max": "*",
            "base": {
              "path": "StructureMap.group",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.id",
            "path": "StructureMap.group.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.extension",
            "path": "StructureMap.group.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.modifierExtension",
            "path": "StructureMap.group.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureMap.group.name",
            "path": "StructureMap.group.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.group.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.extends",
            "path": "StructureMap.group.extends",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.extends",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.typeMode",
            "path": "StructureMap.group.typeMode",
            "comment": "Not applicable if the underlying model is untyped. There can only be one default mapping for any particular type combination.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.group.typeMode",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapGroupTypeMode"
                }
              ],
              "strength": "required",
              "description": "If this is the default rule set to apply for the source type, or this combination of types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-group-type-mode|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.documentation",
            "path": "StructureMap.group.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.input",
            "path": "StructureMap.group.input",
            "comment": "If no inputs are named, then the entry mappings are type based.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "StructureMap.group.input",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.input.id",
            "path": "StructureMap.group.input.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.input.extension",
            "path": "StructureMap.group.input.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.input.modifierExtension",
            "path": "StructureMap.group.input.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureMap.group.input.name",
            "path": "StructureMap.group.input.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.group.input.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.input.type",
            "path": "StructureMap.group.input.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.input.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.input.mode",
            "path": "StructureMap.group.input.mode",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.group.input.mode",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapInputMode"
                }
              ],
              "strength": "required",
              "description": "Mode for this instance of data.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-input-mode|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.input.documentation",
            "path": "StructureMap.group.input.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.input.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule",
            "path": "StructureMap.group.rule",
            "min": 1,
            "max": "*",
            "base": {
              "path": "StructureMap.group.rule",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.id",
            "path": "StructureMap.group.rule.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule.extension",
            "path": "StructureMap.group.rule.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule.modifierExtension",
            "path": "StructureMap.group.rule.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.name",
            "path": "StructureMap.group.rule.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source",
            "path": "StructureMap.group.rule.source",
            "min": 1,
            "max": "*",
            "base": {
              "path": "StructureMap.group.rule.source",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.id",
            "path": "StructureMap.group.rule.source.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule.source.extension",
            "path": "StructureMap.group.rule.source.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule.source.modifierExtension",
            "path": "StructureMap.group.rule.source.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.context",
            "path": "StructureMap.group.rule.source.context",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.context",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.min",
            "path": "StructureMap.group.rule.source.min",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.min",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.max",
            "path": "StructureMap.group.rule.source.max",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.max",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.type",
            "path": "StructureMap.group.rule.source.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.defaultValue[x]",
            "path": "StructureMap.group.rule.source.defaultValue[x]",
            "comment": "If there's a default value on an item that can repeat, it will only be used once.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.defaultValue[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "base64Binary"
              },
              {
                "code": "boolean"
              },
              {
                "code": "canonical"
              },
              {
                "code": "code"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "decimal"
              },
              {
                "code": "id"
              },
              {
                "code": "instant"
              },
              {
                "code": "integer"
              },
              {
                "code": "markdown"
              },
              {
                "code": "oid"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              },
              {
                "code": "time"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "uri"
              },
              {
                "code": "url"
              },
              {
                "code": "uuid"
              },
              {
                "code": "Address"
              },
              {
                "code": "Age"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Count"
              },
              {
                "code": "Distance"
              },
              {
                "code": "Duration"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "Money"
              },
              {
                "code": "Period"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "Reference"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "Timing"
              },
              {
                "code": "ContactDetail"
              },
              {
                "code": "Contributor"
              },
              {
                "code": "DataRequirement"
              },
              {
                "code": "Expression"
              },
              {
                "code": "ParameterDefinition"
              },
              {
                "code": "RelatedArtifact"
              },
              {
                "code": "TriggerDefinition"
              },
              {
                "code": "UsageContext"
              },
              {
                "code": "Dosage"
              },
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.element",
            "path": "StructureMap.group.rule.source.element",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.element",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.listMode",
            "path": "StructureMap.group.rule.source.listMode",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.listMode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapSourceListMode"
                }
              ],
              "strength": "required",
              "description": "If field is a list, how to manage the source.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-source-list-mode|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.rule.source.variable",
            "path": "StructureMap.group.rule.source.variable",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.variable",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.condition",
            "path": "StructureMap.group.rule.source.condition",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.condition",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.check",
            "path": "StructureMap.group.rule.source.check",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.check",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.logMessage",
            "path": "StructureMap.group.rule.source.logMessage",
            "comment": "This is typically used for recording that something Is not transformed to the target for some reason.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.source.logMessage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target",
            "path": "StructureMap.group.rule.target",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.group.rule.target",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "smp-1",
                "severity": "error",
                "human": "Can only have an element if you have a context",
                "expression": "element.exists() implies context.exists()",
                "xpath": "not(f:element) or (f:context)"
              },
              {
                "key": "smp-2",
                "severity": "error",
                "human": "Must have a contextType if you have a context",
                "expression": "context.exists() implies contextType.exists()",
                "xpath": "not(f:context) or (f:contextType)"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.id",
            "path": "StructureMap.group.rule.target.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule.target.extension",
            "path": "StructureMap.group.rule.target.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule.target.modifierExtension",
            "path": "StructureMap.group.rule.target.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.context",
            "path": "StructureMap.group.rule.target.context",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.target.context",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.contextType",
            "path": "StructureMap.group.rule.target.contextType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.target.contextType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapContextType"
                }
              ],
              "strength": "required",
              "description": "How to interpret the context.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-context-type|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.rule.target.element",
            "path": "StructureMap.group.rule.target.element",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.target.element",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.variable",
            "path": "StructureMap.group.rule.target.variable",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.target.variable",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.listMode",
            "path": "StructureMap.group.rule.target.listMode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.group.rule.target.listMode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapTargetListMode"
                }
              ],
              "strength": "required",
              "description": "If field is a list, how to manage the production.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-target-list-mode|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.rule.target.listRuleId",
            "path": "StructureMap.group.rule.target.listRuleId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.target.listRuleId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.transform",
            "path": "StructureMap.group.rule.target.transform",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.target.transform",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapTransform"
                }
              ],
              "strength": "required",
              "description": "How data is copied/created.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-transform|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.rule.target.parameter",
            "path": "StructureMap.group.rule.target.parameter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.group.rule.target.parameter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.parameter.id",
            "path": "StructureMap.group.rule.target.parameter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule.target.parameter.extension",
            "path": "StructureMap.group.rule.target.parameter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule.target.parameter.modifierExtension",
            "path": "StructureMap.group.rule.target.parameter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.parameter.value[x]",
            "path": "StructureMap.group.rule.target.parameter.value[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.target.parameter.value[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              },
              {
                "code": "string"
              },
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.rule",
            "path": "StructureMap.group.rule.rule",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.group.rule.rule",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#StructureMap.group.rule",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.dependent",
            "path": "StructureMap.group.rule.dependent",
            "min": 0,
            "max": "*",
            "base": {
              "path": "StructureMap.group.rule.dependent",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.dependent.id",
            "path": "StructureMap.group.rule.dependent.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule.dependent.extension",
            "path": "StructureMap.group.rule.dependent.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "StructureMap.group.rule.dependent.modifierExtension",
            "path": "StructureMap.group.rule.dependent.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.dependent.name",
            "path": "StructureMap.group.rule.dependent.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.dependent.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.dependent.variable",
            "path": "StructureMap.group.rule.dependent.variable",
            "min": 1,
            "max": "*",
            "base": {
              "path": "StructureMap.group.rule.dependent.variable",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.documentation",
            "path": "StructureMap.group.rule.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "StructureMap.group.rule.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "StructureMap",
            "path": "StructureMap",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "smp-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "StructureMap.url",
            "path": "StructureMap.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.identifier",
            "path": "StructureMap.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this structure map outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.version",
            "path": "StructureMap.version",
            "comment": "There may be different structure map instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the structure map with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.name",
            "path": "StructureMap.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.title",
            "path": "StructureMap.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.status",
            "path": "StructureMap.status",
            "comment": "Allows filtering of structure maps that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "StructureMap.experimental",
            "path": "StructureMap.experimental",
            "comment": "Allows filtering of structure maps that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.date",
            "path": "StructureMap.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the structure map. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.publisher",
            "path": "StructureMap.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the structure map is the organization or individual primarily responsible for the maintenance and upkeep of the structure map. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the structure map. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.contact",
            "path": "StructureMap.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.description",
            "path": "StructureMap.description",
            "comment": "This description can be used to capture details such as why the structure map was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the structure map as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the structure map is presumed to be the predominant language in the place the structure map was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "StructureMap.useContext",
            "path": "StructureMap.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.jurisdiction",
            "path": "StructureMap.jurisdiction",
            "comment": "It may be possible for the structure map to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "StructureMap.purpose",
            "path": "StructureMap.purpose",
            "comment": "This element does not describe the usage of the structure map. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this structure map.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "StructureMap.copyright",
            "path": "StructureMap.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "StructureMap.structure",
            "path": "StructureMap.structure",
            "comment": "It is not necessary for a structure map to identify any dependent structures, though not listing them may restrict its usefulness.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.structure.url",
            "path": "StructureMap.structure.url",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.structure.mode",
            "path": "StructureMap.structure.mode",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapModelMode"
                }
              ],
              "strength": "required",
              "description": "How the referenced structure is used in this mapping.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-model-mode|4.0.1"
            }
          },
          {
            "id": "StructureMap.structure.alias",
            "path": "StructureMap.structure.alias",
            "comment": "This is needed if both types have the same name (e.g. version conversion).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.structure.documentation",
            "path": "StructureMap.structure.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "StructureMap.import",
            "path": "StructureMap.import",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/StructureMap"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group",
            "path": "StructureMap.group",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.name",
            "path": "StructureMap.group.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.extends",
            "path": "StructureMap.group.extends",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.typeMode",
            "path": "StructureMap.group.typeMode",
            "comment": "Not applicable if the underlying model is untyped. There can only be one default mapping for any particular type combination.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapGroupTypeMode"
                }
              ],
              "strength": "required",
              "description": "If this is the default rule set to apply for the source type, or this combination of types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-group-type-mode|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.documentation",
            "path": "StructureMap.group.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.input",
            "path": "StructureMap.group.input",
            "comment": "If no inputs are named, then the entry mappings are type based.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.input.name",
            "path": "StructureMap.group.input.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.input.type",
            "path": "StructureMap.group.input.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.input.mode",
            "path": "StructureMap.group.input.mode",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapInputMode"
                }
              ],
              "strength": "required",
              "description": "Mode for this instance of data.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-input-mode|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.input.documentation",
            "path": "StructureMap.group.input.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "StructureMap.group.rule",
            "path": "StructureMap.group.rule",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.name",
            "path": "StructureMap.group.rule.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source",
            "path": "StructureMap.group.rule.source",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.context",
            "path": "StructureMap.group.rule.source.context",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.min",
            "path": "StructureMap.group.rule.source.min",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.max",
            "path": "StructureMap.group.rule.source.max",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.type",
            "path": "StructureMap.group.rule.source.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.defaultValue[x]",
            "path": "StructureMap.group.rule.source.defaultValue[x]",
            "comment": "If there's a default value on an item that can repeat, it will only be used once.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "base64Binary"
              },
              {
                "code": "boolean"
              },
              {
                "code": "canonical"
              },
              {
                "code": "code"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "decimal"
              },
              {
                "code": "id"
              },
              {
                "code": "instant"
              },
              {
                "code": "integer"
              },
              {
                "code": "markdown"
              },
              {
                "code": "oid"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              },
              {
                "code": "time"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "uri"
              },
              {
                "code": "url"
              },
              {
                "code": "uuid"
              },
              {
                "code": "Address"
              },
              {
                "code": "Age"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Count"
              },
              {
                "code": "Distance"
              },
              {
                "code": "Duration"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "Money"
              },
              {
                "code": "Period"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "Reference"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "Timing"
              },
              {
                "code": "ContactDetail"
              },
              {
                "code": "Contributor"
              },
              {
                "code": "DataRequirement"
              },
              {
                "code": "Expression"
              },
              {
                "code": "ParameterDefinition"
              },
              {
                "code": "RelatedArtifact"
              },
              {
                "code": "TriggerDefinition"
              },
              {
                "code": "UsageContext"
              },
              {
                "code": "Dosage"
              },
              {
                "code": "Meta"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.element",
            "path": "StructureMap.group.rule.source.element",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.listMode",
            "path": "StructureMap.group.rule.source.listMode",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapSourceListMode"
                }
              ],
              "strength": "required",
              "description": "If field is a list, how to manage the source.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-source-list-mode|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.rule.source.variable",
            "path": "StructureMap.group.rule.source.variable",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.condition",
            "path": "StructureMap.group.rule.source.condition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.check",
            "path": "StructureMap.group.rule.source.check",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.source.logMessage",
            "path": "StructureMap.group.rule.source.logMessage",
            "comment": "This is typically used for recording that something Is not transformed to the target for some reason.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target",
            "path": "StructureMap.group.rule.target",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "smp-2",
                "severity": "error",
                "human": "Must have a contextType if you have a context",
                "expression": "context.exists() implies contextType.exists()",
                "xpath": "not(f:context) or (f:contextType)"
              },
              {
                "key": "smp-1",
                "severity": "error",
                "human": "Can only have an element if you have a context",
                "expression": "element.exists() implies context.exists()",
                "xpath": "not(f:element) or (f:context)"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.context",
            "path": "StructureMap.group.rule.target.context",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.contextType",
            "path": "StructureMap.group.rule.target.contextType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapContextType"
                }
              ],
              "strength": "required",
              "description": "How to interpret the context.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-context-type|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.rule.target.element",
            "path": "StructureMap.group.rule.target.element",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.variable",
            "path": "StructureMap.group.rule.target.variable",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.listMode",
            "path": "StructureMap.group.rule.target.listMode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapTargetListMode"
                }
              ],
              "strength": "required",
              "description": "If field is a list, how to manage the production.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-target-list-mode|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.rule.target.listRuleId",
            "path": "StructureMap.group.rule.target.listRuleId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.transform",
            "path": "StructureMap.group.rule.target.transform",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "StructureMapTransform"
                }
              ],
              "strength": "required",
              "description": "How data is copied/created.",
              "valueSet": "http://hl7.org/fhir/ValueSet/map-transform|4.0.1"
            }
          },
          {
            "id": "StructureMap.group.rule.target.parameter",
            "path": "StructureMap.group.rule.target.parameter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.target.parameter.value[x]",
            "path": "StructureMap.group.rule.target.parameter.value[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              },
              {
                "code": "string"
              },
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.rule",
            "path": "StructureMap.group.rule.rule",
            "min": 0,
            "max": "*",
            "contentReference": "#StructureMap.group.rule",
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.dependent",
            "path": "StructureMap.group.rule.dependent",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.dependent.name",
            "path": "StructureMap.group.rule.dependent.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.dependent.variable",
            "path": "StructureMap.group.rule.dependent.variable",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "StructureMap.group.rule.documentation",
            "path": "StructureMap.group.rule.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Subscription",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Subscription",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Other"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 3
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Subscription",
      "version": "4.0.1",
      "name": "Subscription",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Subscription",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Subscription",
            "path": "Subscription",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Subscription",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Subscription.id",
            "path": "Subscription.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Subscription.meta",
            "path": "Subscription.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Subscription.implicitRules",
            "path": "Subscription.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Subscription.language",
            "path": "Subscription.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Subscription.text",
            "path": "Subscription.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Subscription.contained",
            "path": "Subscription.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Subscription.extension",
            "path": "Subscription.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Subscription.modifierExtension",
            "path": "Subscription.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Subscription.status",
            "path": "Subscription.status",
            "comment": "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.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Subscription.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubscriptionStatus"
                }
              ],
              "strength": "required",
              "description": "The status of a subscription.",
              "valueSet": "http://hl7.org/fhir/ValueSet/subscription-status|4.0.1"
            }
          },
          {
            "id": "Subscription.contact",
            "path": "Subscription.contact",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Subscription.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Subscription.end",
            "path": "Subscription.end",
            "comment": "The server is permitted to deviate from this time but should observe it.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Subscription.end",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "instant"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Subscription.reason",
            "path": "Subscription.reason",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Subscription.reason",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Subscription.criteria",
            "path": "Subscription.criteria",
            "comment": "The rules are search criteria (without the [base] part). Like Bundle.entry.request.url, it has no leading \"/\".",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Subscription.criteria",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Subscription.error",
            "path": "Subscription.error",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Subscription.error",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Subscription.channel",
            "path": "Subscription.channel",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Subscription.channel",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Subscription.channel.id",
            "path": "Subscription.channel.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Subscription.channel.extension",
            "path": "Subscription.channel.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Subscription.channel.modifierExtension",
            "path": "Subscription.channel.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Subscription.channel.type",
            "path": "Subscription.channel.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Subscription.channel.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubscriptionChannelType"
                }
              ],
              "strength": "required",
              "description": "The type of method used to execute a subscription.",
              "valueSet": "http://hl7.org/fhir/ValueSet/subscription-channel-type|4.0.1"
            }
          },
          {
            "id": "Subscription.channel.endpoint",
            "path": "Subscription.channel.endpoint",
            "comment": "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 there may be more than one, clients should avoid using relative URIs).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Subscription.channel.endpoint",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "url"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Subscription.channel.payload",
            "path": "Subscription.channel.payload",
            "comment": "Sending the payload has obvious security implications. The server is responsible for ensuring that the content is appropriately secured.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Subscription.channel.payload",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "Subscription.channel.header",
            "path": "Subscription.channel.header",
            "comment": "Exactly what these mean depend on the channel type. They can convey additional information to the recipient and/or meet security requirements; for example, support of multiple headers in the outgoing notifications for rest-hook type subscriptions.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Subscription.channel.header",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Subscription",
            "path": "Subscription",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Subscription.status",
            "path": "Subscription.status",
            "comment": "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.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubscriptionStatus"
                }
              ],
              "strength": "required",
              "description": "The status of a subscription.",
              "valueSet": "http://hl7.org/fhir/ValueSet/subscription-status|4.0.1"
            }
          },
          {
            "id": "Subscription.contact",
            "path": "Subscription.contact",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactPoint"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Subscription.end",
            "path": "Subscription.end",
            "comment": "The server is permitted to deviate from this time but should observe it.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Subscription.reason",
            "path": "Subscription.reason",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Subscription.criteria",
            "path": "Subscription.criteria",
            "comment": "The rules are search criteria (without the [base] part). Like Bundle.entry.request.url, it has no leading \"/\".",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Subscription.error",
            "path": "Subscription.error",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Subscription.channel",
            "path": "Subscription.channel",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Subscription.channel.type",
            "path": "Subscription.channel.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubscriptionChannelType"
                }
              ],
              "strength": "required",
              "description": "The type of method used to execute a subscription.",
              "valueSet": "http://hl7.org/fhir/ValueSet/subscription-channel-type|4.0.1"
            }
          },
          {
            "id": "Subscription.channel.endpoint",
            "path": "Subscription.channel.endpoint",
            "comment": "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 there may be more than one, clients should avoid using relative URIs).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "url"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Subscription.channel.payload",
            "path": "Subscription.channel.payload",
            "comment": "Sending the payload has obvious security implications. The server is responsible for ensuring that the content is appropriately secured.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "Subscription.channel.header",
            "path": "Subscription.channel.header",
            "comment": "Exactly what these mean depend on the channel type. They can convey additional information to the recipient and/or meet security requirements; for example, support of multiple headers in the outgoing notifications for rest-hook type subscriptions.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Substance",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Substance",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Entities"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Substance",
      "version": "4.0.1",
      "name": "Substance",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Substance",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Substance",
            "path": "Substance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Substance",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Substance.id",
            "path": "Substance.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Substance.meta",
            "path": "Substance.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Substance.implicitRules",
            "path": "Substance.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Substance.language",
            "path": "Substance.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Substance.text",
            "path": "Substance.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Substance.contained",
            "path": "Substance.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Substance.extension",
            "path": "Substance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Substance.modifierExtension",
            "path": "Substance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Substance.identifier",
            "path": "Substance.identifier",
            "comment": "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": "*",
            "base": {
              "path": "Substance.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Substance.status",
            "path": "Substance.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Substance.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRSubstanceStatus"
                }
              ],
              "strength": "required",
              "description": "A code to indicate if the substance is actively used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/substance-status|4.0.1"
            }
          },
          {
            "id": "Substance.category",
            "path": "Substance.category",
            "comment": "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": "*",
            "base": {
              "path": "Substance.category",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubstanceCategory"
                }
              ],
              "strength": "extensible",
              "description": "Category or classification of substance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/substance-category"
            }
          },
          {
            "id": "Substance.code",
            "path": "Substance.code",
            "comment": "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",
            "base": {
              "path": "Substance.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubstanceCode"
                }
              ],
              "strength": "example",
              "description": "Substance codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/substance-code"
            }
          },
          {
            "id": "Substance.description",
            "path": "Substance.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Substance.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Substance.instance",
            "path": "Substance.instance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Substance.instance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "meaningWhenMissing": "If this element is not present, then the substance resource describes a kind of substance",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Substance.instance.id",
            "path": "Substance.instance.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Substance.instance.extension",
            "path": "Substance.instance.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Substance.instance.modifierExtension",
            "path": "Substance.instance.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Substance.instance.identifier",
            "path": "Substance.instance.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Substance.instance.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Substance.instance.expiry",
            "path": "Substance.instance.expiry",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Substance.instance.expiry",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Substance.instance.quantity",
            "path": "Substance.instance.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Substance.instance.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Substance.ingredient",
            "path": "Substance.ingredient",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Substance.ingredient",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Substance.ingredient.id",
            "path": "Substance.ingredient.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Substance.ingredient.extension",
            "path": "Substance.ingredient.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Substance.ingredient.modifierExtension",
            "path": "Substance.ingredient.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Substance.ingredient.quantity",
            "path": "Substance.ingredient.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Substance.ingredient.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Substance.ingredient.substance[x]",
            "path": "Substance.ingredient.substance[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Substance.ingredient.substance[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubstanceIngredient"
                }
              ],
              "strength": "example",
              "description": "Substance Ingredient codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/substance-code"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Substance",
            "path": "Substance",
            "min": 0,
            "max": "*"
          },
          {
            "id": "Substance.identifier",
            "path": "Substance.identifier",
            "comment": "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
          },
          {
            "id": "Substance.status",
            "path": "Substance.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRSubstanceStatus"
                }
              ],
              "strength": "required",
              "description": "A code to indicate if the substance is actively used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/substance-status|4.0.1"
            }
          },
          {
            "id": "Substance.category",
            "path": "Substance.category",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubstanceCategory"
                }
              ],
              "strength": "extensible",
              "description": "Category or classification of substance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/substance-category"
            }
          },
          {
            "id": "Substance.code",
            "path": "Substance.code",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubstanceCode"
                }
              ],
              "strength": "example",
              "description": "Substance codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/substance-code"
            }
          },
          {
            "id": "Substance.description",
            "path": "Substance.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Substance.instance",
            "path": "Substance.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
          },
          {
            "id": "Substance.instance.identifier",
            "path": "Substance.instance.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Substance.instance.expiry",
            "path": "Substance.instance.expiry",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Substance.instance.quantity",
            "path": "Substance.instance.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Substance.ingredient",
            "path": "Substance.ingredient",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Substance.ingredient.quantity",
            "path": "Substance.ingredient.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Substance.ingredient.substance[x]",
            "path": "Substance.ingredient.substance[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SubstanceIngredient"
                }
              ],
              "strength": "example",
              "description": "Substance Ingredient codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/substance-code"
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SubstanceNucleicAcid",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SubstanceNucleicAcid",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/SubstanceNucleicAcid",
      "version": "4.0.1",
      "name": "SubstanceNucleicAcid",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "SubstanceNucleicAcid",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "SubstanceNucleicAcid",
            "path": "SubstanceNucleicAcid",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceNucleicAcid",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.id",
            "path": "SubstanceNucleicAcid.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.meta",
            "path": "SubstanceNucleicAcid.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.implicitRules",
            "path": "SubstanceNucleicAcid.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.language",
            "path": "SubstanceNucleicAcid.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "SubstanceNucleicAcid.text",
            "path": "SubstanceNucleicAcid.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.contained",
            "path": "SubstanceNucleicAcid.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.extension",
            "path": "SubstanceNucleicAcid.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.modifierExtension",
            "path": "SubstanceNucleicAcid.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.sequenceType",
            "path": "SubstanceNucleicAcid.sequenceType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.sequenceType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.numberOfSubunits",
            "path": "SubstanceNucleicAcid.numberOfSubunits",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.numberOfSubunits",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.areaOfHybridisation",
            "path": "SubstanceNucleicAcid.areaOfHybridisation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.areaOfHybridisation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.oligoNucleotideType",
            "path": "SubstanceNucleicAcid.oligoNucleotideType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.oligoNucleotideType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit",
            "path": "SubstanceNucleicAcid.subunit",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceNucleicAcid.subunit",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.id",
            "path": "SubstanceNucleicAcid.subunit.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.subunit.extension",
            "path": "SubstanceNucleicAcid.subunit.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.subunit.modifierExtension",
            "path": "SubstanceNucleicAcid.subunit.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.subunit",
            "path": "SubstanceNucleicAcid.subunit.subunit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.subunit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sequence",
            "path": "SubstanceNucleicAcid.subunit.sequence",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.sequence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.length",
            "path": "SubstanceNucleicAcid.subunit.length",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.length",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sequenceAttachment",
            "path": "SubstanceNucleicAcid.subunit.sequenceAttachment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.sequenceAttachment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.fivePrime",
            "path": "SubstanceNucleicAcid.subunit.fivePrime",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.fivePrime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.threePrime",
            "path": "SubstanceNucleicAcid.subunit.threePrime",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.threePrime",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage",
            "path": "SubstanceNucleicAcid.subunit.linkage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.linkage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.id",
            "path": "SubstanceNucleicAcid.subunit.linkage.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.extension",
            "path": "SubstanceNucleicAcid.subunit.linkage.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.modifierExtension",
            "path": "SubstanceNucleicAcid.subunit.linkage.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.connectivity",
            "path": "SubstanceNucleicAcid.subunit.linkage.connectivity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.linkage.connectivity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.identifier",
            "path": "SubstanceNucleicAcid.subunit.linkage.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.linkage.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.name",
            "path": "SubstanceNucleicAcid.subunit.linkage.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.linkage.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.residueSite",
            "path": "SubstanceNucleicAcid.subunit.linkage.residueSite",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.linkage.residueSite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar",
            "path": "SubstanceNucleicAcid.subunit.sugar",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.sugar",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar.id",
            "path": "SubstanceNucleicAcid.subunit.sugar.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar.extension",
            "path": "SubstanceNucleicAcid.subunit.sugar.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar.modifierExtension",
            "path": "SubstanceNucleicAcid.subunit.sugar.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar.identifier",
            "path": "SubstanceNucleicAcid.subunit.sugar.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.sugar.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar.name",
            "path": "SubstanceNucleicAcid.subunit.sugar.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.sugar.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar.residueSite",
            "path": "SubstanceNucleicAcid.subunit.sugar.residueSite",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceNucleicAcid.subunit.sugar.residueSite",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "SubstanceNucleicAcid",
            "path": "SubstanceNucleicAcid",
            "min": 0,
            "max": "*"
          },
          {
            "id": "SubstanceNucleicAcid.sequenceType",
            "path": "SubstanceNucleicAcid.sequenceType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.numberOfSubunits",
            "path": "SubstanceNucleicAcid.numberOfSubunits",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.areaOfHybridisation",
            "path": "SubstanceNucleicAcid.areaOfHybridisation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.oligoNucleotideType",
            "path": "SubstanceNucleicAcid.oligoNucleotideType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit",
            "path": "SubstanceNucleicAcid.subunit",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.subunit",
            "path": "SubstanceNucleicAcid.subunit.subunit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sequence",
            "path": "SubstanceNucleicAcid.subunit.sequence",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.length",
            "path": "SubstanceNucleicAcid.subunit.length",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sequenceAttachment",
            "path": "SubstanceNucleicAcid.subunit.sequenceAttachment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.fivePrime",
            "path": "SubstanceNucleicAcid.subunit.fivePrime",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.threePrime",
            "path": "SubstanceNucleicAcid.subunit.threePrime",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage",
            "path": "SubstanceNucleicAcid.subunit.linkage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.connectivity",
            "path": "SubstanceNucleicAcid.subunit.linkage.connectivity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.identifier",
            "path": "SubstanceNucleicAcid.subunit.linkage.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.name",
            "path": "SubstanceNucleicAcid.subunit.linkage.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.linkage.residueSite",
            "path": "SubstanceNucleicAcid.subunit.linkage.residueSite",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar",
            "path": "SubstanceNucleicAcid.subunit.sugar",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar.identifier",
            "path": "SubstanceNucleicAcid.subunit.sugar.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar.name",
            "path": "SubstanceNucleicAcid.subunit.sugar.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceNucleicAcid.subunit.sugar.residueSite",
            "path": "SubstanceNucleicAcid.subunit.sugar.residueSite",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SubstancePolymer",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SubstancePolymer",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/SubstancePolymer",
      "version": "4.0.1",
      "name": "SubstancePolymer",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "SubstancePolymer",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "SubstancePolymer",
            "path": "SubstancePolymer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstancePolymer",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.id",
            "path": "SubstancePolymer.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.meta",
            "path": "SubstancePolymer.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.implicitRules",
            "path": "SubstancePolymer.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.language",
            "path": "SubstancePolymer.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "SubstancePolymer.text",
            "path": "SubstancePolymer.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.contained",
            "path": "SubstancePolymer.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.extension",
            "path": "SubstancePolymer.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.modifierExtension",
            "path": "SubstancePolymer.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.class",
            "path": "SubstancePolymer.class",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.class",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.geometry",
            "path": "SubstancePolymer.geometry",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.geometry",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.copolymerConnectivity",
            "path": "SubstancePolymer.copolymerConnectivity",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstancePolymer.copolymerConnectivity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.modification",
            "path": "SubstancePolymer.modification",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstancePolymer.modification",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet",
            "path": "SubstancePolymer.monomerSet",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstancePolymer.monomerSet",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.id",
            "path": "SubstancePolymer.monomerSet.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.monomerSet.extension",
            "path": "SubstancePolymer.monomerSet.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.monomerSet.modifierExtension",
            "path": "SubstancePolymer.monomerSet.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.ratioType",
            "path": "SubstancePolymer.monomerSet.ratioType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.monomerSet.ratioType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial",
            "path": "SubstancePolymer.monomerSet.startingMaterial",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstancePolymer.monomerSet.startingMaterial",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.id",
            "path": "SubstancePolymer.monomerSet.startingMaterial.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.extension",
            "path": "SubstancePolymer.monomerSet.startingMaterial.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.modifierExtension",
            "path": "SubstancePolymer.monomerSet.startingMaterial.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.material",
            "path": "SubstancePolymer.monomerSet.startingMaterial.material",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.monomerSet.startingMaterial.material",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.type",
            "path": "SubstancePolymer.monomerSet.startingMaterial.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.monomerSet.startingMaterial.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.isDefining",
            "path": "SubstancePolymer.monomerSet.startingMaterial.isDefining",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.monomerSet.startingMaterial.isDefining",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.amount",
            "path": "SubstancePolymer.monomerSet.startingMaterial.amount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.monomerSet.startingMaterial.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "SubstanceAmount"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat",
            "path": "SubstancePolymer.repeat",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstancePolymer.repeat",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.id",
            "path": "SubstancePolymer.repeat.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.repeat.extension",
            "path": "SubstancePolymer.repeat.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.repeat.modifierExtension",
            "path": "SubstancePolymer.repeat.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.numberOfUnits",
            "path": "SubstancePolymer.repeat.numberOfUnits",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.numberOfUnits",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.averageMolecularFormula",
            "path": "SubstancePolymer.repeat.averageMolecularFormula",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.averageMolecularFormula",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnitAmountType",
            "path": "SubstancePolymer.repeat.repeatUnitAmountType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnitAmountType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit",
            "path": "SubstancePolymer.repeat.repeatUnit",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.id",
            "path": "SubstancePolymer.repeat.repeatUnit.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.extension",
            "path": "SubstancePolymer.repeat.repeatUnit.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.modifierExtension",
            "path": "SubstancePolymer.repeat.repeatUnit.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.orientationOfPolymerisation",
            "path": "SubstancePolymer.repeat.repeatUnit.orientationOfPolymerisation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit.orientationOfPolymerisation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.repeatUnit",
            "path": "SubstancePolymer.repeat.repeatUnit.repeatUnit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit.repeatUnit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.amount",
            "path": "SubstancePolymer.repeat.repeatUnit.amount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "SubstanceAmount"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation",
            "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.id",
            "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.extension",
            "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.modifierExtension",
            "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.degree",
            "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.degree",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.degree",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.amount",
            "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.amount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "SubstanceAmount"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.id",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.extension",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.modifierExtension",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.type",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.representation",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.representation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.representation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.attachment",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.attachment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.attachment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "SubstancePolymer",
            "path": "SubstancePolymer",
            "min": 0,
            "max": "*"
          },
          {
            "id": "SubstancePolymer.class",
            "path": "SubstancePolymer.class",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.geometry",
            "path": "SubstancePolymer.geometry",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.copolymerConnectivity",
            "path": "SubstancePolymer.copolymerConnectivity",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.modification",
            "path": "SubstancePolymer.modification",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet",
            "path": "SubstancePolymer.monomerSet",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.ratioType",
            "path": "SubstancePolymer.monomerSet.ratioType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial",
            "path": "SubstancePolymer.monomerSet.startingMaterial",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.material",
            "path": "SubstancePolymer.monomerSet.startingMaterial.material",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.type",
            "path": "SubstancePolymer.monomerSet.startingMaterial.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.isDefining",
            "path": "SubstancePolymer.monomerSet.startingMaterial.isDefining",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.monomerSet.startingMaterial.amount",
            "path": "SubstancePolymer.monomerSet.startingMaterial.amount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "SubstanceAmount"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat",
            "path": "SubstancePolymer.repeat",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.numberOfUnits",
            "path": "SubstancePolymer.repeat.numberOfUnits",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.averageMolecularFormula",
            "path": "SubstancePolymer.repeat.averageMolecularFormula",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnitAmountType",
            "path": "SubstancePolymer.repeat.repeatUnitAmountType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit",
            "path": "SubstancePolymer.repeat.repeatUnit",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.orientationOfPolymerisation",
            "path": "SubstancePolymer.repeat.repeatUnit.orientationOfPolymerisation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.repeatUnit",
            "path": "SubstancePolymer.repeat.repeatUnit.repeatUnit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.amount",
            "path": "SubstancePolymer.repeat.repeatUnit.amount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "SubstanceAmount"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation",
            "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.degree",
            "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.degree",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.amount",
            "path": "SubstancePolymer.repeat.repeatUnit.degreeOfPolymerisation.amount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "SubstanceAmount"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.type",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.representation",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.representation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.attachment",
            "path": "SubstancePolymer.repeat.repeatUnit.structuralRepresentation.attachment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SubstanceProtein",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SubstanceProtein",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/SubstanceProtein",
      "version": "4.0.1",
      "name": "SubstanceProtein",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "SubstanceProtein",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "SubstanceProtein",
            "path": "SubstanceProtein",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceProtein",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceProtein.id",
            "path": "SubstanceProtein.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.meta",
            "path": "SubstanceProtein.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.implicitRules",
            "path": "SubstanceProtein.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.language",
            "path": "SubstanceProtein.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "SubstanceProtein.text",
            "path": "SubstanceProtein.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceProtein.contained",
            "path": "SubstanceProtein.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceProtein.extension",
            "path": "SubstanceProtein.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceProtein.modifierExtension",
            "path": "SubstanceProtein.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "SubstanceProtein.sequenceType",
            "path": "SubstanceProtein.sequenceType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceProtein.sequenceType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.numberOfSubunits",
            "path": "SubstanceProtein.numberOfSubunits",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceProtein.numberOfSubunits",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.disulfideLinkage",
            "path": "SubstanceProtein.disulfideLinkage",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceProtein.disulfideLinkage",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit",
            "path": "SubstanceProtein.subunit",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceProtein.subunit",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.id",
            "path": "SubstanceProtein.subunit.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceProtein.subunit.extension",
            "path": "SubstanceProtein.subunit.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceProtein.subunit.modifierExtension",
            "path": "SubstanceProtein.subunit.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.subunit",
            "path": "SubstanceProtein.subunit.subunit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceProtein.subunit.subunit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.sequence",
            "path": "SubstanceProtein.subunit.sequence",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceProtein.subunit.sequence",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.length",
            "path": "SubstanceProtein.subunit.length",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceProtein.subunit.length",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.sequenceAttachment",
            "path": "SubstanceProtein.subunit.sequenceAttachment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceProtein.subunit.sequenceAttachment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.nTerminalModificationId",
            "path": "SubstanceProtein.subunit.nTerminalModificationId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceProtein.subunit.nTerminalModificationId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.nTerminalModification",
            "path": "SubstanceProtein.subunit.nTerminalModification",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceProtein.subunit.nTerminalModification",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.cTerminalModificationId",
            "path": "SubstanceProtein.subunit.cTerminalModificationId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceProtein.subunit.cTerminalModificationId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.cTerminalModification",
            "path": "SubstanceProtein.subunit.cTerminalModification",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceProtein.subunit.cTerminalModification",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "SubstanceProtein",
            "path": "SubstanceProtein",
            "min": 0,
            "max": "*"
          },
          {
            "id": "SubstanceProtein.sequenceType",
            "path": "SubstanceProtein.sequenceType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.numberOfSubunits",
            "path": "SubstanceProtein.numberOfSubunits",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.disulfideLinkage",
            "path": "SubstanceProtein.disulfideLinkage",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit",
            "path": "SubstanceProtein.subunit",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.subunit",
            "path": "SubstanceProtein.subunit.subunit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.sequence",
            "path": "SubstanceProtein.subunit.sequence",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.length",
            "path": "SubstanceProtein.subunit.length",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.sequenceAttachment",
            "path": "SubstanceProtein.subunit.sequenceAttachment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.nTerminalModificationId",
            "path": "SubstanceProtein.subunit.nTerminalModificationId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.nTerminalModification",
            "path": "SubstanceProtein.subunit.nTerminalModification",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.cTerminalModificationId",
            "path": "SubstanceProtein.subunit.cTerminalModificationId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceProtein.subunit.cTerminalModification",
            "path": "SubstanceProtein.subunit.cTerminalModification",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SubstanceReferenceInformation",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SubstanceReferenceInformation",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/SubstanceReferenceInformation",
      "version": "4.0.1",
      "name": "SubstanceReferenceInformation",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "SubstanceReferenceInformation",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "SubstanceReferenceInformation",
            "path": "SubstanceReferenceInformation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceReferenceInformation",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.id",
            "path": "SubstanceReferenceInformation.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.meta",
            "path": "SubstanceReferenceInformation.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.implicitRules",
            "path": "SubstanceReferenceInformation.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.language",
            "path": "SubstanceReferenceInformation.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "SubstanceReferenceInformation.text",
            "path": "SubstanceReferenceInformation.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.contained",
            "path": "SubstanceReferenceInformation.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.extension",
            "path": "SubstanceReferenceInformation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.modifierExtension",
            "path": "SubstanceReferenceInformation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.comment",
            "path": "SubstanceReferenceInformation.comment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.gene",
            "path": "SubstanceReferenceInformation.gene",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceReferenceInformation.gene",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.gene.id",
            "path": "SubstanceReferenceInformation.gene.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.gene.extension",
            "path": "SubstanceReferenceInformation.gene.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.gene.modifierExtension",
            "path": "SubstanceReferenceInformation.gene.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.gene.geneSequenceOrigin",
            "path": "SubstanceReferenceInformation.gene.geneSequenceOrigin",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.gene.geneSequenceOrigin",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.gene.gene",
            "path": "SubstanceReferenceInformation.gene.gene",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.gene.gene",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.gene.source",
            "path": "SubstanceReferenceInformation.gene.source",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceReferenceInformation.gene.source",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.geneElement",
            "path": "SubstanceReferenceInformation.geneElement",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceReferenceInformation.geneElement",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.geneElement.id",
            "path": "SubstanceReferenceInformation.geneElement.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.geneElement.extension",
            "path": "SubstanceReferenceInformation.geneElement.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.geneElement.modifierExtension",
            "path": "SubstanceReferenceInformation.geneElement.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.geneElement.type",
            "path": "SubstanceReferenceInformation.geneElement.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.geneElement.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.geneElement.element",
            "path": "SubstanceReferenceInformation.geneElement.element",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.geneElement.element",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.geneElement.source",
            "path": "SubstanceReferenceInformation.geneElement.source",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceReferenceInformation.geneElement.source",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification",
            "path": "SubstanceReferenceInformation.classification",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceReferenceInformation.classification",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification.id",
            "path": "SubstanceReferenceInformation.classification.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.classification.extension",
            "path": "SubstanceReferenceInformation.classification.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.classification.modifierExtension",
            "path": "SubstanceReferenceInformation.classification.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification.domain",
            "path": "SubstanceReferenceInformation.classification.domain",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.classification.domain",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification.classification",
            "path": "SubstanceReferenceInformation.classification.classification",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.classification.classification",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification.subtype",
            "path": "SubstanceReferenceInformation.classification.subtype",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceReferenceInformation.classification.subtype",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification.source",
            "path": "SubstanceReferenceInformation.classification.source",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceReferenceInformation.classification.source",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target",
            "path": "SubstanceReferenceInformation.target",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceReferenceInformation.target",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.id",
            "path": "SubstanceReferenceInformation.target.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.target.extension",
            "path": "SubstanceReferenceInformation.target.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceReferenceInformation.target.modifierExtension",
            "path": "SubstanceReferenceInformation.target.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.target",
            "path": "SubstanceReferenceInformation.target.target",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.target.target",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.type",
            "path": "SubstanceReferenceInformation.target.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.target.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.interaction",
            "path": "SubstanceReferenceInformation.target.interaction",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.target.interaction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.organism",
            "path": "SubstanceReferenceInformation.target.organism",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.target.organism",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.organismType",
            "path": "SubstanceReferenceInformation.target.organismType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.target.organismType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.amount[x]",
            "path": "SubstanceReferenceInformation.target.amount[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.target.amount[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.amountType",
            "path": "SubstanceReferenceInformation.target.amountType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceReferenceInformation.target.amountType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.source",
            "path": "SubstanceReferenceInformation.target.source",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceReferenceInformation.target.source",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "SubstanceReferenceInformation",
            "path": "SubstanceReferenceInformation",
            "min": 0,
            "max": "*"
          },
          {
            "id": "SubstanceReferenceInformation.comment",
            "path": "SubstanceReferenceInformation.comment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.gene",
            "path": "SubstanceReferenceInformation.gene",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.gene.geneSequenceOrigin",
            "path": "SubstanceReferenceInformation.gene.geneSequenceOrigin",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.gene.gene",
            "path": "SubstanceReferenceInformation.gene.gene",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.gene.source",
            "path": "SubstanceReferenceInformation.gene.source",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.geneElement",
            "path": "SubstanceReferenceInformation.geneElement",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.geneElement.type",
            "path": "SubstanceReferenceInformation.geneElement.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.geneElement.element",
            "path": "SubstanceReferenceInformation.geneElement.element",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.geneElement.source",
            "path": "SubstanceReferenceInformation.geneElement.source",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification",
            "path": "SubstanceReferenceInformation.classification",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification.domain",
            "path": "SubstanceReferenceInformation.classification.domain",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification.classification",
            "path": "SubstanceReferenceInformation.classification.classification",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification.subtype",
            "path": "SubstanceReferenceInformation.classification.subtype",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.classification.source",
            "path": "SubstanceReferenceInformation.classification.source",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target",
            "path": "SubstanceReferenceInformation.target",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.target",
            "path": "SubstanceReferenceInformation.target.target",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.type",
            "path": "SubstanceReferenceInformation.target.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.interaction",
            "path": "SubstanceReferenceInformation.target.interaction",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.organism",
            "path": "SubstanceReferenceInformation.target.organism",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.organismType",
            "path": "SubstanceReferenceInformation.target.organismType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.amount[x]",
            "path": "SubstanceReferenceInformation.target.amount[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.amountType",
            "path": "SubstanceReferenceInformation.target.amountType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceReferenceInformation.target.source",
            "path": "SubstanceReferenceInformation.target.source",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SubstanceSourceMaterial",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SubstanceSourceMaterial",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/SubstanceSourceMaterial",
      "version": "4.0.1",
      "name": "SubstanceSourceMaterial",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "SubstanceSourceMaterial",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "SubstanceSourceMaterial",
            "path": "SubstanceSourceMaterial",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSourceMaterial",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.id",
            "path": "SubstanceSourceMaterial.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.meta",
            "path": "SubstanceSourceMaterial.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.implicitRules",
            "path": "SubstanceSourceMaterial.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.language",
            "path": "SubstanceSourceMaterial.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "SubstanceSourceMaterial.text",
            "path": "SubstanceSourceMaterial.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.contained",
            "path": "SubstanceSourceMaterial.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.extension",
            "path": "SubstanceSourceMaterial.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.modifierExtension",
            "path": "SubstanceSourceMaterial.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.sourceMaterialClass",
            "path": "SubstanceSourceMaterial.sourceMaterialClass",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.sourceMaterialClass",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.sourceMaterialType",
            "path": "SubstanceSourceMaterial.sourceMaterialType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.sourceMaterialType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.sourceMaterialState",
            "path": "SubstanceSourceMaterial.sourceMaterialState",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.sourceMaterialState",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organismId",
            "path": "SubstanceSourceMaterial.organismId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organismId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organismName",
            "path": "SubstanceSourceMaterial.organismName",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organismName",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.parentSubstanceId",
            "path": "SubstanceSourceMaterial.parentSubstanceId",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSourceMaterial.parentSubstanceId",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.parentSubstanceName",
            "path": "SubstanceSourceMaterial.parentSubstanceName",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSourceMaterial.parentSubstanceName",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.countryOfOrigin",
            "path": "SubstanceSourceMaterial.countryOfOrigin",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSourceMaterial.countryOfOrigin",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.geographicalLocation",
            "path": "SubstanceSourceMaterial.geographicalLocation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSourceMaterial.geographicalLocation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.developmentStage",
            "path": "SubstanceSourceMaterial.developmentStage",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.developmentStage",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.fractionDescription",
            "path": "SubstanceSourceMaterial.fractionDescription",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSourceMaterial.fractionDescription",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.fractionDescription.id",
            "path": "SubstanceSourceMaterial.fractionDescription.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.fractionDescription.extension",
            "path": "SubstanceSourceMaterial.fractionDescription.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.fractionDescription.modifierExtension",
            "path": "SubstanceSourceMaterial.fractionDescription.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.fractionDescription.fraction",
            "path": "SubstanceSourceMaterial.fractionDescription.fraction",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.fractionDescription.fraction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.fractionDescription.materialType",
            "path": "SubstanceSourceMaterial.fractionDescription.materialType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.fractionDescription.materialType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism",
            "path": "SubstanceSourceMaterial.organism",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.id",
            "path": "SubstanceSourceMaterial.organism.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.organism.extension",
            "path": "SubstanceSourceMaterial.organism.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.organism.modifierExtension",
            "path": "SubstanceSourceMaterial.organism.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.family",
            "path": "SubstanceSourceMaterial.organism.family",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.family",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.genus",
            "path": "SubstanceSourceMaterial.organism.genus",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.genus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.species",
            "path": "SubstanceSourceMaterial.organism.species",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.species",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.intraspecificType",
            "path": "SubstanceSourceMaterial.organism.intraspecificType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.intraspecificType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.intraspecificDescription",
            "path": "SubstanceSourceMaterial.organism.intraspecificDescription",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.intraspecificDescription",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.author",
            "path": "SubstanceSourceMaterial.organism.author",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSourceMaterial.organism.author",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.author.id",
            "path": "SubstanceSourceMaterial.organism.author.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.organism.author.extension",
            "path": "SubstanceSourceMaterial.organism.author.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.organism.author.modifierExtension",
            "path": "SubstanceSourceMaterial.organism.author.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.author.authorType",
            "path": "SubstanceSourceMaterial.organism.author.authorType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.author.authorType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.author.authorDescription",
            "path": "SubstanceSourceMaterial.organism.author.authorDescription",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.author.authorDescription",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid",
            "path": "SubstanceSourceMaterial.organism.hybrid",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.hybrid",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.id",
            "path": "SubstanceSourceMaterial.organism.hybrid.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.extension",
            "path": "SubstanceSourceMaterial.organism.hybrid.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.modifierExtension",
            "path": "SubstanceSourceMaterial.organism.hybrid.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.maternalOrganismId",
            "path": "SubstanceSourceMaterial.organism.hybrid.maternalOrganismId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.hybrid.maternalOrganismId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.maternalOrganismName",
            "path": "SubstanceSourceMaterial.organism.hybrid.maternalOrganismName",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.hybrid.maternalOrganismName",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.paternalOrganismId",
            "path": "SubstanceSourceMaterial.organism.hybrid.paternalOrganismId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.hybrid.paternalOrganismId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.paternalOrganismName",
            "path": "SubstanceSourceMaterial.organism.hybrid.paternalOrganismName",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.hybrid.paternalOrganismName",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.hybridType",
            "path": "SubstanceSourceMaterial.organism.hybrid.hybridType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.hybrid.hybridType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral",
            "path": "SubstanceSourceMaterial.organism.organismGeneral",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.organismGeneral",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.id",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.extension",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.modifierExtension",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.kingdom",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.kingdom",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.organismGeneral.kingdom",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.phylum",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.phylum",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.organismGeneral.phylum",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.class",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.class",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.organismGeneral.class",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.order",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.order",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.organism.organismGeneral.order",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.partDescription",
            "path": "SubstanceSourceMaterial.partDescription",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSourceMaterial.partDescription",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.partDescription.id",
            "path": "SubstanceSourceMaterial.partDescription.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.partDescription.extension",
            "path": "SubstanceSourceMaterial.partDescription.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSourceMaterial.partDescription.modifierExtension",
            "path": "SubstanceSourceMaterial.partDescription.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.partDescription.part",
            "path": "SubstanceSourceMaterial.partDescription.part",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.partDescription.part",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.partDescription.partLocation",
            "path": "SubstanceSourceMaterial.partDescription.partLocation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSourceMaterial.partDescription.partLocation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "SubstanceSourceMaterial",
            "path": "SubstanceSourceMaterial",
            "min": 0,
            "max": "*"
          },
          {
            "id": "SubstanceSourceMaterial.sourceMaterialClass",
            "path": "SubstanceSourceMaterial.sourceMaterialClass",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.sourceMaterialType",
            "path": "SubstanceSourceMaterial.sourceMaterialType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.sourceMaterialState",
            "path": "SubstanceSourceMaterial.sourceMaterialState",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organismId",
            "path": "SubstanceSourceMaterial.organismId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organismName",
            "path": "SubstanceSourceMaterial.organismName",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.parentSubstanceId",
            "path": "SubstanceSourceMaterial.parentSubstanceId",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.parentSubstanceName",
            "path": "SubstanceSourceMaterial.parentSubstanceName",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.countryOfOrigin",
            "path": "SubstanceSourceMaterial.countryOfOrigin",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.geographicalLocation",
            "path": "SubstanceSourceMaterial.geographicalLocation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.developmentStage",
            "path": "SubstanceSourceMaterial.developmentStage",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.fractionDescription",
            "path": "SubstanceSourceMaterial.fractionDescription",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.fractionDescription.fraction",
            "path": "SubstanceSourceMaterial.fractionDescription.fraction",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.fractionDescription.materialType",
            "path": "SubstanceSourceMaterial.fractionDescription.materialType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism",
            "path": "SubstanceSourceMaterial.organism",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.family",
            "path": "SubstanceSourceMaterial.organism.family",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.genus",
            "path": "SubstanceSourceMaterial.organism.genus",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.species",
            "path": "SubstanceSourceMaterial.organism.species",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.intraspecificType",
            "path": "SubstanceSourceMaterial.organism.intraspecificType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.intraspecificDescription",
            "path": "SubstanceSourceMaterial.organism.intraspecificDescription",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.author",
            "path": "SubstanceSourceMaterial.organism.author",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.author.authorType",
            "path": "SubstanceSourceMaterial.organism.author.authorType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.author.authorDescription",
            "path": "SubstanceSourceMaterial.organism.author.authorDescription",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid",
            "path": "SubstanceSourceMaterial.organism.hybrid",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.maternalOrganismId",
            "path": "SubstanceSourceMaterial.organism.hybrid.maternalOrganismId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.maternalOrganismName",
            "path": "SubstanceSourceMaterial.organism.hybrid.maternalOrganismName",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.paternalOrganismId",
            "path": "SubstanceSourceMaterial.organism.hybrid.paternalOrganismId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.paternalOrganismName",
            "path": "SubstanceSourceMaterial.organism.hybrid.paternalOrganismName",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.hybrid.hybridType",
            "path": "SubstanceSourceMaterial.organism.hybrid.hybridType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral",
            "path": "SubstanceSourceMaterial.organism.organismGeneral",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.kingdom",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.kingdom",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.phylum",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.phylum",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.class",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.class",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.organism.organismGeneral.order",
            "path": "SubstanceSourceMaterial.organism.organismGeneral.order",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.partDescription",
            "path": "SubstanceSourceMaterial.partDescription",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.partDescription.part",
            "path": "SubstanceSourceMaterial.partDescription.part",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSourceMaterial.partDescription.partLocation",
            "path": "SubstanceSourceMaterial.partDescription.partLocation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SubstanceSpecification",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Medication Definition"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "brr"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification",
      "version": "4.0.1",
      "name": "SubstanceSpecification",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "SubstanceSpecification",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "SubstanceSpecification",
            "path": "SubstanceSpecification",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.id",
            "path": "SubstanceSpecification.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.meta",
            "path": "SubstanceSpecification.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.implicitRules",
            "path": "SubstanceSpecification.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.language",
            "path": "SubstanceSpecification.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "SubstanceSpecification.text",
            "path": "SubstanceSpecification.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.contained",
            "path": "SubstanceSpecification.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.extension",
            "path": "SubstanceSpecification.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.modifierExtension",
            "path": "SubstanceSpecification.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.identifier",
            "path": "SubstanceSpecification.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.type",
            "path": "SubstanceSpecification.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.status",
            "path": "SubstanceSpecification.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.domain",
            "path": "SubstanceSpecification.domain",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.domain",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.description",
            "path": "SubstanceSpecification.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.source",
            "path": "SubstanceSpecification.source",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.source",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.comment",
            "path": "SubstanceSpecification.comment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety",
            "path": "SubstanceSpecification.moiety",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.moiety",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.id",
            "path": "SubstanceSpecification.moiety.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.moiety.extension",
            "path": "SubstanceSpecification.moiety.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.moiety.modifierExtension",
            "path": "SubstanceSpecification.moiety.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.role",
            "path": "SubstanceSpecification.moiety.role",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.moiety.role",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.identifier",
            "path": "SubstanceSpecification.moiety.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.moiety.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.name",
            "path": "SubstanceSpecification.moiety.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.moiety.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.stereochemistry",
            "path": "SubstanceSpecification.moiety.stereochemistry",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.moiety.stereochemistry",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.opticalActivity",
            "path": "SubstanceSpecification.moiety.opticalActivity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.moiety.opticalActivity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.molecularFormula",
            "path": "SubstanceSpecification.moiety.molecularFormula",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.moiety.molecularFormula",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.amount[x]",
            "path": "SubstanceSpecification.moiety.amount[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.moiety.amount[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property",
            "path": "SubstanceSpecification.property",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.property",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.id",
            "path": "SubstanceSpecification.property.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.property.extension",
            "path": "SubstanceSpecification.property.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.property.modifierExtension",
            "path": "SubstanceSpecification.property.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.category",
            "path": "SubstanceSpecification.property.category",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.property.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.code",
            "path": "SubstanceSpecification.property.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.property.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.parameters",
            "path": "SubstanceSpecification.property.parameters",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.property.parameters",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.definingSubstance[x]",
            "path": "SubstanceSpecification.property.definingSubstance[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.property.definingSubstance[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.amount[x]",
            "path": "SubstanceSpecification.property.amount[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.property.amount[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.referenceInformation",
            "path": "SubstanceSpecification.referenceInformation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.referenceInformation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceReferenceInformation"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure",
            "path": "SubstanceSpecification.structure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.id",
            "path": "SubstanceSpecification.structure.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.structure.extension",
            "path": "SubstanceSpecification.structure.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.structure.modifierExtension",
            "path": "SubstanceSpecification.structure.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.stereochemistry",
            "path": "SubstanceSpecification.structure.stereochemistry",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.stereochemistry",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.opticalActivity",
            "path": "SubstanceSpecification.structure.opticalActivity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.opticalActivity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.molecularFormula",
            "path": "SubstanceSpecification.structure.molecularFormula",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.molecularFormula",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.molecularFormulaByMoiety",
            "path": "SubstanceSpecification.structure.molecularFormulaByMoiety",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.molecularFormulaByMoiety",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope",
            "path": "SubstanceSpecification.structure.isotope",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.structure.isotope",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.id",
            "path": "SubstanceSpecification.structure.isotope.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.structure.isotope.extension",
            "path": "SubstanceSpecification.structure.isotope.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.structure.isotope.modifierExtension",
            "path": "SubstanceSpecification.structure.isotope.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.identifier",
            "path": "SubstanceSpecification.structure.isotope.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.isotope.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.name",
            "path": "SubstanceSpecification.structure.isotope.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.isotope.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.substitution",
            "path": "SubstanceSpecification.structure.isotope.substitution",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.isotope.substitution",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.halfLife",
            "path": "SubstanceSpecification.structure.isotope.halfLife",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.isotope.halfLife",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.isotope.molecularWeight",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight.id",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight.extension",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight.modifierExtension",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight.method",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight.method",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.isotope.molecularWeight.method",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight.type",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.isotope.molecularWeight.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight.amount",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight.amount",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.isotope.molecularWeight.amount",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.molecularWeight",
            "path": "SubstanceSpecification.structure.molecularWeight",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.molecularWeight",
              "min": 0,
              "max": "1"
            },
            "contentReference": "#SubstanceSpecification.structure.isotope.molecularWeight",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.source",
            "path": "SubstanceSpecification.structure.source",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.structure.source",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.representation",
            "path": "SubstanceSpecification.structure.representation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.structure.representation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.representation.id",
            "path": "SubstanceSpecification.structure.representation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.structure.representation.extension",
            "path": "SubstanceSpecification.structure.representation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.structure.representation.modifierExtension",
            "path": "SubstanceSpecification.structure.representation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.representation.type",
            "path": "SubstanceSpecification.structure.representation.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.representation.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.representation.representation",
            "path": "SubstanceSpecification.structure.representation.representation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.representation.representation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.representation.attachment",
            "path": "SubstanceSpecification.structure.representation.attachment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.structure.representation.attachment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code",
            "path": "SubstanceSpecification.code",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.code",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.id",
            "path": "SubstanceSpecification.code.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.code.extension",
            "path": "SubstanceSpecification.code.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.code.modifierExtension",
            "path": "SubstanceSpecification.code.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.code",
            "path": "SubstanceSpecification.code.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.code.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.status",
            "path": "SubstanceSpecification.code.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.code.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.statusDate",
            "path": "SubstanceSpecification.code.statusDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.code.statusDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.comment",
            "path": "SubstanceSpecification.code.comment",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.code.comment",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.source",
            "path": "SubstanceSpecification.code.source",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.code.source",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name",
            "path": "SubstanceSpecification.name",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.name",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.id",
            "path": "SubstanceSpecification.name.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.name.extension",
            "path": "SubstanceSpecification.name.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.name.modifierExtension",
            "path": "SubstanceSpecification.name.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.name",
            "path": "SubstanceSpecification.name.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.name.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.type",
            "path": "SubstanceSpecification.name.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.name.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.status",
            "path": "SubstanceSpecification.name.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.name.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.preferred",
            "path": "SubstanceSpecification.name.preferred",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.name.preferred",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.language",
            "path": "SubstanceSpecification.name.language",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.name.language",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.domain",
            "path": "SubstanceSpecification.name.domain",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.name.domain",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.jurisdiction",
            "path": "SubstanceSpecification.name.jurisdiction",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.name.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.synonym",
            "path": "SubstanceSpecification.name.synonym",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.name.synonym",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#SubstanceSpecification.name",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.translation",
            "path": "SubstanceSpecification.name.translation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.name.translation",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#SubstanceSpecification.name",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.official",
            "path": "SubstanceSpecification.name.official",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.name.official",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.official.id",
            "path": "SubstanceSpecification.name.official.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.name.official.extension",
            "path": "SubstanceSpecification.name.official.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.name.official.modifierExtension",
            "path": "SubstanceSpecification.name.official.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.official.authority",
            "path": "SubstanceSpecification.name.official.authority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.name.official.authority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.official.status",
            "path": "SubstanceSpecification.name.official.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.name.official.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.official.date",
            "path": "SubstanceSpecification.name.official.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.name.official.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.source",
            "path": "SubstanceSpecification.name.source",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.name.source",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.molecularWeight",
            "path": "SubstanceSpecification.molecularWeight",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.molecularWeight",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#SubstanceSpecification.structure.isotope.molecularWeight",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship",
            "path": "SubstanceSpecification.relationship",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.relationship",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.id",
            "path": "SubstanceSpecification.relationship.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.relationship.extension",
            "path": "SubstanceSpecification.relationship.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SubstanceSpecification.relationship.modifierExtension",
            "path": "SubstanceSpecification.relationship.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.substance[x]",
            "path": "SubstanceSpecification.relationship.substance[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.relationship.substance[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.relationship",
            "path": "SubstanceSpecification.relationship.relationship",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.relationship.relationship",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.isDefining",
            "path": "SubstanceSpecification.relationship.isDefining",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.relationship.isDefining",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.amount[x]",
            "path": "SubstanceSpecification.relationship.amount[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.relationship.amount[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.amountRatioLowLimit",
            "path": "SubstanceSpecification.relationship.amountRatioLowLimit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.relationship.amountRatioLowLimit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.amountType",
            "path": "SubstanceSpecification.relationship.amountType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.relationship.amountType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.source",
            "path": "SubstanceSpecification.relationship.source",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SubstanceSpecification.relationship.source",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.nucleicAcid",
            "path": "SubstanceSpecification.nucleicAcid",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.nucleicAcid",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceNucleicAcid"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.polymer",
            "path": "SubstanceSpecification.polymer",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.polymer",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstancePolymer"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.protein",
            "path": "SubstanceSpecification.protein",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.protein",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceProtein"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.sourceMaterial",
            "path": "SubstanceSpecification.sourceMaterial",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SubstanceSpecification.sourceMaterial",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceSourceMaterial"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "SubstanceSpecification",
            "path": "SubstanceSpecification",
            "min": 0,
            "max": "*"
          },
          {
            "id": "SubstanceSpecification.identifier",
            "path": "SubstanceSpecification.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.type",
            "path": "SubstanceSpecification.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.status",
            "path": "SubstanceSpecification.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.domain",
            "path": "SubstanceSpecification.domain",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.description",
            "path": "SubstanceSpecification.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.source",
            "path": "SubstanceSpecification.source",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.comment",
            "path": "SubstanceSpecification.comment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety",
            "path": "SubstanceSpecification.moiety",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.role",
            "path": "SubstanceSpecification.moiety.role",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.identifier",
            "path": "SubstanceSpecification.moiety.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.name",
            "path": "SubstanceSpecification.moiety.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.stereochemistry",
            "path": "SubstanceSpecification.moiety.stereochemistry",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.opticalActivity",
            "path": "SubstanceSpecification.moiety.opticalActivity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.molecularFormula",
            "path": "SubstanceSpecification.moiety.molecularFormula",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.moiety.amount[x]",
            "path": "SubstanceSpecification.moiety.amount[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property",
            "path": "SubstanceSpecification.property",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.category",
            "path": "SubstanceSpecification.property.category",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.code",
            "path": "SubstanceSpecification.property.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.parameters",
            "path": "SubstanceSpecification.property.parameters",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.definingSubstance[x]",
            "path": "SubstanceSpecification.property.definingSubstance[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification",
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.property.amount[x]",
            "path": "SubstanceSpecification.property.amount[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.referenceInformation",
            "path": "SubstanceSpecification.referenceInformation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceReferenceInformation"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure",
            "path": "SubstanceSpecification.structure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.stereochemistry",
            "path": "SubstanceSpecification.structure.stereochemistry",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.opticalActivity",
            "path": "SubstanceSpecification.structure.opticalActivity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.molecularFormula",
            "path": "SubstanceSpecification.structure.molecularFormula",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.molecularFormulaByMoiety",
            "path": "SubstanceSpecification.structure.molecularFormulaByMoiety",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope",
            "path": "SubstanceSpecification.structure.isotope",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.identifier",
            "path": "SubstanceSpecification.structure.isotope.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.name",
            "path": "SubstanceSpecification.structure.isotope.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.substitution",
            "path": "SubstanceSpecification.structure.isotope.substitution",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.halfLife",
            "path": "SubstanceSpecification.structure.isotope.halfLife",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight.method",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight.method",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight.type",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.isotope.molecularWeight.amount",
            "path": "SubstanceSpecification.structure.isotope.molecularWeight.amount",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.molecularWeight",
            "path": "SubstanceSpecification.structure.molecularWeight",
            "min": 0,
            "max": "1",
            "contentReference": "#SubstanceSpecification.structure.isotope.molecularWeight",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.source",
            "path": "SubstanceSpecification.structure.source",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.representation",
            "path": "SubstanceSpecification.structure.representation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.representation.type",
            "path": "SubstanceSpecification.structure.representation.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.representation.representation",
            "path": "SubstanceSpecification.structure.representation.representation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.structure.representation.attachment",
            "path": "SubstanceSpecification.structure.representation.attachment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Attachment"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code",
            "path": "SubstanceSpecification.code",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.code",
            "path": "SubstanceSpecification.code.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.status",
            "path": "SubstanceSpecification.code.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.statusDate",
            "path": "SubstanceSpecification.code.statusDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.comment",
            "path": "SubstanceSpecification.code.comment",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.code.source",
            "path": "SubstanceSpecification.code.source",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name",
            "path": "SubstanceSpecification.name",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.name",
            "path": "SubstanceSpecification.name.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.type",
            "path": "SubstanceSpecification.name.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.status",
            "path": "SubstanceSpecification.name.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.preferred",
            "path": "SubstanceSpecification.name.preferred",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.language",
            "path": "SubstanceSpecification.name.language",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.domain",
            "path": "SubstanceSpecification.name.domain",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.jurisdiction",
            "path": "SubstanceSpecification.name.jurisdiction",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.synonym",
            "path": "SubstanceSpecification.name.synonym",
            "min": 0,
            "max": "*",
            "contentReference": "#SubstanceSpecification.name",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.translation",
            "path": "SubstanceSpecification.name.translation",
            "min": 0,
            "max": "*",
            "contentReference": "#SubstanceSpecification.name",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.official",
            "path": "SubstanceSpecification.name.official",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.official.authority",
            "path": "SubstanceSpecification.name.official.authority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.official.status",
            "path": "SubstanceSpecification.name.official.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.official.date",
            "path": "SubstanceSpecification.name.official.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.name.source",
            "path": "SubstanceSpecification.name.source",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.molecularWeight",
            "path": "SubstanceSpecification.molecularWeight",
            "min": 0,
            "max": "*",
            "contentReference": "#SubstanceSpecification.structure.isotope.molecularWeight",
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship",
            "path": "SubstanceSpecification.relationship",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.substance[x]",
            "path": "SubstanceSpecification.relationship.substance[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceSpecification"
                ]
              },
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.relationship",
            "path": "SubstanceSpecification.relationship.relationship",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.isDefining",
            "path": "SubstanceSpecification.relationship.isDefining",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.amount[x]",
            "path": "SubstanceSpecification.relationship.amount[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.amountRatioLowLimit",
            "path": "SubstanceSpecification.relationship.amountRatioLowLimit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Ratio"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.amountType",
            "path": "SubstanceSpecification.relationship.amountType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.relationship.source",
            "path": "SubstanceSpecification.relationship.source",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.nucleicAcid",
            "path": "SubstanceSpecification.nucleicAcid",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceNucleicAcid"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.polymer",
            "path": "SubstanceSpecification.polymer",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstancePolymer"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.protein",
            "path": "SubstanceSpecification.protein",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceProtein"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SubstanceSpecification.sourceMaterial",
            "path": "SubstanceSpecification.sourceMaterial",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SubstanceSourceMaterial"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SupplyDelivery",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SupplyDelivery",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Request &amp; Response"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/SupplyDelivery",
      "version": "4.0.1",
      "name": "SupplyDelivery",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "SupplyDelivery",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "SupplyDelivery",
            "path": "SupplyDelivery",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyDelivery",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.id",
            "path": "SupplyDelivery.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyDelivery.meta",
            "path": "SupplyDelivery.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyDelivery.implicitRules",
            "path": "SupplyDelivery.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "SupplyDelivery.language",
            "path": "SupplyDelivery.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "SupplyDelivery.text",
            "path": "SupplyDelivery.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.contained",
            "path": "SupplyDelivery.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.extension",
            "path": "SupplyDelivery.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.modifierExtension",
            "path": "SupplyDelivery.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.identifier",
            "path": "SupplyDelivery.identifier",
            "comment": "This identifier is typically assigned by the dispenser, and may be used to reference the delivery when exchanging information about it with other systems.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyDelivery.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.basedOn",
            "path": "SupplyDelivery.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyDelivery.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SupplyRequest"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyDelivery.partOf",
            "path": "SupplyDelivery.partOf",
            "comment": "Not to be used to link an event to an Encounter - use Event.context for that.\r\r[The allowed reference resources may be adjusted as appropriate for the event resource].",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyDelivery.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SupplyDelivery",
                  "http://hl7.org/fhir/StructureDefinition/Contract"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyDelivery.status",
            "path": "SupplyDelivery.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyDelivery.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyDeliveryStatus"
                }
              ],
              "strength": "required",
              "description": "Status of the supply delivery.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplydelivery-status|4.0.1"
            }
          },
          {
            "id": "SupplyDelivery.patient",
            "path": "SupplyDelivery.patient",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyDelivery.patient",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.type",
            "path": "SupplyDelivery.type",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyDelivery.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyDeliveryType"
                }
              ],
              "strength": "required",
              "description": "The type of supply dispense.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplydelivery-type|4.0.1"
            }
          },
          {
            "id": "SupplyDelivery.suppliedItem",
            "path": "SupplyDelivery.suppliedItem",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyDelivery.suppliedItem",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.suppliedItem.id",
            "path": "SupplyDelivery.suppliedItem.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.suppliedItem.extension",
            "path": "SupplyDelivery.suppliedItem.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.suppliedItem.modifierExtension",
            "path": "SupplyDelivery.suppliedItem.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SupplyDelivery.suppliedItem.quantity",
            "path": "SupplyDelivery.suppliedItem.quantity",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyDelivery.suppliedItem.quantity",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.suppliedItem.item[x]",
            "path": "SupplyDelivery.suppliedItem.item[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyDelivery.suppliedItem.item[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyDeliveryItem"
                }
              ],
              "strength": "example",
              "description": "The item that was delivered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supply-item"
            }
          },
          {
            "id": "SupplyDelivery.occurrence[x]",
            "path": "SupplyDelivery.occurrence[x]",
            "comment": "[The list of types may be constrained as appropriate for the type of event].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyDelivery.occurrence[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyDelivery.supplier",
            "path": "SupplyDelivery.supplier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyDelivery.supplier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.destination",
            "path": "SupplyDelivery.destination",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyDelivery.destination",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyDelivery.receiver",
            "path": "SupplyDelivery.receiver",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyDelivery.receiver",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "SupplyDelivery",
            "path": "SupplyDelivery",
            "min": 0,
            "max": "*"
          },
          {
            "id": "SupplyDelivery.identifier",
            "path": "SupplyDelivery.identifier",
            "comment": "This identifier is typically assigned by the dispenser, and may be used to reference the delivery when exchanging information about it with other systems.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "SupplyDelivery.basedOn",
            "path": "SupplyDelivery.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SupplyRequest"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SupplyDelivery.partOf",
            "path": "SupplyDelivery.partOf",
            "comment": "Not to be used to link an event to an Encounter - use Event.context for that.\r\r[The allowed reference resources may be adjusted as appropriate for the event resource].",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/SupplyDelivery",
                  "http://hl7.org/fhir/StructureDefinition/Contract"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SupplyDelivery.status",
            "path": "SupplyDelivery.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyDeliveryStatus"
                }
              ],
              "strength": "required",
              "description": "Status of the supply delivery.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplydelivery-status|4.0.1"
            }
          },
          {
            "id": "SupplyDelivery.patient",
            "path": "SupplyDelivery.patient",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ]
          },
          {
            "id": "SupplyDelivery.type",
            "path": "SupplyDelivery.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyDeliveryType"
                }
              ],
              "strength": "required",
              "description": "The type of supply dispense.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplydelivery-type|4.0.1"
            }
          },
          {
            "id": "SupplyDelivery.suppliedItem",
            "path": "SupplyDelivery.suppliedItem",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "SupplyDelivery.suppliedItem.quantity",
            "path": "SupplyDelivery.suppliedItem.quantity",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "SupplyDelivery.suppliedItem.item[x]",
            "path": "SupplyDelivery.suppliedItem.item[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyDeliveryItem"
                }
              ],
              "strength": "example",
              "description": "The item that was delivered.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supply-item"
            }
          },
          {
            "id": "SupplyDelivery.occurrence[x]",
            "path": "SupplyDelivery.occurrence[x]",
            "comment": "[The list of types may be constrained as appropriate for the type of event].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SupplyDelivery.supplier",
            "path": "SupplyDelivery.supplier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "SupplyDelivery.destination",
            "path": "SupplyDelivery.destination",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "SupplyDelivery.receiver",
            "path": "SupplyDelivery.receiver",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SupplyRequest",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SupplyRequest",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Request &amp; Response"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 1
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/SupplyRequest",
      "version": "4.0.1",
      "name": "SupplyRequest",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "SupplyRequest",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "SupplyRequest",
            "path": "SupplyRequest",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyRequest",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyRequest.id",
            "path": "SupplyRequest.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyRequest.meta",
            "path": "SupplyRequest.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyRequest.implicitRules",
            "path": "SupplyRequest.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "SupplyRequest.language",
            "path": "SupplyRequest.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "SupplyRequest.text",
            "path": "SupplyRequest.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyRequest.contained",
            "path": "SupplyRequest.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyRequest.extension",
            "path": "SupplyRequest.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyRequest.modifierExtension",
            "path": "SupplyRequest.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "SupplyRequest.identifier",
            "path": "SupplyRequest.identifier",
            "comment": "The identifier.type element is used to distinguish between the identifiers assigned by the requester/placer and the performer/filler.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyRequest.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyRequest.status",
            "path": "SupplyRequest.status",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyRequest.status",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyRequestStatus"
                }
              ],
              "strength": "required",
              "description": "Status of the supply request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplyrequest-status|4.0.1"
            }
          },
          {
            "id": "SupplyRequest.category",
            "path": "SupplyRequest.category",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyRequest.category",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyRequestKind"
                }
              ],
              "strength": "example",
              "description": "Category of supply request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplyrequest-kind"
            }
          },
          {
            "id": "SupplyRequest.priority",
            "path": "SupplyRequest.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyRequest.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this task should be performed with normal priority",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "SupplyRequest.item[x]",
            "path": "SupplyRequest.item[x]",
            "comment": "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": 1,
            "max": "1",
            "base": {
              "path": "SupplyRequest.item[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyRequestItem"
                }
              ],
              "strength": "example",
              "description": "The item that was requested.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supply-item"
            }
          },
          {
            "id": "SupplyRequest.quantity",
            "path": "SupplyRequest.quantity",
            "min": 1,
            "max": "1",
            "base": {
              "path": "SupplyRequest.quantity",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyRequest.parameter",
            "path": "SupplyRequest.parameter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyRequest.parameter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyRequest.parameter.id",
            "path": "SupplyRequest.parameter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyRequest.parameter.extension",
            "path": "SupplyRequest.parameter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyRequest.parameter.modifierExtension",
            "path": "SupplyRequest.parameter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "SupplyRequest.parameter.code",
            "path": "SupplyRequest.parameter.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyRequest.parameter.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParameterCode"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the device detail."
            }
          },
          {
            "id": "SupplyRequest.parameter.value[x]",
            "path": "SupplyRequest.parameter.value[x]",
            "comment": "Range means device should have a value that falls somewhere within the specified range.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyRequest.parameter.value[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyRequest.occurrence[x]",
            "path": "SupplyRequest.occurrence[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyRequest.occurrence[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyRequest.authoredOn",
            "path": "SupplyRequest.authoredOn",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyRequest.authoredOn",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyRequest.requester",
            "path": "SupplyRequest.requester",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyRequest.requester",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyRequest.supplier",
            "path": "SupplyRequest.supplier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyRequest.supplier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "SupplyRequest.reasonCode",
            "path": "SupplyRequest.reasonCode",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyRequest.reasonCode",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyRequestReason"
                }
              ],
              "strength": "example",
              "description": "The reason why the supply item was requested.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplyrequest-reason"
            }
          },
          {
            "id": "SupplyRequest.reasonReference",
            "path": "SupplyRequest.reasonReference",
            "min": 0,
            "max": "*",
            "base": {
              "path": "SupplyRequest.reasonReference",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyRequest.deliverFrom",
            "path": "SupplyRequest.deliverFrom",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyRequest.deliverFrom",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "SupplyRequest.deliverTo",
            "path": "SupplyRequest.deliverTo",
            "min": 0,
            "max": "1",
            "base": {
              "path": "SupplyRequest.deliverTo",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "SupplyRequest",
            "path": "SupplyRequest",
            "min": 0,
            "max": "*"
          },
          {
            "id": "SupplyRequest.identifier",
            "path": "SupplyRequest.identifier",
            "comment": "The identifier.type element is used to distinguish between the identifiers assigned by the requester/placer and the performer/filler.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SupplyRequest.status",
            "path": "SupplyRequest.status",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyRequestStatus"
                }
              ],
              "strength": "required",
              "description": "Status of the supply request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplyrequest-status|4.0.1"
            }
          },
          {
            "id": "SupplyRequest.category",
            "path": "SupplyRequest.category",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyRequestKind"
                }
              ],
              "strength": "example",
              "description": "Category of supply request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplyrequest-kind"
            }
          },
          {
            "id": "SupplyRequest.priority",
            "path": "SupplyRequest.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this task should be performed with normal priority",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "RequestPriority"
                }
              ],
              "strength": "required",
              "description": "Identifies the level of importance to be assigned to actioning the request.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "SupplyRequest.item[x]",
            "path": "SupplyRequest.item[x]",
            "comment": "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": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Medication",
                  "http://hl7.org/fhir/StructureDefinition/Substance",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyRequestItem"
                }
              ],
              "strength": "example",
              "description": "The item that was requested.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supply-item"
            }
          },
          {
            "id": "SupplyRequest.quantity",
            "path": "SupplyRequest.quantity",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SupplyRequest.parameter",
            "path": "SupplyRequest.parameter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "SupplyRequest.parameter.code",
            "path": "SupplyRequest.parameter.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ParameterCode"
                }
              ],
              "strength": "example",
              "description": "A code that identifies the device detail."
            }
          },
          {
            "id": "SupplyRequest.parameter.value[x]",
            "path": "SupplyRequest.parameter.value[x]",
            "comment": "Range means device should have a value that falls somewhere within the specified range.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "SupplyRequest.occurrence[x]",
            "path": "SupplyRequest.occurrence[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              },
              {
                "code": "Period"
              },
              {
                "code": "Timing"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SupplyRequest.authoredOn",
            "path": "SupplyRequest.authoredOn",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "SupplyRequest.requester",
            "path": "SupplyRequest.requester",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SupplyRequest.supplier",
            "path": "SupplyRequest.supplier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "SupplyRequest.reasonCode",
            "path": "SupplyRequest.reasonCode",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "SupplyRequestReason"
                }
              ],
              "strength": "example",
              "description": "The reason why the supply item was requested.",
              "valueSet": "http://hl7.org/fhir/ValueSet/supplyrequest-reason"
            }
          },
          {
            "id": "SupplyRequest.reasonReference",
            "path": "SupplyRequest.reasonReference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Condition",
                  "http://hl7.org/fhir/StructureDefinition/Observation",
                  "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"
                ]
              }
            ]
          },
          {
            "id": "SupplyRequest.deliverFrom",
            "path": "SupplyRequest.deliverFrom",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ]
          },
          {
            "id": "SupplyRequest.deliverTo",
            "path": "SupplyRequest.deliverTo",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Location",
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Task",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Task",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Workflow"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "not-classified"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "oo"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/Task",
      "version": "4.0.1",
      "name": "Task",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "Task",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "Task",
            "path": "Task",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "inv-1",
                "severity": "error",
                "human": "Last modified date must be greater than or equal to authored-on date.",
                "expression": "lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn",
                "xpath": "not(exists(f:lastModified/@value)) or not(exists(f:authoredOn/@value)) or f:lastModified/@value >= f:authoredOn/@value"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.id",
            "path": "Task.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.meta",
            "path": "Task.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.implicitRules",
            "path": "Task.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "Task.language",
            "path": "Task.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "Task.text",
            "path": "Task.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.contained",
            "path": "Task.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.extension",
            "path": "Task.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.modifierExtension",
            "path": "Task.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "Task.identifier",
            "path": "Task.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.instantiatesCanonical",
            "path": "Task.instantiatesCanonical",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.instantiatesCanonical",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.instantiatesUri",
            "path": "Task.instantiatesUri",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.instantiatesUri",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.basedOn",
            "path": "Task.basedOn",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task.basedOn",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.groupIdentifier",
            "path": "Task.groupIdentifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.groupIdentifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.partOf",
            "path": "Task.partOf",
            "comment": "This should usually be 0..1.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task.partOf",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Task"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.status",
            "path": "Task.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Task.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskStatus"
                }
              ],
              "strength": "required",
              "description": "The current status of the task.",
              "valueSet": "http://hl7.org/fhir/ValueSet/task-status|4.0.1"
            }
          },
          {
            "id": "Task.statusReason",
            "path": "Task.statusReason",
            "comment": "This applies to the current status.  Look at the history of the task to see reasons for past statuses.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.statusReason",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskStatusReason"
                }
              ],
              "strength": "example",
              "description": "Codes to identify the reason for current status.  These will typically be specific to a particular workflow."
            }
          },
          {
            "id": "Task.businessStatus",
            "path": "Task.businessStatus",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.businessStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskBusinessStatus"
                }
              ],
              "strength": "example",
              "description": "The domain-specific business-contextual sub-state of the task.  For example: \"Blood drawn\", \"IV inserted\", \"Awaiting physician signature\", etc."
            }
          },
          {
            "id": "Task.intent",
            "path": "Task.intent",
            "comment": "This element is immutable.  Proposed tasks, planned tasks, etc. must be distinct instances.\n\nIn most cases, Tasks will have an intent of \"order\".",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Task.intent",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskIntent"
                }
              ],
              "strength": "required",
              "description": "Distinguishes whether the task is a proposal, plan or full order.",
              "valueSet": "http://hl7.org/fhir/ValueSet/task-intent|4.0.1"
            }
          },
          {
            "id": "Task.priority",
            "path": "Task.priority",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.priority",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this task should be performed with normal priority",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskPriority"
                }
              ],
              "strength": "required",
              "description": "The task's priority.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "Task.code",
            "path": "Task.code",
            "comment": "The title (eg \"My Tasks\", \"Outstanding Tasks for Patient X\") should go into the code.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskCode"
                }
              ],
              "strength": "example",
              "description": "Codes to identify what the task involves.  These will typically be specific to a particular workflow.",
              "valueSet": "http://hl7.org/fhir/ValueSet/task-code"
            }
          },
          {
            "id": "Task.description",
            "path": "Task.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.focus",
            "path": "Task.focus",
            "comment": "If multiple resources need to be manipulated, use sub-tasks.  (This ensures that status can be tracked independently for each referenced resource.).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.focus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.for",
            "path": "Task.for",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.for",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.encounter",
            "path": "Task.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.executionPeriod",
            "path": "Task.executionPeriod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.executionPeriod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.authoredOn",
            "path": "Task.authoredOn",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.authoredOn",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "condition": [
              "inv-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.lastModified",
            "path": "Task.lastModified",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.lastModified",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "condition": [
              "inv-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.requester",
            "path": "Task.requester",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.requester",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.performerType",
            "path": "Task.performerType",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task.performerType",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskPerformerType"
                }
              ],
              "strength": "preferred",
              "description": "The type(s) of task performers allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/performer-role"
            }
          },
          {
            "id": "Task.owner",
            "path": "Task.owner",
            "comment": "Tasks may be created with an owner not yet identified.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.owner",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.location",
            "path": "Task.location",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.location",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "Task.reasonCode",
            "path": "Task.reasonCode",
            "comment": "This should only be included if there is no focus or if it differs from the reason indicated on the focus.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.reasonCode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskReason"
                }
              ],
              "strength": "example",
              "description": "Indicates why the task is needed.  E.g. Suspended because patient admitted to hospital."
            }
          },
          {
            "id": "Task.reasonReference",
            "path": "Task.reasonReference",
            "comment": "Tasks might be justified based on an Observation, a Condition, a past or planned procedure, etc.   This should only be included if there is no focus or if it differs from the reason indicated on the focus.    Use the CodeableConcept text element in `Task.reasonCode` if the data is free (uncoded) text.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.reasonReference",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.insurance",
            "path": "Task.insurance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task.insurance",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage",
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.note",
            "path": "Task.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.relevantHistory",
            "path": "Task.relevantHistory",
            "comment": "This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task.relevantHistory",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.restriction",
            "path": "Task.restriction",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.restriction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.restriction.id",
            "path": "Task.restriction.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.restriction.extension",
            "path": "Task.restriction.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.restriction.modifierExtension",
            "path": "Task.restriction.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Task.restriction.repetitions",
            "path": "Task.restriction.repetitions",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.restriction.repetitions",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.restriction.period",
            "path": "Task.restriction.period",
            "comment": "Note that period.high is the due date representing the time by which the task should be completed.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Task.restriction.period",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Period"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.restriction.recipient",
            "path": "Task.restriction.recipient",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task.restriction.recipient",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.input",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Parameter"
              }
            ],
            "path": "Task.input",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task.input",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.input.id",
            "path": "Task.input.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.input.extension",
            "path": "Task.input.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.input.modifierExtension",
            "path": "Task.input.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Task.input.type",
            "path": "Task.input.type",
            "comment": "If referencing a BPMN workflow or Protocol, the \"system\" is the URL for the workflow definition and the code is the \"name\" of the required input.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Task.input.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskInputParameterType"
                }
              ],
              "strength": "example",
              "description": "Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. \"Comparison source\", \"Applicable consent\", \"Concomitent Medications\", etc."
            }
          },
          {
            "id": "Task.input.value[x]",
            "path": "Task.input.value[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Task.input.value[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "base64Binary"
              },
              {
                "code": "boolean"
              },
              {
                "code": "canonical"
              },
              {
                "code": "code"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "decimal"
              },
              {
                "code": "id"
              },
              {
                "code": "instant"
              },
              {
                "code": "integer"
              },
              {
                "code": "markdown"
              },
              {
                "code": "oid"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              },
              {
                "code": "time"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "uri"
              },
              {
                "code": "url"
              },
              {
                "code": "uuid"
              },
              {
                "code": "Address"
              },
              {
                "code": "Age"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Count"
              },
              {
                "code": "Distance"
              },
              {
                "code": "Duration"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "Money"
              },
              {
                "code": "Period"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "Reference"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "Timing"
              },
              {
                "code": "ContactDetail"
              },
              {
                "code": "Contributor"
              },
              {
                "code": "DataRequirement"
              },
              {
                "code": "Expression"
              },
              {
                "code": "ParameterDefinition"
              },
              {
                "code": "RelatedArtifact"
              },
              {
                "code": "TriggerDefinition"
              },
              {
                "code": "UsageContext"
              },
              {
                "code": "Dosage"
              },
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.output",
            "path": "Task.output",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Task.output",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.output.id",
            "path": "Task.output.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.output.extension",
            "path": "Task.output.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "Task.output.modifierExtension",
            "path": "Task.output.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "Task.output.type",
            "path": "Task.output.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Task.output.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskOutputParameterType"
                }
              ],
              "strength": "example",
              "description": "Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. \"Identified issues\", \"Preliminary results\", \"Filler order\", \"Final results\", etc."
            }
          },
          {
            "id": "Task.output.value[x]",
            "path": "Task.output.value[x]",
            "min": 1,
            "max": "1",
            "base": {
              "path": "Task.output.value[x]",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "base64Binary"
              },
              {
                "code": "boolean"
              },
              {
                "code": "canonical"
              },
              {
                "code": "code"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "decimal"
              },
              {
                "code": "id"
              },
              {
                "code": "instant"
              },
              {
                "code": "integer"
              },
              {
                "code": "markdown"
              },
              {
                "code": "oid"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              },
              {
                "code": "time"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "uri"
              },
              {
                "code": "url"
              },
              {
                "code": "uuid"
              },
              {
                "code": "Address"
              },
              {
                "code": "Age"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Count"
              },
              {
                "code": "Distance"
              },
              {
                "code": "Duration"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "Money"
              },
              {
                "code": "Period"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "Reference"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "Timing"
              },
              {
                "code": "ContactDetail"
              },
              {
                "code": "Contributor"
              },
              {
                "code": "DataRequirement"
              },
              {
                "code": "Expression"
              },
              {
                "code": "ParameterDefinition"
              },
              {
                "code": "RelatedArtifact"
              },
              {
                "code": "TriggerDefinition"
              },
              {
                "code": "UsageContext"
              },
              {
                "code": "Dosage"
              },
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "Task",
            "path": "Task",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "inv-1",
                "severity": "error",
                "human": "Last modified date must be greater than or equal to authored-on date.",
                "expression": "lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn",
                "xpath": "not(exists(f:lastModified/@value)) or not(exists(f:authoredOn/@value)) or f:lastModified/@value >= f:authoredOn/@value"
              }
            ]
          },
          {
            "id": "Task.identifier",
            "path": "Task.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "Task.instantiatesCanonical",
            "path": "Task.instantiatesCanonical",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.instantiatesUri",
            "path": "Task.instantiatesUri",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.basedOn",
            "path": "Task.basedOn",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.groupIdentifier",
            "path": "Task.groupIdentifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.partOf",
            "path": "Task.partOf",
            "comment": "This should usually be 0..1.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Task"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.status",
            "path": "Task.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskStatus"
                }
              ],
              "strength": "required",
              "description": "The current status of the task.",
              "valueSet": "http://hl7.org/fhir/ValueSet/task-status|4.0.1"
            }
          },
          {
            "id": "Task.statusReason",
            "path": "Task.statusReason",
            "comment": "This applies to the current status.  Look at the history of the task to see reasons for past statuses.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskStatusReason"
                }
              ],
              "strength": "example",
              "description": "Codes to identify the reason for current status.  These will typically be specific to a particular workflow."
            }
          },
          {
            "id": "Task.businessStatus",
            "path": "Task.businessStatus",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskBusinessStatus"
                }
              ],
              "strength": "example",
              "description": "The domain-specific business-contextual sub-state of the task.  For example: \"Blood drawn\", \"IV inserted\", \"Awaiting physician signature\", etc."
            }
          },
          {
            "id": "Task.intent",
            "path": "Task.intent",
            "comment": "This element is immutable.  Proposed tasks, planned tasks, etc. must be distinct instances.\n\nIn most cases, Tasks will have an intent of \"order\".",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskIntent"
                }
              ],
              "strength": "required",
              "description": "Distinguishes whether the task is a proposal, plan or full order.",
              "valueSet": "http://hl7.org/fhir/ValueSet/task-intent|4.0.1"
            }
          },
          {
            "id": "Task.priority",
            "path": "Task.priority",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "meaningWhenMissing": "If missing, this task should be performed with normal priority",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskPriority"
                }
              ],
              "strength": "required",
              "description": "The task's priority.",
              "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"
            }
          },
          {
            "id": "Task.code",
            "path": "Task.code",
            "comment": "The title (eg \"My Tasks\", \"Outstanding Tasks for Patient X\") should go into the code.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskCode"
                }
              ],
              "strength": "example",
              "description": "Codes to identify what the task involves.  These will typically be specific to a particular workflow.",
              "valueSet": "http://hl7.org/fhir/ValueSet/task-code"
            }
          },
          {
            "id": "Task.description",
            "path": "Task.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.focus",
            "path": "Task.focus",
            "comment": "If multiple resources need to be manipulated, use sub-tasks.  (This ensures that status can be tracked independently for each referenced resource.).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.for",
            "path": "Task.for",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.encounter",
            "path": "Task.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.executionPeriod",
            "path": "Task.executionPeriod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.authoredOn",
            "path": "Task.authoredOn",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "condition": [
              "inv-1"
            ]
          },
          {
            "id": "Task.lastModified",
            "path": "Task.lastModified",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "condition": [
              "inv-1"
            ],
            "isSummary": true
          },
          {
            "id": "Task.requester",
            "path": "Task.requester",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.performerType",
            "path": "Task.performerType",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskPerformerType"
                }
              ],
              "strength": "preferred",
              "description": "The type(s) of task performers allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/performer-role"
            }
          },
          {
            "id": "Task.owner",
            "path": "Task.owner",
            "comment": "Tasks may be created with an owner not yet identified.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/CareTeam",
                  "http://hl7.org/fhir/StructureDefinition/HealthcareService",
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Device",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.location",
            "path": "Task.location",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "Task.reasonCode",
            "path": "Task.reasonCode",
            "comment": "This should only be included if there is no focus or if it differs from the reason indicated on the focus.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskReason"
                }
              ],
              "strength": "example",
              "description": "Indicates why the task is needed.  E.g. Suspended because patient admitted to hospital."
            }
          },
          {
            "id": "Task.reasonReference",
            "path": "Task.reasonReference",
            "comment": "Tasks might be justified based on an Observation, a Condition, a past or planned procedure, etc.   This should only be included if there is no focus or if it differs from the reason indicated on the focus.    Use the CodeableConcept text element in `Task.reasonCode` if the data is free (uncoded) text.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "Task.insurance",
            "path": "Task.insurance",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Coverage",
                  "http://hl7.org/fhir/StructureDefinition/ClaimResponse"
                ]
              }
            ]
          },
          {
            "id": "Task.note",
            "path": "Task.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          },
          {
            "id": "Task.relevantHistory",
            "path": "Task.relevantHistory",
            "comment": "This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Provenance"
                ]
              }
            ]
          },
          {
            "id": "Task.restriction",
            "path": "Task.restriction",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Task.restriction.repetitions",
            "path": "Task.restriction.repetitions",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ]
          },
          {
            "id": "Task.restriction.period",
            "path": "Task.restriction.period",
            "comment": "Note that period.high is the due date representing the time by which the task should be completed.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ]
          },
          {
            "id": "Task.restriction.recipient",
            "path": "Task.restriction.recipient",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
                  "http://hl7.org/fhir/StructureDefinition/Group",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "Task.input",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Parameter"
              }
            ],
            "path": "Task.input",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Task.input.type",
            "path": "Task.input.type",
            "comment": "If referencing a BPMN workflow or Protocol, the \"system\" is the URL for the workflow definition and the code is the \"name\" of the required input.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskInputParameterType"
                }
              ],
              "strength": "example",
              "description": "Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. \"Comparison source\", \"Applicable consent\", \"Concomitent Medications\", etc."
            }
          },
          {
            "id": "Task.input.value[x]",
            "path": "Task.input.value[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "base64Binary"
              },
              {
                "code": "boolean"
              },
              {
                "code": "canonical"
              },
              {
                "code": "code"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "decimal"
              },
              {
                "code": "id"
              },
              {
                "code": "instant"
              },
              {
                "code": "integer"
              },
              {
                "code": "markdown"
              },
              {
                "code": "oid"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              },
              {
                "code": "time"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "uri"
              },
              {
                "code": "url"
              },
              {
                "code": "uuid"
              },
              {
                "code": "Address"
              },
              {
                "code": "Age"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Count"
              },
              {
                "code": "Distance"
              },
              {
                "code": "Duration"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "Money"
              },
              {
                "code": "Period"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "Reference"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "Timing"
              },
              {
                "code": "ContactDetail"
              },
              {
                "code": "Contributor"
              },
              {
                "code": "DataRequirement"
              },
              {
                "code": "Expression"
              },
              {
                "code": "ParameterDefinition"
              },
              {
                "code": "RelatedArtifact"
              },
              {
                "code": "TriggerDefinition"
              },
              {
                "code": "UsageContext"
              },
              {
                "code": "Dosage"
              },
              {
                "code": "Meta"
              }
            ]
          },
          {
            "id": "Task.output",
            "path": "Task.output",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "Task.output.type",
            "path": "Task.output.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TaskOutputParameterType"
                }
              ],
              "strength": "example",
              "description": "Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. \"Identified issues\", \"Preliminary results\", \"Filler order\", \"Final results\", etc."
            }
          },
          {
            "id": "Task.output.value[x]",
            "path": "Task.output.value[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "base64Binary"
              },
              {
                "code": "boolean"
              },
              {
                "code": "canonical"
              },
              {
                "code": "code"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "decimal"
              },
              {
                "code": "id"
              },
              {
                "code": "instant"
              },
              {
                "code": "integer"
              },
              {
                "code": "markdown"
              },
              {
                "code": "oid"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "string"
              },
              {
                "code": "time"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "uri"
              },
              {
                "code": "url"
              },
              {
                "code": "uuid"
              },
              {
                "code": "Address"
              },
              {
                "code": "Age"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Count"
              },
              {
                "code": "Distance"
              },
              {
                "code": "Duration"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "Money"
              },
              {
                "code": "Period"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "Reference"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "Timing"
              },
              {
                "code": "ContactDetail"
              },
              {
                "code": "Contributor"
              },
              {
                "code": "DataRequirement"
              },
              {
                "code": "Expression"
              },
              {
                "code": "ParameterDefinition"
              },
              {
                "code": "RelatedArtifact"
              },
              {
                "code": "TriggerDefinition"
              },
              {
                "code": "UsageContext"
              },
              {
                "code": "Dosage"
              },
              {
                "code": "Meta"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/TerminologyCapabilities",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "TerminologyCapabilities",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Terminology"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "vocab"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/TerminologyCapabilities",
      "version": "4.0.1",
      "name": "TerminologyCapabilities",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "TerminologyCapabilities",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "TerminologyCapabilities",
            "path": "TerminologyCapabilities",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "tcp-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "tcp-2",
                "severity": "error",
                "human": "A Capability Statement SHALL have at least one of description, software, or implementation element.",
                "expression": "(description.count() + software.count() + implementation.count()) > 0",
                "xpath": "count(f:software | f:implementation | f:description) > 0"
              },
              {
                "key": "tcp-3",
                "severity": "error",
                "human": "If kind = instance, implementation must be present and software may be present",
                "expression": "(kind != 'instance') or implementation.exists()",
                "xpath": "not(f:kind/@value='instance') or exists(f:implementation)"
              },
              {
                "key": "tcp-4",
                "severity": "error",
                "human": "If kind = capability, implementation must be absent, software must be present",
                "expression": "(kind != 'capability') or (implementation.exists().not() and software.exists())",
                "xpath": " not(f:kind/@value='instance') or (not(exists(f:implementation)) and exists(f:software))"
              },
              {
                "key": "tcp-5",
                "severity": "error",
                "human": "If kind = requirements, implementation and software must be absent",
                "expression": "(kind!='requirements') or (implementation.exists().not() and software.exists().not())",
                "xpath": "not(f:kind/@value='instance') or (not(exists(f:implementation)) and not(exists(f:software)))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.id",
            "path": "TerminologyCapabilities.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.meta",
            "path": "TerminologyCapabilities.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.implicitRules",
            "path": "TerminologyCapabilities.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.language",
            "path": "TerminologyCapabilities.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "TerminologyCapabilities.text",
            "path": "TerminologyCapabilities.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.contained",
            "path": "TerminologyCapabilities.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.extension",
            "path": "TerminologyCapabilities.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.modifierExtension",
            "path": "TerminologyCapabilities.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.url",
            "path": "TerminologyCapabilities.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.version",
            "path": "TerminologyCapabilities.version",
            "comment": "There may be different terminology capabilities instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the terminology capabilities with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.name",
            "path": "TerminologyCapabilities.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.title",
            "path": "TerminologyCapabilities.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.status",
            "path": "TerminologyCapabilities.status",
            "comment": "Allows filtering of terminology capabilitiess that are appropriate for use versus not.This is not intended for use with actual capability statements, but where capability statements are used to describe possible or desired systems.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "TerminologyCapabilities.experimental",
            "path": "TerminologyCapabilities.experimental",
            "comment": "Allows filtering of terminology capabilitiess that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.date",
            "path": "TerminologyCapabilities.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the terminology capabilities. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.date",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.publisher",
            "path": "TerminologyCapabilities.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the terminology capabilities is the organization or individual primarily responsible for the maintenance and upkeep of the terminology capabilities. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the terminology capabilities. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.contact",
            "path": "TerminologyCapabilities.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.description",
            "path": "TerminologyCapabilities.description",
            "comment": "This description can be used to capture details such as why the terminology capabilities was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the terminology capabilities as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the terminology capabilities is presumed to be the predominant language in the place the terminology capabilities was created).This does not need to be populated if the description is adequately implied by the software or implementation details.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.useContext",
            "path": "TerminologyCapabilities.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.jurisdiction",
            "path": "TerminologyCapabilities.jurisdiction",
            "comment": "It may be possible for the terminology capabilities to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "TerminologyCapabilities.purpose",
            "path": "TerminologyCapabilities.purpose",
            "comment": "This element does not describe the usage of the terminology capabilities. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this terminology capabilities.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.copyright",
            "path": "TerminologyCapabilities.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.kind",
            "path": "TerminologyCapabilities.kind",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.kind",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "tcp-3",
              "tcp-4",
              "tcp-5"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CapabilityStatementKind"
                }
              ],
              "strength": "required",
              "description": "How a capability statement is intended to be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/capability-statement-kind|4.0.1"
            }
          },
          {
            "id": "TerminologyCapabilities.software",
            "path": "TerminologyCapabilities.software",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.software",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "tcp-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.software.id",
            "path": "TerminologyCapabilities.software.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.software.extension",
            "path": "TerminologyCapabilities.software.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.software.modifierExtension",
            "path": "TerminologyCapabilities.software.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.software.name",
            "path": "TerminologyCapabilities.software.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.software.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.software.version",
            "path": "TerminologyCapabilities.software.version",
            "comment": "If possible, a version should be specified, as statements are likely to be different for different versions of software.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.software.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.implementation",
            "path": "TerminologyCapabilities.implementation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.implementation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "tcp-2",
              "tcp-5"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.implementation.id",
            "path": "TerminologyCapabilities.implementation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.implementation.extension",
            "path": "TerminologyCapabilities.implementation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.implementation.modifierExtension",
            "path": "TerminologyCapabilities.implementation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.implementation.description",
            "path": "TerminologyCapabilities.implementation.description",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.implementation.description",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.implementation.url",
            "path": "TerminologyCapabilities.implementation.url",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.implementation.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "url"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.lockedDate",
            "path": "TerminologyCapabilities.lockedDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.lockedDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.codeSystem",
            "path": "TerminologyCapabilities.codeSystem",
            "comment": "The code system - identified by its system URL - may also be declared explicitly as a Code System Resource at /CodeSystem, but it might not be.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities.codeSystem",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "tcp-1",
                "severity": "error",
                "human": "If there is more than one version, a version code must be defined",
                "expression": "version.count() > 1 implies version.all(code.exists())",
                "xpath": "(count(f:version) <= 1) or not(exists(f:version[not(f:code)]))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.id",
            "path": "TerminologyCapabilities.codeSystem.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.extension",
            "path": "TerminologyCapabilities.codeSystem.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.modifierExtension",
            "path": "TerminologyCapabilities.codeSystem.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.codeSystem.uri",
            "path": "TerminologyCapabilities.codeSystem.uri",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.uri",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CodeSystem"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version",
            "path": "TerminologyCapabilities.codeSystem.version",
            "comment": "Language translations might not be available for all codes.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.version",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.id",
            "path": "TerminologyCapabilities.codeSystem.version.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.extension",
            "path": "TerminologyCapabilities.codeSystem.version.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.modifierExtension",
            "path": "TerminologyCapabilities.codeSystem.version.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.code",
            "path": "TerminologyCapabilities.codeSystem.version.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.version.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "tcp-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.isDefault",
            "path": "TerminologyCapabilities.codeSystem.version.isDefault",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.version.isDefault",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.compositional",
            "path": "TerminologyCapabilities.codeSystem.version.compositional",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.version.compositional",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.language",
            "path": "TerminologyCapabilities.codeSystem.version.language",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.version.language",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.filter",
            "path": "TerminologyCapabilities.codeSystem.version.filter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.version.filter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.filter.id",
            "path": "TerminologyCapabilities.codeSystem.version.filter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.filter.extension",
            "path": "TerminologyCapabilities.codeSystem.version.filter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.filter.modifierExtension",
            "path": "TerminologyCapabilities.codeSystem.version.filter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.filter.code",
            "path": "TerminologyCapabilities.codeSystem.version.filter.code",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.version.filter.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.filter.op",
            "path": "TerminologyCapabilities.codeSystem.version.filter.op",
            "min": 1,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.version.filter.op",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.property",
            "path": "TerminologyCapabilities.codeSystem.version.property",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.version.property",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSystem.subsumption",
            "path": "TerminologyCapabilities.codeSystem.subsumption",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.codeSystem.subsumption",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion",
            "path": "TerminologyCapabilities.expansion",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.expansion",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.id",
            "path": "TerminologyCapabilities.expansion.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.extension",
            "path": "TerminologyCapabilities.expansion.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.modifierExtension",
            "path": "TerminologyCapabilities.expansion.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.expansion.hierarchical",
            "path": "TerminologyCapabilities.expansion.hierarchical",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.expansion.hierarchical",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.paging",
            "path": "TerminologyCapabilities.expansion.paging",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.expansion.paging",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.incomplete",
            "path": "TerminologyCapabilities.expansion.incomplete",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.expansion.incomplete",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.parameter",
            "path": "TerminologyCapabilities.expansion.parameter",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TerminologyCapabilities.expansion.parameter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.parameter.id",
            "path": "TerminologyCapabilities.expansion.parameter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.parameter.extension",
            "path": "TerminologyCapabilities.expansion.parameter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.parameter.modifierExtension",
            "path": "TerminologyCapabilities.expansion.parameter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.expansion.parameter.name",
            "path": "TerminologyCapabilities.expansion.parameter.name",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.expansion.parameter.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.parameter.documentation",
            "path": "TerminologyCapabilities.expansion.parameter.documentation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.expansion.parameter.documentation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.expansion.textFilter",
            "path": "TerminologyCapabilities.expansion.textFilter",
            "comment": "This documentation should cover things like case sensitivity,  use of punctuation if not ignored, what wild cards are supported (if any), whether text is starts with or contains, and whether word order matters.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.expansion.textFilter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.codeSearch",
            "path": "TerminologyCapabilities.codeSearch",
            "comment": "See notes on the [ValueSet](valueset.html#) resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.codeSearch",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CodeSearchSupport"
                }
              ],
              "strength": "required",
              "description": "The degree to which the server supports the code search parameter on ValueSet, if it is supported.",
              "valueSet": "http://hl7.org/fhir/ValueSet/code-search-support|4.0.1"
            }
          },
          {
            "id": "TerminologyCapabilities.validateCode",
            "path": "TerminologyCapabilities.validateCode",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.validateCode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.validateCode.id",
            "path": "TerminologyCapabilities.validateCode.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.validateCode.extension",
            "path": "TerminologyCapabilities.validateCode.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.validateCode.modifierExtension",
            "path": "TerminologyCapabilities.validateCode.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.validateCode.translations",
            "path": "TerminologyCapabilities.validateCode.translations",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.validateCode.translations",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.translation",
            "path": "TerminologyCapabilities.translation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.translation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.translation.id",
            "path": "TerminologyCapabilities.translation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.translation.extension",
            "path": "TerminologyCapabilities.translation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.translation.modifierExtension",
            "path": "TerminologyCapabilities.translation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.translation.needsMap",
            "path": "TerminologyCapabilities.translation.needsMap",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.translation.needsMap",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.closure",
            "path": "TerminologyCapabilities.closure",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.closure",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.closure.id",
            "path": "TerminologyCapabilities.closure.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.closure.extension",
            "path": "TerminologyCapabilities.closure.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TerminologyCapabilities.closure.modifierExtension",
            "path": "TerminologyCapabilities.closure.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.closure.translation",
            "path": "TerminologyCapabilities.closure.translation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TerminologyCapabilities.closure.translation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "TerminologyCapabilities",
            "path": "TerminologyCapabilities",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "tcp-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              },
              {
                "key": "tcp-3",
                "severity": "error",
                "human": "If kind = instance, implementation must be present and software may be present",
                "expression": "(kind != 'instance') or implementation.exists()",
                "xpath": "not(f:kind/@value='instance') or exists(f:implementation)"
              },
              {
                "key": "tcp-2",
                "severity": "error",
                "human": "A Capability Statement SHALL have at least one of description, software, or implementation element.",
                "expression": "(description.count() + software.count() + implementation.count()) > 0",
                "xpath": "count(f:software | f:implementation | f:description) > 0"
              },
              {
                "key": "tcp-5",
                "severity": "error",
                "human": "If kind = requirements, implementation and software must be absent",
                "expression": "(kind!='requirements') or (implementation.exists().not() and software.exists().not())",
                "xpath": "not(f:kind/@value='instance') or (not(exists(f:implementation)) and not(exists(f:software)))"
              },
              {
                "key": "tcp-4",
                "severity": "error",
                "human": "If kind = capability, implementation must be absent, software must be present",
                "expression": "(kind != 'capability') or (implementation.exists().not() and software.exists())",
                "xpath": " not(f:kind/@value='instance') or (not(exists(f:implementation)) and exists(f:software))"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.url",
            "path": "TerminologyCapabilities.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.version",
            "path": "TerminologyCapabilities.version",
            "comment": "There may be different terminology capabilities instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the terminology capabilities with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.name",
            "path": "TerminologyCapabilities.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.title",
            "path": "TerminologyCapabilities.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.status",
            "path": "TerminologyCapabilities.status",
            "comment": "Allows filtering of terminology capabilitiess that are appropriate for use versus not.This is not intended for use with actual capability statements, but where capability statements are used to describe possible or desired systems.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "TerminologyCapabilities.experimental",
            "path": "TerminologyCapabilities.experimental",
            "comment": "Allows filtering of terminology capabilitiess that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.date",
            "path": "TerminologyCapabilities.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the terminology capabilities. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.publisher",
            "path": "TerminologyCapabilities.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the terminology capabilities is the organization or individual primarily responsible for the maintenance and upkeep of the terminology capabilities. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the terminology capabilities. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.contact",
            "path": "TerminologyCapabilities.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.description",
            "path": "TerminologyCapabilities.description",
            "comment": "This description can be used to capture details such as why the terminology capabilities was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the terminology capabilities as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the terminology capabilities is presumed to be the predominant language in the place the terminology capabilities was created).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": "markdown"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.useContext",
            "path": "TerminologyCapabilities.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.jurisdiction",
            "path": "TerminologyCapabilities.jurisdiction",
            "comment": "It may be possible for the terminology capabilities to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "TerminologyCapabilities.purpose",
            "path": "TerminologyCapabilities.purpose",
            "comment": "This element does not describe the usage of the terminology capabilities. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this terminology capabilities.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.copyright",
            "path": "TerminologyCapabilities.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.kind",
            "path": "TerminologyCapabilities.kind",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "tcp-3",
              "tcp-4",
              "tcp-5"
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CapabilityStatementKind"
                }
              ],
              "strength": "required",
              "description": "How a capability statement is intended to be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/capability-statement-kind|4.0.1"
            }
          },
          {
            "id": "TerminologyCapabilities.software",
            "path": "TerminologyCapabilities.software",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "tcp-2"
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.software.name",
            "path": "TerminologyCapabilities.software.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.software.version",
            "path": "TerminologyCapabilities.software.version",
            "comment": "If possible, a 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
          },
          {
            "id": "TerminologyCapabilities.implementation",
            "path": "TerminologyCapabilities.implementation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "tcp-2",
              "tcp-5"
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.implementation.description",
            "path": "TerminologyCapabilities.implementation.description",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.implementation.url",
            "path": "TerminologyCapabilities.implementation.url",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "url"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.lockedDate",
            "path": "TerminologyCapabilities.lockedDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.codeSystem",
            "path": "TerminologyCapabilities.codeSystem",
            "comment": "The code system - identified by its system URL - may also be declared explicitly as a Code System Resource at /CodeSystem, but it might not be.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "tcp-1",
                "severity": "error",
                "human": "If there is more than one version, a version code must be defined",
                "expression": "version.count() > 1 implies version.all(code.exists())",
                "xpath": "(count(f:version) <= 1) or not(exists(f:version[not(f:code)]))"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.codeSystem.uri",
            "path": "TerminologyCapabilities.codeSystem.uri",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CodeSystem"
                ]
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version",
            "path": "TerminologyCapabilities.codeSystem.version",
            "comment": "Language translations might not be available for all codes.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.code",
            "path": "TerminologyCapabilities.codeSystem.version.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "tcp-1"
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.isDefault",
            "path": "TerminologyCapabilities.codeSystem.version.isDefault",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.compositional",
            "path": "TerminologyCapabilities.codeSystem.version.compositional",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.language",
            "path": "TerminologyCapabilities.codeSystem.version.language",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.filter",
            "path": "TerminologyCapabilities.codeSystem.version.filter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.filter.code",
            "path": "TerminologyCapabilities.codeSystem.version.filter.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.filter.op",
            "path": "TerminologyCapabilities.codeSystem.version.filter.op",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.codeSystem.version.property",
            "path": "TerminologyCapabilities.codeSystem.version.property",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.codeSystem.subsumption",
            "path": "TerminologyCapabilities.codeSystem.subsumption",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.expansion",
            "path": "TerminologyCapabilities.expansion",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.expansion.hierarchical",
            "path": "TerminologyCapabilities.expansion.hierarchical",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.expansion.paging",
            "path": "TerminologyCapabilities.expansion.paging",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.expansion.incomplete",
            "path": "TerminologyCapabilities.expansion.incomplete",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.expansion.parameter",
            "path": "TerminologyCapabilities.expansion.parameter",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.expansion.parameter.name",
            "path": "TerminologyCapabilities.expansion.parameter.name",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.expansion.parameter.documentation",
            "path": "TerminologyCapabilities.expansion.parameter.documentation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.expansion.textFilter",
            "path": "TerminologyCapabilities.expansion.textFilter",
            "comment": "This documentation should cover things like case sensitivity,  use of punctuation if not ignored, what wild cards are supported (if any), whether text is starts with or contains, and whether word order matters.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.codeSearch",
            "path": "TerminologyCapabilities.codeSearch",
            "comment": "See notes on the [ValueSet](valueset.html#) resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "CodeSearchSupport"
                }
              ],
              "strength": "required",
              "description": "The degree to which the server supports the code search parameter on ValueSet, if it is supported.",
              "valueSet": "http://hl7.org/fhir/ValueSet/code-search-support|4.0.1"
            }
          },
          {
            "id": "TerminologyCapabilities.validateCode",
            "path": "TerminologyCapabilities.validateCode",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.validateCode.translations",
            "path": "TerminologyCapabilities.validateCode.translations",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.translation",
            "path": "TerminologyCapabilities.translation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.translation.needsMap",
            "path": "TerminologyCapabilities.translation.needsMap",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.closure",
            "path": "TerminologyCapabilities.closure",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TerminologyCapabilities.closure.translation",
            "path": "TerminologyCapabilities.closure.translation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/TestReport",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "TestReport",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Quality Reporting &amp; Testing"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/TestReport",
      "version": "4.0.1",
      "name": "TestReport",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "TestReport",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "TestReport",
            "path": "TestReport",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestReport",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.id",
            "path": "TestReport.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestReport.meta",
            "path": "TestReport.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestReport.implicitRules",
            "path": "TestReport.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "TestReport.language",
            "path": "TestReport.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "TestReport.text",
            "path": "TestReport.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.contained",
            "path": "TestReport.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.extension",
            "path": "TestReport.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.modifierExtension",
            "path": "TestReport.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "TestReport.identifier",
            "path": "TestReport.identifier",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestReport.name",
            "path": "TestReport.name",
            "comment": "Not expected to be globally unique.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestReport.status",
            "path": "TestReport.status",
            "comment": "The status represents where the execution is currently within the test script execution life cycle.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestReport.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestReportStatus"
                }
              ],
              "strength": "required",
              "description": "The current status of the test report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-status-codes|4.0.1"
            }
          },
          {
            "id": "TestReport.testScript",
            "path": "TestReport.testScript",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestReport.testScript",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/TestScript"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestReport.result",
            "path": "TestReport.result",
            "comment": "The pass and fail result represents a completed test script execution. The pending result represents a test script execution that has not yet started or is currently in progress.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestReport.result",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestReportResult"
                }
              ],
              "strength": "required",
              "description": "The reported execution result.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-result-codes|4.0.1"
            }
          },
          {
            "id": "TestReport.score",
            "path": "TestReport.score",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.score",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestReport.tester",
            "path": "TestReport.tester",
            "comment": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.tester",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestReport.issued",
            "path": "TestReport.issued",
            "comment": "Additional specific dates may be added as extensions.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.issued",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestReport.participant",
            "path": "TestReport.participant",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestReport.participant",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.participant.id",
            "path": "TestReport.participant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.participant.extension",
            "path": "TestReport.participant.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.participant.modifierExtension",
            "path": "TestReport.participant.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestReport.participant.type",
            "path": "TestReport.participant.type",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestReport.participant.type",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestReportParticipantType"
                }
              ],
              "strength": "required",
              "description": "The type of participant.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-participant-type|4.0.1"
            }
          },
          {
            "id": "TestReport.participant.uri",
            "path": "TestReport.participant.uri",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestReport.participant.uri",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.participant.display",
            "path": "TestReport.participant.display",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.participant.display",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup",
            "path": "TestReport.setup",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.setup",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.id",
            "path": "TestReport.setup.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.extension",
            "path": "TestReport.setup.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.modifierExtension",
            "path": "TestReport.setup.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestReport.setup.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SetupAction"
              }
            ],
            "path": "TestReport.setup.action",
            "comment": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "TestReport.setup.action",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "inv-1",
                "severity": "error",
                "human": "Setup action SHALL contain either an operation or assert but not both.",
                "expression": "operation.exists() xor assert.exists()",
                "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.id",
            "path": "TestReport.setup.action.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.extension",
            "path": "TestReport.setup.action.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.modifierExtension",
            "path": "TestReport.setup.action.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestReport.setup.action.operation",
            "path": "TestReport.setup.action.operation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.setup.action.operation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.operation.id",
            "path": "TestReport.setup.action.operation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.operation.extension",
            "path": "TestReport.setup.action.operation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.operation.modifierExtension",
            "path": "TestReport.setup.action.operation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestReport.setup.action.operation.result",
            "path": "TestReport.setup.action.operation.result",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestReport.setup.action.operation.result",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestReportActionResult"
                }
              ],
              "strength": "required",
              "description": "The results of executing an action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-action-result-codes|4.0.1"
            }
          },
          {
            "id": "TestReport.setup.action.operation.message",
            "path": "TestReport.setup.action.operation.message",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.setup.action.operation.message",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.operation.detail",
            "path": "TestReport.setup.action.operation.detail",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.setup.action.operation.detail",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.assert",
            "path": "TestReport.setup.action.assert",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.setup.action.assert",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.assert.id",
            "path": "TestReport.setup.action.assert.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.assert.extension",
            "path": "TestReport.setup.action.assert.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.assert.modifierExtension",
            "path": "TestReport.setup.action.assert.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestReport.setup.action.assert.result",
            "path": "TestReport.setup.action.assert.result",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestReport.setup.action.assert.result",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestReportActionResult"
                }
              ],
              "strength": "required",
              "description": "The results of executing an action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-action-result-codes|4.0.1"
            }
          },
          {
            "id": "TestReport.setup.action.assert.message",
            "path": "TestReport.setup.action.assert.message",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.setup.action.assert.message",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.setup.action.assert.detail",
            "path": "TestReport.setup.action.assert.detail",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.setup.action.assert.detail",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.test",
            "path": "TestReport.test",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestReport.test",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.test.id",
            "path": "TestReport.test.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.test.extension",
            "path": "TestReport.test.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.test.modifierExtension",
            "path": "TestReport.test.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestReport.test.name",
            "path": "TestReport.test.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.test.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.test.description",
            "path": "TestReport.test.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.test.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.test.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TestAction"
              }
            ],
            "path": "TestReport.test.action",
            "comment": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "TestReport.test.action",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "inv-2",
                "severity": "error",
                "human": "Test action SHALL contain either an operation or assert but not both.",
                "expression": "operation.exists() xor assert.exists()",
                "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.test.action.id",
            "path": "TestReport.test.action.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.test.action.extension",
            "path": "TestReport.test.action.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.test.action.modifierExtension",
            "path": "TestReport.test.action.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestReport.test.action.operation",
            "path": "TestReport.test.action.operation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.test.action.operation",
              "min": 0,
              "max": "1"
            },
            "contentReference": "#TestReport.setup.action.operation",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.test.action.assert",
            "path": "TestReport.test.action.assert",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.test.action.assert",
              "min": 0,
              "max": "1"
            },
            "contentReference": "#TestReport.setup.action.assert",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.teardown",
            "path": "TestReport.teardown",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestReport.teardown",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.teardown.id",
            "path": "TestReport.teardown.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.teardown.extension",
            "path": "TestReport.teardown.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.teardown.modifierExtension",
            "path": "TestReport.teardown.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestReport.teardown.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TeardownAction"
              }
            ],
            "path": "TestReport.teardown.action",
            "comment": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "TestReport.teardown.action",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.teardown.action.id",
            "path": "TestReport.teardown.action.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.teardown.action.extension",
            "path": "TestReport.teardown.action.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestReport.teardown.action.modifierExtension",
            "path": "TestReport.teardown.action.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestReport.teardown.action.operation",
            "path": "TestReport.teardown.action.operation",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestReport.teardown.action.operation",
              "min": 1,
              "max": "1"
            },
            "contentReference": "#TestReport.setup.action.operation",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "TestReport",
            "path": "TestReport",
            "min": 0,
            "max": "*"
          },
          {
            "id": "TestReport.identifier",
            "path": "TestReport.identifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestReport.name",
            "path": "TestReport.name",
            "comment": "Not expected to be globally unique.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestReport.status",
            "path": "TestReport.status",
            "comment": "The status represents where the execution is currently within the test script execution life cycle.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestReportStatus"
                }
              ],
              "strength": "required",
              "description": "The current status of the test report.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-status-codes|4.0.1"
            }
          },
          {
            "id": "TestReport.testScript",
            "path": "TestReport.testScript",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/TestScript"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestReport.result",
            "path": "TestReport.result",
            "comment": "The pass and fail result represents a completed test script execution. The pending result represents a test script execution that has not yet started or is currently in progress.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestReportResult"
                }
              ],
              "strength": "required",
              "description": "The reported execution result.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-result-codes|4.0.1"
            }
          },
          {
            "id": "TestReport.score",
            "path": "TestReport.score",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestReport.tester",
            "path": "TestReport.tester",
            "comment": "Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestReport.issued",
            "path": "TestReport.issued",
            "comment": "Additional specific dates may be added as extensions.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestReport.participant",
            "path": "TestReport.participant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestReport.participant.type",
            "path": "TestReport.participant.type",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestReportParticipantType"
                }
              ],
              "strength": "required",
              "description": "The type of participant.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-participant-type|4.0.1"
            }
          },
          {
            "id": "TestReport.participant.uri",
            "path": "TestReport.participant.uri",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "TestReport.participant.display",
            "path": "TestReport.participant.display",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestReport.setup",
            "path": "TestReport.setup",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestReport.setup.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SetupAction"
              }
            ],
            "path": "TestReport.setup.action",
            "comment": "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": [
              {
                "key": "inv-1",
                "severity": "error",
                "human": "Setup action SHALL contain either an operation or assert but not both.",
                "expression": "operation.exists() xor assert.exists()",
                "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
              }
            ]
          },
          {
            "id": "TestReport.setup.action.operation",
            "path": "TestReport.setup.action.operation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestReport.setup.action.operation.result",
            "path": "TestReport.setup.action.operation.result",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestReportActionResult"
                }
              ],
              "strength": "required",
              "description": "The results of executing an action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-action-result-codes|4.0.1"
            }
          },
          {
            "id": "TestReport.setup.action.operation.message",
            "path": "TestReport.setup.action.operation.message",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "TestReport.setup.action.operation.detail",
            "path": "TestReport.setup.action.operation.detail",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "TestReport.setup.action.assert",
            "path": "TestReport.setup.action.assert",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestReport.setup.action.assert.result",
            "path": "TestReport.setup.action.assert.result",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestReportActionResult"
                }
              ],
              "strength": "required",
              "description": "The results of executing an action.",
              "valueSet": "http://hl7.org/fhir/ValueSet/report-action-result-codes|4.0.1"
            }
          },
          {
            "id": "TestReport.setup.action.assert.message",
            "path": "TestReport.setup.action.assert.message",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "TestReport.setup.action.assert.detail",
            "path": "TestReport.setup.action.assert.detail",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestReport.test",
            "path": "TestReport.test",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestReport.test.name",
            "path": "TestReport.test.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestReport.test.description",
            "path": "TestReport.test.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestReport.test.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TestAction"
              }
            ],
            "path": "TestReport.test.action",
            "comment": "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": [
              {
                "key": "inv-2",
                "severity": "error",
                "human": "Test action SHALL contain either an operation or assert but not both.",
                "expression": "operation.exists() xor assert.exists()",
                "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
              }
            ]
          },
          {
            "id": "TestReport.test.action.operation",
            "path": "TestReport.test.action.operation",
            "min": 0,
            "max": "1",
            "contentReference": "#TestReport.setup.action.operation"
          },
          {
            "id": "TestReport.test.action.assert",
            "path": "TestReport.test.action.assert",
            "min": 0,
            "max": "1",
            "contentReference": "#TestReport.setup.action.assert"
          },
          {
            "id": "TestReport.teardown",
            "path": "TestReport.teardown",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestReport.teardown.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TeardownAction"
              }
            ],
            "path": "TestReport.teardown.action",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestReport.teardown.action.operation",
            "path": "TestReport.teardown.action.operation",
            "min": 1,
            "max": "1",
            "contentReference": "#TestReport.setup.action.operation"
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/TestScript",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "TestScript",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Specialized.Quality Reporting &amp; Testing"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/TestScript",
      "version": "4.0.1",
      "name": "TestScript",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "TestScript",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "TestScript",
            "path": "TestScript",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "tst-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.id",
            "path": "TestScript.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.meta",
            "path": "TestScript.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.implicitRules",
            "path": "TestScript.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "TestScript.language",
            "path": "TestScript.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "TestScript.text",
            "path": "TestScript.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.contained",
            "path": "TestScript.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.extension",
            "path": "TestScript.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.modifierExtension",
            "path": "TestScript.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "TestScript.url",
            "path": "TestScript.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.identifier",
            "path": "TestScript.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this test script outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.version",
            "path": "TestScript.version",
            "comment": "There may be different test script instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the test script with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.name",
            "path": "TestScript.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.title",
            "path": "TestScript.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.status",
            "path": "TestScript.status",
            "comment": "Allows filtering of test scripts that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "TestScript.experimental",
            "path": "TestScript.experimental",
            "comment": "Allows filtering of test scripts that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.date",
            "path": "TestScript.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the test script. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.publisher",
            "path": "TestScript.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the test script is the organization or individual primarily responsible for the maintenance and upkeep of the test script. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the test script. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.contact",
            "path": "TestScript.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.description",
            "path": "TestScript.description",
            "comment": "This description can be used to capture details such as why the test script was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the test script as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the test script is presumed to be the predominant language in the place the test script was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.useContext",
            "path": "TestScript.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "TestScript.jurisdiction",
            "path": "TestScript.jurisdiction",
            "comment": "It may be possible for the test script to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "TestScript.purpose",
            "path": "TestScript.purpose",
            "comment": "This element does not describe the usage of the test script. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this test script.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.copyright",
            "path": "TestScript.copyright",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.origin",
            "path": "TestScript.origin",
            "comment": "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": "*",
            "base": {
              "path": "TestScript.origin",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.origin.id",
            "path": "TestScript.origin.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.origin.extension",
            "path": "TestScript.origin.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.origin.modifierExtension",
            "path": "TestScript.origin.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.origin.index",
            "path": "TestScript.origin.index",
            "comment": "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 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",
            "base": {
              "path": "TestScript.origin.index",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.origin.profile",
            "path": "TestScript.origin.profile",
            "comment": "Must be a \"sender\"/\"client\" profile.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.origin.profile",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "meaningWhenMissing": "FHIR-Client",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestScriptProfileOriginType"
                }
              ],
              "strength": "extensible",
              "description": "The type of origin profile the test system supports.",
              "valueSet": "http://hl7.org/fhir/ValueSet/testscript-profile-origin-types"
            }
          },
          {
            "id": "TestScript.destination",
            "path": "TestScript.destination",
            "comment": "The purpose of this element is to define the profile of a 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": "*",
            "base": {
              "path": "TestScript.destination",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.destination.id",
            "path": "TestScript.destination.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.destination.extension",
            "path": "TestScript.destination.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.destination.modifierExtension",
            "path": "TestScript.destination.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.destination.index",
            "path": "TestScript.destination.index",
            "comment": "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 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",
            "base": {
              "path": "TestScript.destination.index",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.destination.profile",
            "path": "TestScript.destination.profile",
            "comment": "Must be a \"receiver\"/\"server\" profile.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.destination.profile",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "meaningWhenMissing": "FHIR-Server",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestScriptProfileDestinationType"
                }
              ],
              "strength": "extensible",
              "description": "The type of destination profile the test system supports.",
              "valueSet": "http://hl7.org/fhir/ValueSet/testscript-profile-destination-types"
            }
          },
          {
            "id": "TestScript.metadata",
            "path": "TestScript.metadata",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.metadata",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "tst-4",
                "severity": "error",
                "human": "TestScript metadata capability SHALL contain required or validated or both.",
                "expression": "capability.required.exists() or capability.validated.exists()",
                "xpath": "f:capability/f:required or f:capability/f:validated or (f:capability/f:required and f:capability/f:validated)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.id",
            "path": "TestScript.metadata.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.extension",
            "path": "TestScript.metadata.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.modifierExtension",
            "path": "TestScript.metadata.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.metadata.link",
            "path": "TestScript.metadata.link",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript.metadata.link",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.link.id",
            "path": "TestScript.metadata.link.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.link.extension",
            "path": "TestScript.metadata.link.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.link.modifierExtension",
            "path": "TestScript.metadata.link.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.metadata.link.url",
            "path": "TestScript.metadata.link.url",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.metadata.link.url",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.link.description",
            "path": "TestScript.metadata.link.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.metadata.link.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.capability",
            "path": "TestScript.metadata.capability",
            "comment": "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.  They 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": "*",
            "base": {
              "path": "TestScript.metadata.capability",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.capability.id",
            "path": "TestScript.metadata.capability.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.capability.extension",
            "path": "TestScript.metadata.capability.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.capability.modifierExtension",
            "path": "TestScript.metadata.capability.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.metadata.capability.required",
            "path": "TestScript.metadata.capability.required",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.metadata.capability.required",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.capability.validated",
            "path": "TestScript.metadata.capability.validated",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.metadata.capability.validated",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.capability.description",
            "path": "TestScript.metadata.capability.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.metadata.capability.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.capability.origin",
            "path": "TestScript.metadata.capability.origin",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript.metadata.capability.origin",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.capability.destination",
            "path": "TestScript.metadata.capability.destination",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.metadata.capability.destination",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.capability.link",
            "path": "TestScript.metadata.capability.link",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript.metadata.capability.link",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.metadata.capability.capabilities",
            "path": "TestScript.metadata.capability.capabilities",
            "comment": "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",
            "base": {
              "path": "TestScript.metadata.capability.capabilities",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CapabilityStatement"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.fixture",
            "path": "TestScript.fixture",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript.fixture",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.fixture.id",
            "path": "TestScript.fixture.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.fixture.extension",
            "path": "TestScript.fixture.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.fixture.modifierExtension",
            "path": "TestScript.fixture.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.fixture.autocreate",
            "path": "TestScript.fixture.autocreate",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.fixture.autocreate",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.fixture.autodelete",
            "path": "TestScript.fixture.autodelete",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.fixture.autodelete",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.fixture.resource",
            "path": "TestScript.fixture.resource",
            "comment": "See http://build.fhir.org/resourcelist.html for complete list of resource types.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.fixture.resource",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.profile",
            "path": "TestScript.profile",
            "comment": "See http://build.fhir.org/resourcelist.html for complete list of resource types.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript.profile",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable",
            "path": "TestScript.variable",
            "comment": "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 an 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": "*",
            "base": {
              "path": "TestScript.variable",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "tst-3",
                "severity": "error",
                "human": "Variable can only contain one of expression, headerField or path.",
                "expression": "expression.empty() or headerField.empty() or path.empty()",
                "xpath": "not(f:expression and f:headerField and f:path)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable.id",
            "path": "TestScript.variable.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable.extension",
            "path": "TestScript.variable.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable.modifierExtension",
            "path": "TestScript.variable.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.variable.name",
            "path": "TestScript.variable.name",
            "comment": "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",
            "base": {
              "path": "TestScript.variable.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable.defaultValue",
            "path": "TestScript.variable.defaultValue",
            "comment": "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",
            "base": {
              "path": "TestScript.variable.defaultValue",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable.description",
            "path": "TestScript.variable.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.variable.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable.expression",
            "path": "TestScript.variable.expression",
            "comment": "If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define any combination of expression, headerField and path.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.variable.expression",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable.headerField",
            "path": "TestScript.variable.headerField",
            "comment": "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",
            "base": {
              "path": "TestScript.variable.headerField",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable.hint",
            "path": "TestScript.variable.hint",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.variable.hint",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable.path",
            "path": "TestScript.variable.path",
            "comment": "If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define any combination of expression, headerField and path.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.variable.path",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.variable.sourceId",
            "path": "TestScript.variable.sourceId",
            "comment": "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",
            "base": {
              "path": "TestScript.variable.sourceId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup",
            "path": "TestScript.setup",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.id",
            "path": "TestScript.setup.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.extension",
            "path": "TestScript.setup.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.modifierExtension",
            "path": "TestScript.setup.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.setup.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SetupAction"
              }
            ],
            "path": "TestScript.setup.action",
            "comment": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "TestScript.setup.action",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "tst-1",
                "severity": "error",
                "human": "Setup action SHALL contain either an operation or assert but not both.",
                "expression": "operation.exists() xor assert.exists()",
                "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.id",
            "path": "TestScript.setup.action.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.extension",
            "path": "TestScript.setup.action.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.modifierExtension",
            "path": "TestScript.setup.action.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.setup.action.operation",
            "path": "TestScript.setup.action.operation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "tst-7",
                "severity": "error",
                "human": "Setup operation SHALL contain either sourceId or targetId or params or url.",
                "expression": "sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history'))",
                "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='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.id",
            "path": "TestScript.setup.action.operation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.extension",
            "path": "TestScript.setup.action.operation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.modifierExtension",
            "path": "TestScript.setup.action.operation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.setup.action.operation.type",
            "path": "TestScript.setup.action.operation.type",
            "comment": "See http://build.fhir.org/http.html for list of server interactions.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.type",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestScriptOperationCode"
                }
              ],
              "strength": "extensible",
              "description": "The allowable operation code types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/testscript-operation-codes"
            }
          },
          {
            "id": "TestScript.setup.action.operation.resource",
            "path": "TestScript.setup.action.operation.resource",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.operation.resource",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRDefinedType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/defined-types|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.operation.label",
            "path": "TestScript.setup.action.operation.label",
            "comment": "This has no impact on the verification itself.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.label",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.description",
            "path": "TestScript.setup.action.operation.description",
            "comment": "This has no impact on the verification itself.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.accept",
            "path": "TestScript.setup.action.operation.accept",
            "comment": "If this is specified, then test engine shall set the 'Accept' header to the corresponding value.  If you'd like to explicitly set the 'Accept' to some other value then use the 'requestHeader' element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.accept",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "application/fhir+xml"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.operation.contentType",
            "path": "TestScript.setup.action.operation.contentType",
            "comment": "If this is specified, then test engine shall set the 'Content-Type' header to the corresponding value.  If you'd like to explicitly set the 'Content-Type' to some other value then use the 'requestHeader' element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.contentType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "application/fhir+xml"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.operation.destination",
            "path": "TestScript.setup.action.operation.destination",
            "comment": "If multiple TestScript.destination elements are defined and operation.destination is undefined, test engine will report an error as it cannot determine what destination to use for the exchange.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.destination",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.encodeRequestUrl",
            "path": "TestScript.setup.action.operation.encodeRequestUrl",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.encodeRequestUrl",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.method",
            "path": "TestScript.setup.action.operation.method",
            "comment": "The primary purpose of the explicit HTTP method is support of  HTTP POST method invocation of the FHIR search. Other uses will include support of negative testing.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.method",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestScriptRequestMethodCode"
                }
              ],
              "strength": "required",
              "description": "The allowable request method or HTTP operation codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/http-operations|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.operation.origin",
            "path": "TestScript.setup.action.operation.origin",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.operation.origin",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.params",
            "path": "TestScript.setup.action.operation.params",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.operation.params",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.requestHeader",
            "path": "TestScript.setup.action.operation.requestHeader",
            "comment": "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://build.fhir.org/http.html#2.1.0.5.1 - \"If-Match\" header.  See http://build.fhir.org/http.html#2.1.0.11 - Conditional Create using \"If-None-Exist\".  See http://build.fhir.org/http.html#2.1.0.13.1 - Invalid \"Content-Type\" header for negative testing. - etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript.setup.action.operation.requestHeader",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.requestHeader.id",
            "path": "TestScript.setup.action.operation.requestHeader.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.requestHeader.extension",
            "path": "TestScript.setup.action.operation.requestHeader.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.requestHeader.modifierExtension",
            "path": "TestScript.setup.action.operation.requestHeader.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.setup.action.operation.requestHeader.field",
            "path": "TestScript.setup.action.operation.requestHeader.field",
            "comment": "If header element is specified, then field is required.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.requestHeader.field",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.requestHeader.value",
            "path": "TestScript.setup.action.operation.requestHeader.value",
            "comment": "If header element is specified, then value is required.  No conversions will be done by the test engine e.g. \"xml\" to \"application/fhir+xml\".  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",
            "base": {
              "path": "TestScript.setup.action.operation.requestHeader.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.requestId",
            "path": "TestScript.setup.action.operation.requestId",
            "comment": "If a requestId is supplied, then the resulting request (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by \"requestId\".  If requestId is not specified, it is the test engine's responsibility to store the request and use it as the requestId in subsequent assertions when assertion path and/or headerField is specified, direction is equal to request, and the requestId in not specified.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.requestId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.responseId",
            "path": "TestScript.setup.action.operation.responseId",
            "comment": "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 the responseId in subsequent assertions when assertion path and/or headerField is specified and the responseId is not specified.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.responseId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.sourceId",
            "path": "TestScript.setup.action.operation.sourceId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.operation.sourceId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.targetId",
            "path": "TestScript.setup.action.operation.targetId",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.operation.targetId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.operation.url",
            "path": "TestScript.setup.action.operation.url",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.operation.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert",
            "path": "TestScript.setup.action.assert",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.assert",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "tst-5",
                "severity": "error",
                "human": "Only a single assertion SHALL be present within setup action assert element.",
                "expression": "extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count()  + validateProfileId.count() <=1)",
                "xpath": "count(f:contentType) + count(f:expression) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:requestMethod) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:rule) + count(f:ruleset) + count(f:validateProfileId)  <=1"
              },
              {
                "key": "tst-10",
                "severity": "error",
                "human": "Setup action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither.",
                "expression": "compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())",
                "xpath": "(f:compareToSourceId and f:compareToSourceExpression) or (f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourceExpression or f:compareToSourcePath)"
              },
              {
                "key": "tst-12",
                "severity": "error",
                "human": "Setup action assert response and responseCode SHALL be empty when direction equals request",
                "expression": "(response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'",
                "xpath": "((count(f:response) + count(f:responseCode)) = 0 and (f:direction/@value='request')) or (count(f:direction) = 0) or (f:direction/@value='response')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.id",
            "path": "TestScript.setup.action.assert.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.extension",
            "path": "TestScript.setup.action.assert.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.modifierExtension",
            "path": "TestScript.setup.action.assert.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.setup.action.assert.label",
            "path": "TestScript.setup.action.assert.label",
            "comment": "This has no impact on the verification itself.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.label",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.description",
            "path": "TestScript.setup.action.assert.description",
            "comment": "This has no impact on the verification itself.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.direction",
            "path": "TestScript.setup.action.assert.direction",
            "comment": "If the direction is specified as \"response\" (the default), then the processing of this assert is against the received response message. If the direction is specified as \"request\", then the processing of this assert is against the sent request message.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.direction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AssertionDirectionType"
                }
              ],
              "strength": "required",
              "description": "The type of direction to use for assertion.",
              "valueSet": "http://hl7.org/fhir/ValueSet/assert-direction-codes|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.compareToSourceId",
            "path": "TestScript.setup.action.assert.compareToSourceId",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.compareToSourceId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.compareToSourceExpression",
            "path": "TestScript.setup.action.assert.compareToSourceExpression",
            "comment": "Thefhirpath 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",
            "base": {
              "path": "TestScript.setup.action.assert.compareToSourceExpression",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.compareToSourcePath",
            "path": "TestScript.setup.action.assert.compareToSourcePath",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.assert.compareToSourcePath",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.contentType",
            "path": "TestScript.setup.action.assert.contentType",
            "comment": "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 you'd like to have more control over the string, then use 'assert.headerField' instead.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.contentType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "application/fhir+xml"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.expression",
            "path": "TestScript.setup.action.assert.expression",
            "comment": "If both \"expression\" and a \"fixtureId\" are specified, then the expression will be evaluated against the request or response body mapped to the fixtureId.  If \"expression\" is specified and a \"fixtureId\" is not, then the expression will be evaluated against the response body of the last operation.  Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.expression",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.headerField",
            "path": "TestScript.setup.action.assert.headerField",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.assert.headerField",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.minimumId",
            "path": "TestScript.setup.action.assert.minimumId",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.assert.minimumId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.navigationLinks",
            "path": "TestScript.setup.action.assert.navigationLinks",
            "comment": "Asserts that the Bundle contains first, last, and next links.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.navigationLinks",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.operator",
            "path": "TestScript.setup.action.assert.operator",
            "comment": "Operators are useful 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",
            "base": {
              "path": "TestScript.setup.action.assert.operator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AssertionOperatorType"
                }
              ],
              "strength": "required",
              "description": "The type of operator to use for assertion.",
              "valueSet": "http://hl7.org/fhir/ValueSet/assert-operator-codes|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.path",
            "path": "TestScript.setup.action.assert.path",
            "comment": "If both \"path\" and a \"fixtureId\" are specified, then the path will be evaluated against the request or response body mapped to the fixtureId.  If \"path\" is specified and a \"fixtureId\" is not, then the path will be evaluated against the response body of the last operation.  Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.path",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.requestMethod",
            "path": "TestScript.setup.action.assert.requestMethod",
            "comment": "If \"requestMethod\" is specified then it will be used in place of \"value\". The \"requestMethod\" will evaluate against the last operation's request HTTP operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.requestMethod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestScriptRequestMethodCode"
                }
              ],
              "strength": "required",
              "description": "The allowable request method or HTTP operation codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/http-operations|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.requestURL",
            "path": "TestScript.setup.action.assert.requestURL",
            "comment": "If \"requestURL\" is specified then it will be used in place of \"value\". The \"requestURL\" will evaluate against the last operation's full request URL path string.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.requestURL",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.resource",
            "path": "TestScript.setup.action.assert.resource",
            "comment": "This will be expected resource type in response body e.g. in read, vread, search, etc.  See http://build.fhir.org/resourcelist.html for complete list of resource types; e.g. <assert > <resourceType value=\"Patient\" </assert>.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.resource",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRDefinedType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/defined-types|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.response",
            "path": "TestScript.setup.action.assert.response",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.assert.response",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AssertionResponseTypes"
                }
              ],
              "strength": "required",
              "description": "The type of response code to use for assertion.",
              "valueSet": "http://hl7.org/fhir/ValueSet/assert-response-code-types|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.responseCode",
            "path": "TestScript.setup.action.assert.responseCode",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.assert.responseCode",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.sourceId",
            "path": "TestScript.setup.action.assert.sourceId",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.assert.sourceId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.validateProfileId",
            "path": "TestScript.setup.action.assert.validateProfileId",
            "comment": "The ID of a Profile fixture. Asserts that the response is valid according to the Profile specified by validateProfileId.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.validateProfileId",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.value",
            "path": "TestScript.setup.action.assert.value",
            "comment": "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",
            "base": {
              "path": "TestScript.setup.action.assert.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.setup.action.assert.warningOnly",
            "path": "TestScript.setup.action.assert.warningOnly",
            "comment": "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": 1,
            "max": "1",
            "base": {
              "path": "TestScript.setup.action.assert.warningOnly",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.test",
            "path": "TestScript.test",
            "min": 0,
            "max": "*",
            "base": {
              "path": "TestScript.test",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.test.id",
            "path": "TestScript.test.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.test.extension",
            "path": "TestScript.test.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.test.modifierExtension",
            "path": "TestScript.test.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.test.name",
            "path": "TestScript.test.name",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.test.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.test.description",
            "path": "TestScript.test.description",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.test.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.test.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TestAction"
              }
            ],
            "path": "TestScript.test.action",
            "comment": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "TestScript.test.action",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "tst-2",
                "severity": "error",
                "human": "Test action SHALL contain either an operation or assert but not both.",
                "expression": "operation.exists() xor assert.exists()",
                "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.test.action.id",
            "path": "TestScript.test.action.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.test.action.extension",
            "path": "TestScript.test.action.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.test.action.modifierExtension",
            "path": "TestScript.test.action.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.test.action.operation",
            "path": "TestScript.test.action.operation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.test.action.operation",
              "min": 0,
              "max": "1"
            },
            "contentReference": "#TestScript.setup.action.operation",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "tst-8",
                "severity": "error",
                "human": "Test operation SHALL contain either sourceId or targetId or params or url.",
                "expression": "sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))",
                "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='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.test.action.assert",
            "path": "TestScript.test.action.assert",
            "comment": "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",
            "base": {
              "path": "TestScript.test.action.assert",
              "min": 0,
              "max": "1"
            },
            "contentReference": "#TestScript.setup.action.assert",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "tst-6",
                "severity": "error",
                "human": "Only a single assertion SHALL be present within test action assert element.",
                "expression": "extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <=1)",
                "xpath": "count(f:contentType) + count(f:expression) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:requestMethod) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:rule) + count(f:ruleset) + count(f:validateProfileId)  <=1"
              },
              {
                "key": "tst-11",
                "severity": "error",
                "human": "Test action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither.",
                "expression": "compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())",
                "xpath": "(f:compareToSourceId and f:compareToSourceExpression) or (f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourceExpression or f:compareToSourcePath)"
              },
              {
                "key": "tst-13",
                "severity": "error",
                "human": "Test action assert response and response and responseCode SHALL be empty when direction equals request",
                "expression": "(response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'",
                "xpath": "((count(f:response) + count(f:responseCode)) = 0 and (f:direction/@value='request')) or (count(f:direction) = 0) or (f:direction/@value='response')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.teardown",
            "path": "TestScript.teardown",
            "min": 0,
            "max": "1",
            "base": {
              "path": "TestScript.teardown",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.teardown.id",
            "path": "TestScript.teardown.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.teardown.extension",
            "path": "TestScript.teardown.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.teardown.modifierExtension",
            "path": "TestScript.teardown.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.teardown.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TeardownAction"
              }
            ],
            "path": "TestScript.teardown.action",
            "comment": "An action should contain either an operation or an assertion but not both.  It can contain any number of variables.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "TestScript.teardown.action",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.teardown.action.id",
            "path": "TestScript.teardown.action.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.teardown.action.extension",
            "path": "TestScript.teardown.action.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "TestScript.teardown.action.modifierExtension",
            "path": "TestScript.teardown.action.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "TestScript.teardown.action.operation",
            "path": "TestScript.teardown.action.operation",
            "min": 1,
            "max": "1",
            "base": {
              "path": "TestScript.teardown.action.operation",
              "min": 1,
              "max": "1"
            },
            "contentReference": "#TestScript.setup.action.operation",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "tst-9",
                "severity": "error",
                "human": "Teardown operation SHALL contain either sourceId or targetId or params or url.",
                "expression": "sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))",
                "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='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "TestScript",
            "path": "TestScript",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "tst-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "TestScript.url",
            "path": "TestScript.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestScript.identifier",
            "path": "TestScript.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this test script outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestScript.version",
            "path": "TestScript.version",
            "comment": "There may be different test script instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the test script with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestScript.name",
            "path": "TestScript.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "TestScript.title",
            "path": "TestScript.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestScript.status",
            "path": "TestScript.status",
            "comment": "Allows filtering of test scripts that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "TestScript.experimental",
            "path": "TestScript.experimental",
            "comment": "Allows filtering of test scripts that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestScript.date",
            "path": "TestScript.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the test script. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestScript.publisher",
            "path": "TestScript.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the test script is the organization or individual primarily responsible for the maintenance and upkeep of the test script. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the test script. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestScript.contact",
            "path": "TestScript.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestScript.description",
            "path": "TestScript.description",
            "comment": "This description can be used to capture details such as why the test script was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the test script as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the test script is presumed to be the predominant language in the place the test script was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "TestScript.useContext",
            "path": "TestScript.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "TestScript.jurisdiction",
            "path": "TestScript.jurisdiction",
            "comment": "It may be possible for the test script to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "TestScript.purpose",
            "path": "TestScript.purpose",
            "comment": "This element does not describe the usage of the test script. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this test script.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "TestScript.copyright",
            "path": "TestScript.copyright",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "TestScript.origin",
            "path": "TestScript.origin",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.origin.index",
            "path": "TestScript.origin.index",
            "comment": "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 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"
              }
            ]
          },
          {
            "id": "TestScript.origin.profile",
            "path": "TestScript.origin.profile",
            "comment": "Must be a \"sender\"/\"client\" profile.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "meaningWhenMissing": "FHIR-Client",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestScriptProfileOriginType"
                }
              ],
              "strength": "extensible",
              "description": "The type of origin profile the test system supports.",
              "valueSet": "http://hl7.org/fhir/ValueSet/testscript-profile-origin-types"
            }
          },
          {
            "id": "TestScript.destination",
            "path": "TestScript.destination",
            "comment": "The purpose of this element is to define the profile of a 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"
              }
            ]
          },
          {
            "id": "TestScript.destination.index",
            "path": "TestScript.destination.index",
            "comment": "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 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"
              }
            ]
          },
          {
            "id": "TestScript.destination.profile",
            "path": "TestScript.destination.profile",
            "comment": "Must be a \"receiver\"/\"server\" profile.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "meaningWhenMissing": "FHIR-Server",
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestScriptProfileDestinationType"
                }
              ],
              "strength": "extensible",
              "description": "The type of destination profile the test system supports.",
              "valueSet": "http://hl7.org/fhir/ValueSet/testscript-profile-destination-types"
            }
          },
          {
            "id": "TestScript.metadata",
            "path": "TestScript.metadata",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "tst-4",
                "severity": "error",
                "human": "TestScript metadata capability SHALL contain required or validated or both.",
                "expression": "capability.required.exists() or capability.validated.exists()",
                "xpath": "f:capability/f:required or f:capability/f:validated or (f:capability/f:required and f:capability/f:validated)"
              }
            ]
          },
          {
            "id": "TestScript.metadata.link",
            "path": "TestScript.metadata.link",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestScript.metadata.link.url",
            "path": "TestScript.metadata.link.url",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "TestScript.metadata.link.description",
            "path": "TestScript.metadata.link.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.metadata.capability",
            "path": "TestScript.metadata.capability",
            "comment": "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.  They 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"
              }
            ]
          },
          {
            "id": "TestScript.metadata.capability.required",
            "path": "TestScript.metadata.capability.required",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TestScript.metadata.capability.validated",
            "path": "TestScript.metadata.capability.validated",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TestScript.metadata.capability.description",
            "path": "TestScript.metadata.capability.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.metadata.capability.origin",
            "path": "TestScript.metadata.capability.origin",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "TestScript.metadata.capability.destination",
            "path": "TestScript.metadata.capability.destination",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "TestScript.metadata.capability.link",
            "path": "TestScript.metadata.capability.link",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "TestScript.metadata.capability.capabilities",
            "path": "TestScript.metadata.capability.capabilities",
            "comment": "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": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/CapabilityStatement"
                ]
              }
            ]
          },
          {
            "id": "TestScript.fixture",
            "path": "TestScript.fixture",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestScript.fixture.autocreate",
            "path": "TestScript.fixture.autocreate",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TestScript.fixture.autodelete",
            "path": "TestScript.fixture.autodelete",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TestScript.fixture.resource",
            "path": "TestScript.fixture.resource",
            "comment": "See http://build.fhir.org/resourcelist.html for complete list of resource types.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "TestScript.profile",
            "path": "TestScript.profile",
            "comment": "See http://build.fhir.org/resourcelist.html for complete list of resource types.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ]
          },
          {
            "id": "TestScript.variable",
            "path": "TestScript.variable",
            "comment": "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 an 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": [
              {
                "key": "tst-3",
                "severity": "error",
                "human": "Variable can only contain one of expression, headerField or path.",
                "expression": "expression.empty() or headerField.empty() or path.empty()",
                "xpath": "not(f:expression and f:headerField and f:path)"
              }
            ]
          },
          {
            "id": "TestScript.variable.name",
            "path": "TestScript.variable.name",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.variable.defaultValue",
            "path": "TestScript.variable.defaultValue",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.variable.description",
            "path": "TestScript.variable.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.variable.expression",
            "path": "TestScript.variable.expression",
            "comment": "If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define any combination of expression, headerField and path.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.variable.headerField",
            "path": "TestScript.variable.headerField",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.variable.hint",
            "path": "TestScript.variable.hint",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.variable.path",
            "path": "TestScript.variable.path",
            "comment": "If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define any combination of expression, headerField and path.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.variable.sourceId",
            "path": "TestScript.variable.sourceId",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup",
            "path": "TestScript.setup",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestScript.setup.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "SetupAction"
              }
            ],
            "path": "TestScript.setup.action",
            "comment": "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": [
              {
                "key": "tst-1",
                "severity": "error",
                "human": "Setup action SHALL contain either an operation or assert but not both.",
                "expression": "operation.exists() xor assert.exists()",
                "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation",
            "path": "TestScript.setup.action.operation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "tst-7",
                "severity": "error",
                "human": "Setup operation SHALL contain either sourceId or targetId or params or url.",
                "expression": "sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history'))",
                "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='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.type",
            "path": "TestScript.setup.action.operation.type",
            "comment": "See http://build.fhir.org/http.html for list of server interactions.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestScriptOperationCode"
                }
              ],
              "strength": "extensible",
              "description": "The allowable operation code types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/testscript-operation-codes"
            }
          },
          {
            "id": "TestScript.setup.action.operation.resource",
            "path": "TestScript.setup.action.operation.resource",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRDefinedType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/defined-types|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.operation.label",
            "path": "TestScript.setup.action.operation.label",
            "comment": "This has no impact on the verification itself.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.description",
            "path": "TestScript.setup.action.operation.description",
            "comment": "This has no impact on the verification itself.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.accept",
            "path": "TestScript.setup.action.operation.accept",
            "comment": "If this is specified, then test engine shall set the 'Accept' header to the corresponding value.  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"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "application/fhir+xml"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.operation.contentType",
            "path": "TestScript.setup.action.operation.contentType",
            "comment": "If this is specified, then test engine shall set the 'Content-Type' header to the corresponding value.  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"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "application/fhir+xml"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.operation.destination",
            "path": "TestScript.setup.action.operation.destination",
            "comment": "If multiple TestScript.destination elements are defined and operation.destination is undefined, test engine will report an error as it cannot determine what destination to use for the exchange.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.encodeRequestUrl",
            "path": "TestScript.setup.action.operation.encodeRequestUrl",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.method",
            "path": "TestScript.setup.action.operation.method",
            "comment": "The primary purpose of the explicit HTTP method is support of  HTTP POST method invocation of the FHIR search. Other uses will include support of negative testing.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestScriptRequestMethodCode"
                }
              ],
              "strength": "required",
              "description": "The allowable request method or HTTP operation codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/http-operations|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.operation.origin",
            "path": "TestScript.setup.action.operation.origin",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.params",
            "path": "TestScript.setup.action.operation.params",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.requestHeader",
            "path": "TestScript.setup.action.operation.requestHeader",
            "comment": "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://build.fhir.org/http.html#2.1.0.5.1 - \"If-Match\" header.  See http://build.fhir.org/http.html#2.1.0.11 - Conditional Create using \"If-None-Exist\".  See http://build.fhir.org/http.html#2.1.0.13.1 - Invalid \"Content-Type\" header for negative testing. - etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.requestHeader.field",
            "path": "TestScript.setup.action.operation.requestHeader.field",
            "comment": "If header element is specified, then field is required.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.requestHeader.value",
            "path": "TestScript.setup.action.operation.requestHeader.value",
            "comment": "If header element is specified, then value is required.  No conversions will be done by the test engine e.g. \"xml\" to \"application/fhir+xml\".  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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.requestId",
            "path": "TestScript.setup.action.operation.requestId",
            "comment": "If a requestId is supplied, then the resulting request (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by \"requestId\".  If requestId is not specified, it is the test engine's responsibility to store the request and use it as the requestId in subsequent assertions when assertion path and/or headerField is specified, direction is equal to request, and the requestId in not specified.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.responseId",
            "path": "TestScript.setup.action.operation.responseId",
            "comment": "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 the responseId in subsequent assertions when assertion path and/or headerField is specified and the responseId is not specified.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.sourceId",
            "path": "TestScript.setup.action.operation.sourceId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.targetId",
            "path": "TestScript.setup.action.operation.targetId",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.operation.url",
            "path": "TestScript.setup.action.operation.url",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert",
            "path": "TestScript.setup.action.assert",
            "comment": "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": [
              {
                "key": "tst-12",
                "severity": "error",
                "human": "Setup action assert response and responseCode SHALL be empty when direction equals request",
                "expression": "(response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'",
                "xpath": "((count(f:response) + count(f:responseCode)) = 0 and (f:direction/@value='request')) or (count(f:direction) = 0) or (f:direction/@value='response')"
              },
              {
                "key": "tst-5",
                "severity": "error",
                "human": "Only a single assertion SHALL be present within setup action assert element.",
                "expression": "extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count()  + validateProfileId.count() <=1)",
                "xpath": "count(f:contentType) + count(f:expression) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:requestMethod) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:rule) + count(f:ruleset) + count(f:validateProfileId)  <=1"
              },
              {
                "key": "tst-10",
                "severity": "error",
                "human": "Setup action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither.",
                "expression": "compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())",
                "xpath": "(f:compareToSourceId and f:compareToSourceExpression) or (f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourceExpression or f:compareToSourcePath)"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.label",
            "path": "TestScript.setup.action.assert.label",
            "comment": "This has no impact on the verification itself.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.description",
            "path": "TestScript.setup.action.assert.description",
            "comment": "This has no impact on the verification itself.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.direction",
            "path": "TestScript.setup.action.assert.direction",
            "comment": "If the direction is specified as \"response\" (the default), then the processing of this assert is against the received response message. If the direction is specified as \"request\", then the processing of this assert is against the sent request message.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AssertionDirectionType"
                }
              ],
              "strength": "required",
              "description": "The type of direction to use for assertion.",
              "valueSet": "http://hl7.org/fhir/ValueSet/assert-direction-codes|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.compareToSourceId",
            "path": "TestScript.setup.action.assert.compareToSourceId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.compareToSourceExpression",
            "path": "TestScript.setup.action.assert.compareToSourceExpression",
            "comment": "Thefhirpath 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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.compareToSourcePath",
            "path": "TestScript.setup.action.assert.compareToSourcePath",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.contentType",
            "path": "TestScript.setup.action.assert.contentType",
            "comment": "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 you'd like to have more control over the string, then use 'assert.headerField' instead.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "example": [
              {
                "label": "General",
                "valueCode": "application/fhir+xml"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "MimeType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSet": "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.expression",
            "path": "TestScript.setup.action.assert.expression",
            "comment": "If both \"expression\" and a \"fixtureId\" are specified, then the expression will be evaluated against the request or response body mapped to the fixtureId.  If \"expression\" is specified and a \"fixtureId\" is not, then the expression will be evaluated against the response body of the last operation.  Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.headerField",
            "path": "TestScript.setup.action.assert.headerField",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.minimumId",
            "path": "TestScript.setup.action.assert.minimumId",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.navigationLinks",
            "path": "TestScript.setup.action.assert.navigationLinks",
            "comment": "Asserts that the Bundle contains first, last, and next links.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.operator",
            "path": "TestScript.setup.action.assert.operator",
            "comment": "Operators are useful 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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AssertionOperatorType"
                }
              ],
              "strength": "required",
              "description": "The type of operator to use for assertion.",
              "valueSet": "http://hl7.org/fhir/ValueSet/assert-operator-codes|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.path",
            "path": "TestScript.setup.action.assert.path",
            "comment": "If both \"path\" and a \"fixtureId\" are specified, then the path will be evaluated against the request or response body mapped to the fixtureId.  If \"path\" is specified and a \"fixtureId\" is not, then the path will be evaluated against the response body of the last operation.  Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.requestMethod",
            "path": "TestScript.setup.action.assert.requestMethod",
            "comment": "If \"requestMethod\" is specified then it will be used in place of \"value\". The \"requestMethod\" will evaluate against the last operation's request HTTP operation.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "TestScriptRequestMethodCode"
                }
              ],
              "strength": "required",
              "description": "The allowable request method or HTTP operation codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/http-operations|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.requestURL",
            "path": "TestScript.setup.action.assert.requestURL",
            "comment": "If \"requestURL\" is specified then it will be used in place of \"value\". The \"requestURL\" will evaluate against the last operation's full request URL path string.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.resource",
            "path": "TestScript.setup.action.assert.resource",
            "comment": "This will be expected resource type in response body e.g. in read, vread, search, etc.  See http://build.fhir.org/resourcelist.html for complete list of resource types; e.g. <assert > <resourceType value=\"Patient\" </assert>.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FHIRDefinedType"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types.",
              "valueSet": "http://hl7.org/fhir/ValueSet/defined-types|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.response",
            "path": "TestScript.setup.action.assert.response",
            "comment": "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": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "AssertionResponseTypes"
                }
              ],
              "strength": "required",
              "description": "The type of response code to use for assertion.",
              "valueSet": "http://hl7.org/fhir/ValueSet/assert-response-code-types|4.0.1"
            }
          },
          {
            "id": "TestScript.setup.action.assert.responseCode",
            "path": "TestScript.setup.action.assert.responseCode",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.sourceId",
            "path": "TestScript.setup.action.assert.sourceId",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.validateProfileId",
            "path": "TestScript.setup.action.assert.validateProfileId",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.value",
            "path": "TestScript.setup.action.assert.value",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.setup.action.assert.warningOnly",
            "path": "TestScript.setup.action.assert.warningOnly",
            "comment": "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": 1,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "TestScript.test",
            "path": "TestScript.test",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestScript.test.name",
            "path": "TestScript.test.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.test.description",
            "path": "TestScript.test.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "TestScript.test.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TestAction"
              }
            ],
            "path": "TestScript.test.action",
            "comment": "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": [
              {
                "key": "tst-2",
                "severity": "error",
                "human": "Test action SHALL contain either an operation or assert but not both.",
                "expression": "operation.exists() xor assert.exists()",
                "xpath": "(f:operation or f:assert) and not(f:operation and f:assert)"
              }
            ]
          },
          {
            "id": "TestScript.test.action.operation",
            "path": "TestScript.test.action.operation",
            "min": 0,
            "max": "1",
            "contentReference": "#TestScript.setup.action.operation",
            "constraint": [
              {
                "key": "tst-8",
                "severity": "error",
                "human": "Test operation SHALL contain either sourceId or targetId or params or url.",
                "expression": "sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))",
                "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='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')"
              }
            ]
          },
          {
            "id": "TestScript.test.action.assert",
            "path": "TestScript.test.action.assert",
            "comment": "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",
            "contentReference": "#TestScript.setup.action.assert",
            "constraint": [
              {
                "key": "tst-11",
                "severity": "error",
                "human": "Test action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither.",
                "expression": "compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())",
                "xpath": "(f:compareToSourceId and f:compareToSourceExpression) or (f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourceExpression or f:compareToSourcePath)"
              },
              {
                "key": "tst-13",
                "severity": "error",
                "human": "Test action assert response and response and responseCode SHALL be empty when direction equals request",
                "expression": "(response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'",
                "xpath": "((count(f:response) + count(f:responseCode)) = 0 and (f:direction/@value='request')) or (count(f:direction) = 0) or (f:direction/@value='response')"
              },
              {
                "key": "tst-6",
                "severity": "error",
                "human": "Only a single assertion SHALL be present within test action assert element.",
                "expression": "extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <=1)",
                "xpath": "count(f:contentType) + count(f:expression) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:requestMethod) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:rule) + count(f:ruleset) + count(f:validateProfileId)  <=1"
              }
            ]
          },
          {
            "id": "TestScript.teardown",
            "path": "TestScript.teardown",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "TestScript.teardown.action",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TeardownAction"
              }
            ],
            "path": "TestScript.teardown.action",
            "comment": "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"
              }
            ]
          },
          {
            "id": "TestScript.teardown.action.operation",
            "path": "TestScript.teardown.action.operation",
            "min": 1,
            "max": "1",
            "contentReference": "#TestScript.setup.action.operation",
            "constraint": [
              {
                "key": "tst-9",
                "severity": "error",
                "human": "Teardown operation SHALL contain either sourceId or targetId or params or url.",
                "expression": "sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))",
                "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='capabilities' 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/ValueSet",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ValueSet",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Foundation.Terminology"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "normative"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
          "valueCode": "4.0.0"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 5
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "anonymous"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "vocab"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/ValueSet",
      "version": "4.0.1",
      "name": "ValueSet",
      "status": "active",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "ValueSet",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "_baseDefinition": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super",
            "valueString": "MetadataResource"
          }
        ]
      },
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "ValueSet",
            "path": "ValueSet",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "vsd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.id",
            "path": "ValueSet.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.meta",
            "path": "ValueSet.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.implicitRules",
            "path": "ValueSet.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "ValueSet.language",
            "path": "ValueSet.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ValueSet.text",
            "path": "ValueSet.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.contained",
            "path": "ValueSet.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.extension",
            "path": "ValueSet.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.modifierExtension",
            "path": "ValueSet.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "ValueSet.url",
            "path": "ValueSet.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.identifier",
            "path": "ValueSet.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this value set outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.version",
            "path": "ValueSet.version",
            "comment": "There may be different value set instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the value set with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.name",
            "path": "ValueSet.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.A name should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a name.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.title",
            "path": "ValueSet.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.status",
            "path": "ValueSet.status",
            "comment": "Allows filtering of value sets that are appropriate for use versus not.See also the [valueset-workflowStatus](extension-valueset-workflowstatus.html) extension for additional status information related to the editorial process.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ValueSet.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ValueSet.experimental",
            "path": "ValueSet.experimental",
            "comment": "Allows filtering of value sets that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.date",
            "path": "ValueSet.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the value set. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.publisher",
            "path": "ValueSet.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the value set is the organization or individual primarily responsible for the maintenance and upkeep of the value set. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the value set. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.contact",
            "path": "ValueSet.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.description",
            "path": "ValueSet.description",
            "comment": "This description can be used to capture details such as why the value set was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the value set as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the value set is presumed to be the predominant language in the place the value set was created).The description is not intended to describe the semantics of the Value Set - there are no intrinsic semantics separate from the codes contained in its expansion. The description should capture its intended use, which is needed for ensuring integrity for its use in models across future changes. A description should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a description.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.useContext",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "ValueSet.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.jurisdiction",
            "path": "ValueSet.jurisdiction",
            "comment": "It may be possible for the value set to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ValueSet.immutable",
            "path": "ValueSet.immutable",
            "comment": "Normally immutability is set to 'false', which is the default assumption if it is not populated.  Note that the implication is that if this is set to 'true', there may be only one ValueSet version for this definition. Immutability tends to be set to 'true' in one of two cases: - Where the value set, by the nature of its usage, cannot change.  For example \"All specializations of ACT in ActClassCode\" - Where there's no safe way to express the \"Purpose\" such that someone else could safely make changes to the value set definition. Source workflow control must guarantee that the same URI always yields the same definition.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.immutable",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.purpose",
            "path": "ValueSet.purpose",
            "comment": "This element does not describe the usage of the value set. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this value set.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.purpose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.copyright",
            "path": "ValueSet.copyright",
            "comment": "nullFrequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.copyright",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose",
            "path": "ValueSet.compose",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.compose",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.id",
            "path": "ValueSet.compose.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.extension",
            "path": "ValueSet.compose.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.modifierExtension",
            "path": "ValueSet.compose.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.lockedDate",
            "path": "ValueSet.compose.lockedDate",
            "comment": "With a defined lockedDate the value set is considered \"Locked\". Otherwise, the value set may have different expansions as underlying code systems and/or value sets evolve.  The interpretation of lockedDate is often dependent on the context - e.g. a SNOMED CT derived value set with a lockedDate will have a different expansion in USA than in UK.  If a value set specifies a version for include and exclude statements, and also specifies a locked date, the specified versions need to be available that date, or the value set will not be usable.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.lockedDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.inactive",
            "path": "ValueSet.compose.inactive",
            "comment": "Note that in the FHIR terminology framework, \"deprecated\" does not mean inactive, but in some code systems, e.g. LOINC, \"deprecated\" does mean inactive. Code systems should define what codes are considered to be inactive. If this is not clearly defined (including in the FHIR code system resource), then all codes are assumed to be active.\n\nThe Value Set Definition specification defines an ActiveOnly element, which is the reverse of this element e.g. (ValueSet.compose.inactive=FALSE) is the same as (VSD.ActiveOnly=TRUE).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.inactive",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ConceptSet"
              }
            ],
            "path": "ValueSet.compose.include",
            "comment": "All the conditions in an include must be true. If a system is listed, all the codes from the system are listed. If one or more filters are listed, all of the filters must apply. If one or more value sets are listed, the codes must be in all the value sets. E.g. each include is 'include all the codes that meet all these conditions'.",
            "min": 1,
            "max": "*",
            "base": {
              "path": "ValueSet.compose.include",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "vsd-1",
                "severity": "error",
                "human": "A value set include/exclude SHALL have a value set or a system",
                "expression": "valueSet.exists() or system.exists()",
                "xpath": "exists(f:valueSet) or exists(f:system)"
              },
              {
                "key": "vsd-2",
                "severity": "error",
                "human": "A value set with concepts or filters SHALL include a system",
                "expression": "(concept.exists() or filter.exists()) implies system.exists()",
                "xpath": "not(exists(f:concept) or exists(f:filter)) or exists(f:system)"
              },
              {
                "key": "vsd-3",
                "severity": "error",
                "human": "Cannot have both concept and filter",
                "expression": "concept.empty() or filter.empty()",
                "xpath": "not(exists(f:concept)) or not(exists(f:filter))"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.id",
            "path": "ValueSet.compose.include.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.extension",
            "path": "ValueSet.compose.include.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.modifierExtension",
            "path": "ValueSet.compose.include.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.system",
            "path": "ValueSet.compose.include.system",
            "comment": "If there are no codes or filters, the entire code system is included. Note that the set of codes that are included may contain abstract codes. See ''Coding.system'' for further documentation about the correct value for the system element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.include.system",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "vsd-1",
              "vsd-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.version",
            "path": "ValueSet.compose.include.version",
            "comment": "This is used when selecting the descendants of a concept - they may change between versions. If no version is specified, then the exact contents of the value set might not be known until a context of use binds it to a particular version. The special value '*' means all versions; It is at server discretion regarding expansions and which versions must be supported.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.include.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.concept",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ConceptReference"
              }
            ],
            "path": "ValueSet.compose.include.concept",
            "comment": "The list of concepts is considered ordered, though the order might not have any particular significance. Typically, the order of an expansion follows that defined in the compose element.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.compose.include.concept",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "vsd-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.concept.id",
            "path": "ValueSet.compose.include.concept.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.concept.extension",
            "path": "ValueSet.compose.include.concept.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.concept.modifierExtension",
            "path": "ValueSet.compose.include.concept.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.concept.code",
            "path": "ValueSet.compose.include.concept.code",
            "comment": "Expressions are allowed if defined by the underlying code system.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.include.concept.code",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.concept.display",
            "path": "ValueSet.compose.include.concept.display",
            "comment": "The value set resource allows for an alternative display to be specified for when this concept is used in this particular value set. See notes in the value set narrative about the correct use of this element.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.include.concept.display",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.concept.designation",
            "path": "ValueSet.compose.include.concept.designation",
            "comment": "Concepts have both a ```display``` and an array of ```designation```. The display is equivalent to a special designation with an implied ```designation.use``` of \"primary code\" and a language equal to the [Resource Language](resource.html#language).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.compose.include.concept.designation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.concept.designation.id",
            "path": "ValueSet.compose.include.concept.designation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.concept.designation.extension",
            "path": "ValueSet.compose.include.concept.designation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.concept.designation.modifierExtension",
            "path": "ValueSet.compose.include.concept.designation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.concept.designation.language",
            "path": "ValueSet.compose.include.concept.designation.language",
            "comment": "In the absence of a language, the resource language applies.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.include.concept.designation.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ValueSet.compose.include.concept.designation.use",
            "path": "ValueSet.compose.include.concept.designation.use",
            "comment": "If no use is provided, the designation can be assumed to be suitable for general display to a human user.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.include.concept.designation.use",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Coding"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConceptDesignationUse"
                }
              ],
              "strength": "extensible",
              "description": "Details of how a designation would be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/designation-use"
            }
          },
          {
            "id": "ValueSet.compose.include.concept.designation.value",
            "path": "ValueSet.compose.include.concept.designation.value",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.include.concept.designation.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.filter",
            "path": "ValueSet.compose.include.filter",
            "comment": "Selecting codes by specifying filters based on properties is only possible where the underlying code system defines appropriate properties. Note that in some cases, the underlying code system defines the logical concepts but not the literal codes for the concepts. In such cases, the literal definitions may be provided by a third party.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.compose.include.filter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "vsd-3"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.filter.id",
            "path": "ValueSet.compose.include.filter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.filter.extension",
            "path": "ValueSet.compose.include.filter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.compose.include.filter.modifierExtension",
            "path": "ValueSet.compose.include.filter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.filter.property",
            "path": "ValueSet.compose.include.filter.property",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.include.filter.property",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.filter.op",
            "path": "ValueSet.compose.include.filter.op",
            "comment": "In case filter.property represents a property of the system, the operation applies to the selected property. In case filter.property represents a filter of the system, the operation SHALL match one of the CodeSystem.filter.operator values.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.include.filter.op",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FilterOperator"
                }
              ],
              "strength": "required",
              "description": "The kind of operation to perform as a part of a property based filter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/filter-operator|4.0.1"
            }
          },
          {
            "id": "ValueSet.compose.include.filter.value",
            "path": "ValueSet.compose.include.filter.value",
            "comment": "Use regex matching with care - full regex matching on every SNOMED CT term is prohibitive, for example.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ValueSet.compose.include.filter.value",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.valueSet",
            "path": "ValueSet.compose.include.valueSet",
            "comment": "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 might not refer to an actual FHIR ValueSet resource; in this case, whatever is referred to is an implicit definition of a value set that needs to be clear about how versions are resolved.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.compose.include.valueSet",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "condition": [
              "vsd-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.exclude",
            "path": "ValueSet.compose.exclude",
            "comment": "Usually this is used to selectively exclude codes that were included by subsumption in the inclusions. Any display names specified for the codes are ignored.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.compose.exclude",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ValueSet.compose.include",
            "condition": [
              "vsd-2"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion",
            "path": "ValueSet.expansion",
            "comment": "Expansion is performed to produce a collection of codes that are ready to use for data entry or validation. Value set expansions are always considered to be stateless - they are a record of the set of codes in the value set at a point in time under a given set of conditions, and are not subject to ongoing maintenance.\n\nExpansion.parameter is  a simplified list of parameters - a subset of the features of the [Parameters](parameters.html) resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.id",
            "path": "ValueSet.expansion.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.extension",
            "path": "ValueSet.expansion.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.modifierExtension",
            "path": "ValueSet.expansion.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ValueSet.expansion.identifier",
            "path": "ValueSet.expansion.identifier",
            "comment": "Typically, this uri is a UUID (e.g. urn:uuid:8230ff20-c97a-4167-a59d-dc2cb9df16dd).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.identifier",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.timestamp",
            "path": "ValueSet.expansion.timestamp",
            "comment": "This SHOULD be a fully populated instant, but in some circumstances, value sets are expanded by hand, and the expansion is published without that precision.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.timestamp",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.total",
            "path": "ValueSet.expansion.total",
            "comment": "Paging only applies to flat expansions.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.total",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.offset",
            "path": "ValueSet.expansion.offset",
            "comment": "Paging only applies to flat expansions. If a filter is applied, the count is the number of concepts that matched the filter, not the number of concepts in an unfiltered view of the expansion.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.offset",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "meaningWhenMissing": "Paging is not being used",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.parameter",
            "path": "ValueSet.expansion.parameter",
            "comment": "The server decides which parameters to include here, but at a minimum, the list SHOULD include all of the parameters that affect the $expand operation. If the expansion will be persisted all of these parameters SHALL be included. If the codeSystem on the server has a specified version then this version SHALL be provided as a parameter in the expansion (note that not all code systems have a version).",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.expansion.parameter",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.parameter.id",
            "path": "ValueSet.expansion.parameter.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.parameter.extension",
            "path": "ValueSet.expansion.parameter.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.parameter.modifierExtension",
            "path": "ValueSet.expansion.parameter.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ValueSet.expansion.parameter.name",
            "path": "ValueSet.expansion.parameter.name",
            "comment": "The names are assigned at the discretion of the server.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.parameter.name",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.parameter.value[x]",
            "path": "ValueSet.expansion.parameter.value[x]",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.parameter.value[x]",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              },
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              },
              {
                "code": "uri"
              },
              {
                "code": "code"
              },
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains",
            "path": "ValueSet.expansion.contains",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.expansion.contains",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "vsd-6",
                "severity": "error",
                "human": "SHALL have a code or a display",
                "expression": "code.exists() or display.exists()",
                "xpath": "exists(f:code) or exists(f:display)"
              },
              {
                "key": "vsd-9",
                "severity": "error",
                "human": "Must have a code if not abstract",
                "expression": "code.exists() or abstract = true",
                "xpath": "exists(f:code) or (f:abstract/@value = true())"
              },
              {
                "key": "vsd-10",
                "severity": "error",
                "human": "Must have a system if a code is present",
                "expression": "code.empty() or system.exists()",
                "xpath": "exists(f:system) or not(exists(f:code))"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains.id",
            "path": "ValueSet.expansion.contains.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains.extension",
            "path": "ValueSet.expansion.contains.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains.modifierExtension",
            "path": "ValueSet.expansion.contains.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "ValueSet.expansion.contains.system",
            "path": "ValueSet.expansion.contains.system",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.contains.system",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains.abstract",
            "path": "ValueSet.expansion.contains.abstract",
            "comment": "This should not be understood to exclude its use for searching (e.g. by subsumption testing). The client should know whether it is appropriate for the user to select an abstract code or not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.contains.abstract",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If this is not populated, systems can assume that the concept it not abstract. This SHALL always be populated for abstract concepts",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains.inactive",
            "path": "ValueSet.expansion.contains.inactive",
            "comment": "This should only have a value if the concept is inactive.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.contains.inactive",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains.version",
            "path": "ValueSet.expansion.contains.version",
            "comment": "The exact value of the version string is specified by the system from which the code is derived.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.contains.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains.code",
            "path": "ValueSet.expansion.contains.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.contains.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "vsd-6"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains.display",
            "path": "ValueSet.expansion.contains.display",
            "min": 0,
            "max": "1",
            "base": {
              "path": "ValueSet.expansion.contains.display",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "vsd-6"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains.designation",
            "path": "ValueSet.expansion.contains.designation",
            "comment": "The designations provided must be based on the value set and code system definitions.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.expansion.contains.designation",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ValueSet.compose.include.concept.designation",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "ValueSet.expansion.contains.contains",
            "path": "ValueSet.expansion.contains.contains",
            "comment": "If the expansion uses this element, there is  no implication about the logical relationship between them, and the  structure cannot be used for logical inferencing. The structure  exists to provide navigational assistance for helping human users to  locate codes in the expansion.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "ValueSet.expansion.contains.contains",
              "min": 0,
              "max": "*"
            },
            "contentReference": "#ValueSet.expansion.contains",
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "ValueSet",
            "path": "ValueSet",
            "min": 0,
            "max": "*",
            "constraint": [
              {
                "key": "vsd-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "ValueSet.url",
            "path": "ValueSet.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.identifier",
            "path": "ValueSet.identifier",
            "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this value set outside of FHIR, where it is not possible to use the logical URI.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.version",
            "path": "ValueSet.version",
            "comment": "There may be different value set instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the value set with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.name",
            "path": "ValueSet.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.A name should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a name.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.title",
            "path": "ValueSet.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.status",
            "path": "ValueSet.status",
            "comment": "Allows filtering of value sets that are appropriate for use versus not.See also the [valueset-workflowStatus](extension-valueset-workflowstatus.html) extension for additional status information related to the editorial process.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "ValueSet.experimental",
            "path": "ValueSet.experimental",
            "comment": "Allows filtering of value sets that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.date",
            "path": "ValueSet.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the value set. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.publisher",
            "path": "ValueSet.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the value set is the organization or individual primarily responsible for the maintenance and upkeep of the value set. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the value set. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.contact",
            "path": "ValueSet.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.description",
            "path": "ValueSet.description",
            "comment": "This description can be used to capture details such as why the value set was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the value set as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the value set is presumed to be the predominant language in the place the value set was created).The description is not intended to describe the semantics of the Value Set - there are no intrinsic semantics separate from the codes contained in its expansion. The description should capture its intended use, which is needed for ensuring integrity for its use in models across future changes. A description should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a description.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ValueSet.useContext",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
                "valueCode": "trial-use"
              }
            ],
            "path": "ValueSet.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.jurisdiction",
            "path": "ValueSet.jurisdiction",
            "comment": "It may be possible for the value set to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          },
          {
            "id": "ValueSet.immutable",
            "path": "ValueSet.immutable",
            "comment": "Normally immutability is set to 'false', which is the default assumption if it is not populated.  Note that the implication is that if this is set to 'true', there may be only one ValueSet version for this definition. Immutability tends to be set to 'true' in one of two cases: - Where the value set, by the nature of its usage, cannot change.  For example \"All specializations of ACT in ActClassCode\" - Where there's no safe way to express the \"Purpose\" such that someone else could safely make changes to the value set definition. Source workflow control must guarantee that the same URI always yields the same definition.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.purpose",
            "path": "ValueSet.purpose",
            "comment": "This element does not describe the usage of the value set. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this value set.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ValueSet.copyright",
            "path": "ValueSet.copyright",
            "comment": "nullFrequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "ValueSet.compose",
            "path": "ValueSet.compose",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ValueSet.compose.lockedDate",
            "path": "ValueSet.compose.lockedDate",
            "comment": "With a defined lockedDate the value set is considered \"Locked\". Otherwise, the value set may have different expansions as underlying code systems and/or value sets evolve.  The interpretation of lockedDate is often dependent on the context - e.g. a SNOMED CT derived value set with a lockedDate will have a different expansion in USA than in UK.  If a value set specifies a version for include and exclude statements, and also specifies a locked date, the specified versions need to be available that date, or the value set will not be usable.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.inactive",
            "path": "ValueSet.compose.inactive",
            "comment": "Note that in the FHIR terminology framework, \"deprecated\" does not mean inactive, but in some code systems, e.g. LOINC, \"deprecated\" does mean inactive. Code systems should define what codes are considered to be inactive. If this is not clearly defined (including in the FHIR code system resource), then all codes are assumed to be active.\n\nThe Value Set Definition specification defines an ActiveOnly element, which is the reverse of this element e.g. (ValueSet.compose.inactive=FALSE) is the same as (VSD.ActiveOnly=TRUE).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ConceptSet"
              }
            ],
            "path": "ValueSet.compose.include",
            "comment": "All the conditions in an include must be true. If a system is listed, all the codes from the system are listed. If one or more filters are listed, all of the filters must apply. If one or more value sets are listed, the codes must be in all the value sets. E.g. each include is 'include all the codes that meet all these conditions'.",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "vsd-2",
                "severity": "error",
                "human": "A value set with concepts or filters SHALL include a system",
                "expression": "(concept.exists() or filter.exists()) implies system.exists()",
                "xpath": "not(exists(f:concept) or exists(f:filter)) or exists(f:system)"
              },
              {
                "key": "vsd-3",
                "severity": "error",
                "human": "Cannot have both concept and filter",
                "expression": "concept.empty() or filter.empty()",
                "xpath": "not(exists(f:concept)) or not(exists(f:filter))"
              },
              {
                "key": "vsd-1",
                "severity": "error",
                "human": "A value set include/exclude SHALL have a value set or a system",
                "expression": "valueSet.exists() or system.exists()",
                "xpath": "exists(f:valueSet) or exists(f:system)"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.system",
            "path": "ValueSet.compose.include.system",
            "comment": "If there are no codes or filters, the entire code system is included. Note that the set of codes that are included may contain abstract codes. See ''Coding.system'' for further documentation about the correct value for the system element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "vsd-1",
              "vsd-2"
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.version",
            "path": "ValueSet.compose.include.version",
            "comment": "This is used when selecting the descendants of a concept - they may change between versions. If no version is specified, then the exact contents of the value set might not be known until a context of use binds it to a particular version. The special value '*' means all versions; It is at server discretion regarding expansions and which versions must be supported.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.concept",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "ConceptReference"
              }
            ],
            "path": "ValueSet.compose.include.concept",
            "comment": "The list of concepts is considered ordered, though the order might not have any particular significance. Typically, the order of an expansion follows that defined in the compose element.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "vsd-3"
            ]
          },
          {
            "id": "ValueSet.compose.include.concept.code",
            "path": "ValueSet.compose.include.concept.code",
            "comment": "Expressions are allowed if defined by the underlying code system.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ]
          },
          {
            "id": "ValueSet.compose.include.concept.display",
            "path": "ValueSet.compose.include.concept.display",
            "comment": "The value set resource allows for an alternative display to be specified for when this concept is used in this particular value set. See notes in the value set narrative about the correct use of this element.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ValueSet.compose.include.concept.designation",
            "path": "ValueSet.compose.include.concept.designation",
            "comment": "Concepts have both a ```display``` and an array of ```designation```. The display is equivalent to a special designation with an implied ```designation.use``` of \"primary code\" and a language equal to the [Resource Language](resource.html#language).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ValueSet.compose.include.concept.designation.language",
            "path": "ValueSet.compose.include.concept.designation.language",
            "comment": "In the absence of a language, the resource language applies.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "ValueSet.compose.include.concept.designation.use",
            "path": "ValueSet.compose.include.concept.designation.use",
            "comment": "If no use is provided, the designation can be assumed to be suitable for general display to a human user.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "ConceptDesignationUse"
                }
              ],
              "strength": "extensible",
              "description": "Details of how a designation would be used.",
              "valueSet": "http://hl7.org/fhir/ValueSet/designation-use"
            }
          },
          {
            "id": "ValueSet.compose.include.concept.designation.value",
            "path": "ValueSet.compose.include.concept.designation.value",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ValueSet.compose.include.filter",
            "path": "ValueSet.compose.include.filter",
            "comment": "Selecting codes by specifying filters based on properties is only possible where the underlying code system defines appropriate properties. Note that in some cases, the underlying code system defines the logical concepts but not the literal codes for the concepts. In such cases, the literal definitions may be provided by a third party.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "condition": [
              "vsd-3"
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.filter.property",
            "path": "ValueSet.compose.include.filter.property",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.filter.op",
            "path": "ValueSet.compose.include.filter.op",
            "comment": "In case filter.property represents a property of the system, the operation applies to the selected property. In case filter.property represents a filter of the system, the operation SHALL match one of the CodeSystem.filter.operator values.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "FilterOperator"
                }
              ],
              "strength": "required",
              "description": "The kind of operation to perform as a part of a property based filter.",
              "valueSet": "http://hl7.org/fhir/ValueSet/filter-operator|4.0.1"
            }
          },
          {
            "id": "ValueSet.compose.include.filter.value",
            "path": "ValueSet.compose.include.filter.value",
            "comment": "Use regex matching with care - full regex matching on every SNOMED CT term is prohibitive, for example.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.include.valueSet",
            "path": "ValueSet.compose.include.valueSet",
            "comment": "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 might not refer to an actual FHIR ValueSet resource; in this case, whatever is referred to is an implicit definition of a value set that needs to be clear about how versions are resolved.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "canonical",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "condition": [
              "vsd-1"
            ],
            "isSummary": true
          },
          {
            "id": "ValueSet.compose.exclude",
            "path": "ValueSet.compose.exclude",
            "comment": "Usually this is used to selectively exclude codes that were included by subsumption in the inclusions. Any display names specified for the codes are ignored.",
            "min": 0,
            "max": "*",
            "contentReference": "#ValueSet.compose.include",
            "condition": [
              "vsd-2"
            ]
          },
          {
            "id": "ValueSet.expansion",
            "path": "ValueSet.expansion",
            "comment": "Expansion is performed to produce a collection of codes that are ready to use for data entry or validation. Value set expansions are always considered to be stateless - they are a record of the set of codes in the value set at a point in time under a given set of conditions, and are not subject to ongoing maintenance.\n\nExpansion.parameter is  a simplified list of parameters - a subset of the features of the [Parameters](parameters.html) resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.identifier",
            "path": "ValueSet.expansion.identifier",
            "comment": "Typically, this uri is a UUID (e.g. urn:uuid:8230ff20-c97a-4167-a59d-dc2cb9df16dd).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.timestamp",
            "path": "ValueSet.expansion.timestamp",
            "comment": "This SHOULD be a fully populated instant, but in some circumstances, value sets are expanded by hand, and the expansion is published without that precision.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.total",
            "path": "ValueSet.expansion.total",
            "comment": "Paging only applies to flat expansions.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.offset",
            "path": "ValueSet.expansion.offset",
            "comment": "Paging only applies to flat expansions. If a filter is applied, the count is the number of concepts that matched the filter, not the number of concepts in an unfiltered view of the expansion.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "meaningWhenMissing": "Paging is not being used"
          },
          {
            "id": "ValueSet.expansion.parameter",
            "path": "ValueSet.expansion.parameter",
            "comment": "The server decides which parameters to include here, but at a minimum, the list SHOULD include all of the parameters that affect the $expand operation. If the expansion will be persisted all of these parameters SHALL be included. If the codeSystem on the server has a specified version then this version SHALL be provided as a parameter in the expansion (note that not all code systems have a version).",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.parameter.name",
            "path": "ValueSet.expansion.parameter.name",
            "comment": "The names are assigned at the discretion of the server.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.parameter.value[x]",
            "path": "ValueSet.expansion.parameter.value[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              },
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              },
              {
                "code": "uri"
              },
              {
                "code": "code"
              },
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.contains",
            "path": "ValueSet.expansion.contains",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "vsd-6",
                "severity": "error",
                "human": "SHALL have a code or a display",
                "expression": "code.exists() or display.exists()",
                "xpath": "exists(f:code) or exists(f:display)"
              },
              {
                "key": "vsd-9",
                "severity": "error",
                "human": "Must have a code if not abstract",
                "expression": "code.exists() or abstract = true",
                "xpath": "exists(f:code) or (f:abstract/@value = true())"
              },
              {
                "key": "vsd-10",
                "severity": "error",
                "human": "Must have a system if a code is present",
                "expression": "code.empty() or system.exists()",
                "xpath": "exists(f:system) or not(exists(f:code))"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.contains.system",
            "path": "ValueSet.expansion.contains.system",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.contains.abstract",
            "path": "ValueSet.expansion.contains.abstract",
            "comment": "This should not be understood to exclude its use for searching (e.g. by subsumption testing). The client should know whether it is appropriate for the user to select an abstract code or not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "meaningWhenMissing": "If this is not populated, systems can assume that the concept it not abstract. This SHALL always be populated for abstract concepts"
          },
          {
            "id": "ValueSet.expansion.contains.inactive",
            "path": "ValueSet.expansion.contains.inactive",
            "comment": "This should only have a value if the concept is inactive.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.contains.version",
            "path": "ValueSet.expansion.contains.version",
            "comment": "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"
              }
            ]
          },
          {
            "id": "ValueSet.expansion.contains.code",
            "path": "ValueSet.expansion.contains.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "vsd-6"
            ]
          },
          {
            "id": "ValueSet.expansion.contains.display",
            "path": "ValueSet.expansion.contains.display",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "vsd-6"
            ]
          },
          {
            "id": "ValueSet.expansion.contains.designation",
            "path": "ValueSet.expansion.contains.designation",
            "comment": "The designations provided must be based on the value set and code system definitions.",
            "min": 0,
            "max": "*",
            "contentReference": "#ValueSet.compose.include.concept.designation"
          },
          {
            "id": "ValueSet.expansion.contains.contains",
            "path": "ValueSet.expansion.contains.contains",
            "comment": "If the expansion uses this element, there is  no implication about the logical relationship between them, and the  structure cannot be used for logical inferencing. The structure  exists to provide navigational assistance for helping human users to  locate codes in the expansion.",
            "min": 0,
            "max": "*",
            "contentReference": "#ValueSet.expansion.contains"
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/VerificationResult",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "VerificationResult",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Base.Workflow"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "business"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "pa"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/VerificationResult",
      "version": "4.0.1",
      "name": "VerificationResult",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "VerificationResult",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "VerificationResult",
            "path": "VerificationResult",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VerificationResult",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.id",
            "path": "VerificationResult.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VerificationResult.meta",
            "path": "VerificationResult.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VerificationResult.implicitRules",
            "path": "VerificationResult.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "VerificationResult.language",
            "path": "VerificationResult.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "VerificationResult.text",
            "path": "VerificationResult.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.contained",
            "path": "VerificationResult.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.extension",
            "path": "VerificationResult.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.modifierExtension",
            "path": "VerificationResult.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "VerificationResult.target",
            "path": "VerificationResult.target",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VerificationResult.target",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VerificationResult.targetLocation",
            "path": "VerificationResult.targetLocation",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VerificationResult.targetLocation",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VerificationResult.need",
            "path": "VerificationResult.need",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.need",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "need"
                }
              ],
              "strength": "preferred",
              "description": "The frequency with which the target must be validated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-need"
            }
          },
          {
            "id": "VerificationResult.status",
            "path": "VerificationResult.status",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VerificationResult.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "status"
                }
              ],
              "strength": "required",
              "description": "The validation status of the target.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-status|4.0.1"
            }
          },
          {
            "id": "VerificationResult.statusDate",
            "path": "VerificationResult.statusDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.statusDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VerificationResult.validationType",
            "path": "VerificationResult.validationType",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.validationType",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "validation-type"
                }
              ],
              "strength": "preferred",
              "description": "What the target is validated against.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-validation-type"
            }
          },
          {
            "id": "VerificationResult.validationProcess",
            "path": "VerificationResult.validationProcess",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VerificationResult.validationProcess",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "validation-process"
                }
              ],
              "strength": "example",
              "description": "The primary process by which the target is validated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-validation-process"
            }
          },
          {
            "id": "VerificationResult.frequency",
            "path": "VerificationResult.frequency",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.frequency",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Timing"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.lastPerformed",
            "path": "VerificationResult.lastPerformed",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.lastPerformed",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.nextScheduled",
            "path": "VerificationResult.nextScheduled",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.nextScheduled",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.failureAction",
            "path": "VerificationResult.failureAction",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.failureAction",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "failure-action"
                }
              ],
              "strength": "preferred",
              "description": "The result if validation fails.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-failure-action"
            }
          },
          {
            "id": "VerificationResult.primarySource",
            "path": "VerificationResult.primarySource",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VerificationResult.primarySource",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.primarySource.id",
            "path": "VerificationResult.primarySource.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.primarySource.extension",
            "path": "VerificationResult.primarySource.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.primarySource.modifierExtension",
            "path": "VerificationResult.primarySource.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "VerificationResult.primarySource.who",
            "path": "VerificationResult.primarySource.who",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.primarySource.who",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.primarySource.type",
            "path": "VerificationResult.primarySource.type",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VerificationResult.primarySource.type",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "primary-source-type"
                }
              ],
              "strength": "example",
              "description": "Type of the validation primary source.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-primary-source-type"
            }
          },
          {
            "id": "VerificationResult.primarySource.communicationMethod",
            "path": "VerificationResult.primarySource.communicationMethod",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VerificationResult.primarySource.communicationMethod",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "communication-method"
                }
              ],
              "strength": "example",
              "description": "Method for communicating with the data source (manual; API; Push).",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-communication-method"
            }
          },
          {
            "id": "VerificationResult.primarySource.validationStatus",
            "path": "VerificationResult.primarySource.validationStatus",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.primarySource.validationStatus",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "validation-status"
                }
              ],
              "strength": "preferred",
              "description": "Status of the validation of the target against the primary source.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-validation-status"
            }
          },
          {
            "id": "VerificationResult.primarySource.validationDate",
            "path": "VerificationResult.primarySource.validationDate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.primarySource.validationDate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.primarySource.canPushUpdates",
            "path": "VerificationResult.primarySource.canPushUpdates",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.primarySource.canPushUpdates",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "can-push-updates"
                }
              ],
              "strength": "preferred",
              "description": "Ability of the primary source to push updates/alerts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-can-push-updates"
            }
          },
          {
            "id": "VerificationResult.primarySource.pushTypeAvailable",
            "path": "VerificationResult.primarySource.pushTypeAvailable",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VerificationResult.primarySource.pushTypeAvailable",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "push-type-available"
                }
              ],
              "strength": "preferred",
              "description": "Type of alerts/updates the primary source can send.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-push-type-available"
            }
          },
          {
            "id": "VerificationResult.attestation",
            "path": "VerificationResult.attestation",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.attestation",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.attestation.id",
            "path": "VerificationResult.attestation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.attestation.extension",
            "path": "VerificationResult.attestation.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.attestation.modifierExtension",
            "path": "VerificationResult.attestation.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "VerificationResult.attestation.who",
            "path": "VerificationResult.attestation.who",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.attestation.who",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VerificationResult.attestation.onBehalfOf",
            "path": "VerificationResult.attestation.onBehalfOf",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.attestation.onBehalfOf",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VerificationResult.attestation.communicationMethod",
            "path": "VerificationResult.attestation.communicationMethod",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.attestation.communicationMethod",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "communication-method"
                }
              ],
              "strength": "example",
              "description": "Method for communicating with the data source (manual; API; Push).",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-communication-method"
            }
          },
          {
            "id": "VerificationResult.attestation.date",
            "path": "VerificationResult.attestation.date",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.attestation.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "date"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VerificationResult.attestation.sourceIdentityCertificate",
            "path": "VerificationResult.attestation.sourceIdentityCertificate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.attestation.sourceIdentityCertificate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.attestation.proxyIdentityCertificate",
            "path": "VerificationResult.attestation.proxyIdentityCertificate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.attestation.proxyIdentityCertificate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.attestation.proxySignature",
            "path": "VerificationResult.attestation.proxySignature",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.attestation.proxySignature",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Signature"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.attestation.sourceSignature",
            "path": "VerificationResult.attestation.sourceSignature",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.attestation.sourceSignature",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Signature"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.validator",
            "path": "VerificationResult.validator",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VerificationResult.validator",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.validator.id",
            "path": "VerificationResult.validator.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.validator.extension",
            "path": "VerificationResult.validator.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.validator.modifierExtension",
            "path": "VerificationResult.validator.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "VerificationResult.validator.organization",
            "path": "VerificationResult.validator.organization",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VerificationResult.validator.organization",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.validator.identityCertificate",
            "path": "VerificationResult.validator.identityCertificate",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.validator.identityCertificate",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VerificationResult.validator.attestationSignature",
            "path": "VerificationResult.validator.attestationSignature",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VerificationResult.validator.attestationSignature",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Signature"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "VerificationResult",
            "path": "VerificationResult",
            "min": 0,
            "max": "*"
          },
          {
            "id": "VerificationResult.target",
            "path": "VerificationResult.target",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Resource"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "VerificationResult.targetLocation",
            "path": "VerificationResult.targetLocation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "VerificationResult.need",
            "path": "VerificationResult.need",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "need"
                }
              ],
              "strength": "preferred",
              "description": "The frequency with which the target must be validated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-need"
            }
          },
          {
            "id": "VerificationResult.status",
            "path": "VerificationResult.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "status"
                }
              ],
              "strength": "required",
              "description": "The validation status of the target.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-status|4.0.1"
            }
          },
          {
            "id": "VerificationResult.statusDate",
            "path": "VerificationResult.statusDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "VerificationResult.validationType",
            "path": "VerificationResult.validationType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "validation-type"
                }
              ],
              "strength": "preferred",
              "description": "What the target is validated against.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-validation-type"
            }
          },
          {
            "id": "VerificationResult.validationProcess",
            "path": "VerificationResult.validationProcess",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "validation-process"
                }
              ],
              "strength": "example",
              "description": "The primary process by which the target is validated.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-validation-process"
            }
          },
          {
            "id": "VerificationResult.frequency",
            "path": "VerificationResult.frequency",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Timing"
              }
            ]
          },
          {
            "id": "VerificationResult.lastPerformed",
            "path": "VerificationResult.lastPerformed",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "VerificationResult.nextScheduled",
            "path": "VerificationResult.nextScheduled",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ]
          },
          {
            "id": "VerificationResult.failureAction",
            "path": "VerificationResult.failureAction",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "failure-action"
                }
              ],
              "strength": "preferred",
              "description": "The result if validation fails.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-failure-action"
            }
          },
          {
            "id": "VerificationResult.primarySource",
            "path": "VerificationResult.primarySource",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "VerificationResult.primarySource.who",
            "path": "VerificationResult.primarySource.who",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ]
          },
          {
            "id": "VerificationResult.primarySource.type",
            "path": "VerificationResult.primarySource.type",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "primary-source-type"
                }
              ],
              "strength": "example",
              "description": "Type of the validation primary source.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-primary-source-type"
            }
          },
          {
            "id": "VerificationResult.primarySource.communicationMethod",
            "path": "VerificationResult.primarySource.communicationMethod",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "communication-method"
                }
              ],
              "strength": "example",
              "description": "Method for communicating with the data source (manual; API; Push).",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-communication-method"
            }
          },
          {
            "id": "VerificationResult.primarySource.validationStatus",
            "path": "VerificationResult.primarySource.validationStatus",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "validation-status"
                }
              ],
              "strength": "preferred",
              "description": "Status of the validation of the target against the primary source.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-validation-status"
            }
          },
          {
            "id": "VerificationResult.primarySource.validationDate",
            "path": "VerificationResult.primarySource.validationDate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ]
          },
          {
            "id": "VerificationResult.primarySource.canPushUpdates",
            "path": "VerificationResult.primarySource.canPushUpdates",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "can-push-updates"
                }
              ],
              "strength": "preferred",
              "description": "Ability of the primary source to push updates/alerts.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-can-push-updates"
            }
          },
          {
            "id": "VerificationResult.primarySource.pushTypeAvailable",
            "path": "VerificationResult.primarySource.pushTypeAvailable",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "push-type-available"
                }
              ],
              "strength": "preferred",
              "description": "Type of alerts/updates the primary source can send.",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-push-type-available"
            }
          },
          {
            "id": "VerificationResult.attestation",
            "path": "VerificationResult.attestation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "VerificationResult.attestation.who",
            "path": "VerificationResult.attestation.who",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "VerificationResult.attestation.onBehalfOf",
            "path": "VerificationResult.attestation.onBehalfOf",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization",
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "VerificationResult.attestation.communicationMethod",
            "path": "VerificationResult.attestation.communicationMethod",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "communication-method"
                }
              ],
              "strength": "example",
              "description": "Method for communicating with the data source (manual; API; Push).",
              "valueSet": "http://hl7.org/fhir/ValueSet/verificationresult-communication-method"
            }
          },
          {
            "id": "VerificationResult.attestation.date",
            "path": "VerificationResult.attestation.date",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "date"
              }
            ],
            "isSummary": true
          },
          {
            "id": "VerificationResult.attestation.sourceIdentityCertificate",
            "path": "VerificationResult.attestation.sourceIdentityCertificate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "VerificationResult.attestation.proxyIdentityCertificate",
            "path": "VerificationResult.attestation.proxyIdentityCertificate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "VerificationResult.attestation.proxySignature",
            "path": "VerificationResult.attestation.proxySignature",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Signature"
              }
            ]
          },
          {
            "id": "VerificationResult.attestation.sourceSignature",
            "path": "VerificationResult.attestation.sourceSignature",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Signature"
              }
            ]
          },
          {
            "id": "VerificationResult.validator",
            "path": "VerificationResult.validator",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "VerificationResult.validator.organization",
            "path": "VerificationResult.validator.organization",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ]
          },
          {
            "id": "VerificationResult.validator.identityCertificate",
            "path": "VerificationResult.validator.identityCertificate",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "VerificationResult.validator.attestationSignature",
            "path": "VerificationResult.validator.attestationSignature",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Signature"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/VisionPrescription",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "VisionPrescription",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
          "valueString": "Clinical.Care Provision"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger": 2
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
          "valueCode": "patient"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fm"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/VisionPrescription",
      "version": "4.0.1",
      "name": "VisionPrescription",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "resource",
      "abstract": false,
      "type": "VisionPrescription",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "VisionPrescription",
            "path": "VisionPrescription",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VisionPrescription",
              "min": 0,
              "max": "*"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.id",
            "path": "VisionPrescription.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VisionPrescription.meta",
            "path": "VisionPrescription.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VisionPrescription.implicitRules",
            "path": "VisionPrescription.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "VisionPrescription.language",
            "path": "VisionPrescription.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "VisionPrescription.text",
            "path": "VisionPrescription.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.contained",
            "path": "VisionPrescription.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.extension",
            "path": "VisionPrescription.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.modifierExtension",
            "path": "VisionPrescription.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "VisionPrescription.identifier",
            "path": "VisionPrescription.identifier",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VisionPrescription.identifier",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Identifier"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.status",
            "path": "VisionPrescription.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VisionPrescription.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VisionStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "VisionPrescription.created",
            "path": "VisionPrescription.created",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VisionPrescription.created",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VisionPrescription.patient",
            "path": "VisionPrescription.patient",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VisionPrescription.patient",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VisionPrescription.encounter",
            "path": "VisionPrescription.encounter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.encounter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.dateWritten",
            "path": "VisionPrescription.dateWritten",
            "comment": "Jurisdictions determine the valid lifetime of a prescription. Typically vision prescriptions are valid for two years from the date written.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VisionPrescription.dateWritten",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VisionPrescription.prescriber",
            "path": "VisionPrescription.prescriber",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VisionPrescription.prescriber",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VisionPrescription.lensSpecification",
            "path": "VisionPrescription.lensSpecification",
            "min": 1,
            "max": "*",
            "base": {
              "path": "VisionPrescription.lensSpecification",
              "min": 1,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "VisionPrescription.lensSpecification.id",
            "path": "VisionPrescription.lensSpecification.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.extension",
            "path": "VisionPrescription.lensSpecification.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.modifierExtension",
            "path": "VisionPrescription.lensSpecification.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "VisionPrescription.lensSpecification.product",
            "path": "VisionPrescription.lensSpecification.product",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.product",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VisionProduct"
                }
              ],
              "strength": "example",
              "description": "A coded concept describing the vision products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vision-product"
            }
          },
          {
            "id": "VisionPrescription.lensSpecification.eye",
            "path": "VisionPrescription.lensSpecification.eye",
            "comment": "May also appear as OD (oculus dexter) for the right eye and OS (oculus siniter) for the left eye.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.eye",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VisionEyes"
                }
              ],
              "strength": "required",
              "description": "A coded concept listing the eye codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1"
            }
          },
          {
            "id": "VisionPrescription.lensSpecification.sphere",
            "path": "VisionPrescription.lensSpecification.sphere",
            "comment": "The value is negative for near-sighted and positive for far sighted.\nOften insurance will not cover a lens with power between +75 and -75.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.sphere",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.cylinder",
            "path": "VisionPrescription.lensSpecification.cylinder",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.cylinder",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.axis",
            "path": "VisionPrescription.lensSpecification.axis",
            "comment": "The limits are +180 and -180 degrees.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.axis",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "integer"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.prism",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Prism"
              }
            ],
            "path": "VisionPrescription.lensSpecification.prism",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VisionPrescription.lensSpecification.prism",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.prism.id",
            "path": "VisionPrescription.lensSpecification.prism.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Element.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.prism.extension",
            "path": "VisionPrescription.lensSpecification.prism.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Element.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.prism.modifierExtension",
            "path": "VisionPrescription.lensSpecification.prism.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "BackboneElement.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary": true
          },
          {
            "id": "VisionPrescription.lensSpecification.prism.amount",
            "path": "VisionPrescription.lensSpecification.prism.amount",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.prism.amount",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.prism.base",
            "path": "VisionPrescription.lensSpecification.prism.base",
            "min": 1,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.prism.base",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VisionBase"
                }
              ],
              "strength": "required",
              "description": "A coded concept listing the base codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1"
            }
          },
          {
            "id": "VisionPrescription.lensSpecification.add",
            "path": "VisionPrescription.lensSpecification.add",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.add",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.power",
            "path": "VisionPrescription.lensSpecification.power",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.power",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.backCurve",
            "path": "VisionPrescription.lensSpecification.backCurve",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.backCurve",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.diameter",
            "path": "VisionPrescription.lensSpecification.diameter",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.diameter",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.duration",
            "path": "VisionPrescription.lensSpecification.duration",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.duration",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.color",
            "path": "VisionPrescription.lensSpecification.color",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.color",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.brand",
            "path": "VisionPrescription.lensSpecification.brand",
            "min": 0,
            "max": "1",
            "base": {
              "path": "VisionPrescription.lensSpecification.brand",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "VisionPrescription.lensSpecification.note",
            "path": "VisionPrescription.lensSpecification.note",
            "min": 0,
            "max": "*",
            "base": {
              "path": "VisionPrescription.lensSpecification.note",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Annotation"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "VisionPrescription",
            "path": "VisionPrescription",
            "min": 0,
            "max": "*"
          },
          {
            "id": "VisionPrescription.identifier",
            "path": "VisionPrescription.identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Identifier"
              }
            ]
          },
          {
            "id": "VisionPrescription.status",
            "path": "VisionPrescription.status",
            "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VisionStatus"
                }
              ],
              "strength": "required",
              "description": "A code specifying the state of the resource instance.",
              "valueSet": "http://hl7.org/fhir/ValueSet/fm-status|4.0.1"
            }
          },
          {
            "id": "VisionPrescription.created",
            "path": "VisionPrescription.created",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "VisionPrescription.patient",
            "path": "VisionPrescription.patient",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "VisionPrescription.encounter",
            "path": "VisionPrescription.encounter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Encounter"
                ]
              }
            ]
          },
          {
            "id": "VisionPrescription.dateWritten",
            "path": "VisionPrescription.dateWritten",
            "comment": "Jurisdictions determine the valid lifetime of a prescription. Typically vision prescriptions are valid for two years from the date written.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "VisionPrescription.prescriber",
            "path": "VisionPrescription.prescriber",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "targetProfile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner",
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "id": "VisionPrescription.lensSpecification",
            "path": "VisionPrescription.lensSpecification",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ],
            "isSummary": true
          },
          {
            "id": "VisionPrescription.lensSpecification.product",
            "path": "VisionPrescription.lensSpecification.product",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VisionProduct"
                }
              ],
              "strength": "example",
              "description": "A coded concept describing the vision products.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vision-product"
            }
          },
          {
            "id": "VisionPrescription.lensSpecification.eye",
            "path": "VisionPrescription.lensSpecification.eye",
            "comment": "May also appear as OD (oculus dexter) for the right eye and OS (oculus siniter) for the left eye.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VisionEyes"
                }
              ],
              "strength": "required",
              "description": "A coded concept listing the eye codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1"
            }
          },
          {
            "id": "VisionPrescription.lensSpecification.sphere",
            "path": "VisionPrescription.lensSpecification.sphere",
            "comment": "The value is negative for near-sighted and positive for far sighted.\nOften insurance will not cover a lens with power between +75 and -75.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.cylinder",
            "path": "VisionPrescription.lensSpecification.cylinder",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.axis",
            "path": "VisionPrescription.lensSpecification.axis",
            "comment": "The limits are +180 and -180 degrees.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.prism",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "Prism"
              }
            ],
            "path": "VisionPrescription.lensSpecification.prism",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "BackboneElement"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.prism.amount",
            "path": "VisionPrescription.lensSpecification.prism.amount",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.prism.base",
            "path": "VisionPrescription.lensSpecification.prism.base",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "VisionBase"
                }
              ],
              "strength": "required",
              "description": "A coded concept listing the base codes.",
              "valueSet": "http://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1"
            }
          },
          {
            "id": "VisionPrescription.lensSpecification.add",
            "path": "VisionPrescription.lensSpecification.add",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.power",
            "path": "VisionPrescription.lensSpecification.power",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.backCurve",
            "path": "VisionPrescription.lensSpecification.backCurve",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.diameter",
            "path": "VisionPrescription.lensSpecification.diameter",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.duration",
            "path": "VisionPrescription.lensSpecification.duration",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.color",
            "path": "VisionPrescription.lensSpecification.color",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.brand",
            "path": "VisionPrescription.lensSpecification.brand",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ]
          },
          {
            "id": "VisionPrescription.lensSpecification.note",
            "path": "VisionPrescription.lensSpecification.note",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Annotation"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/MetadataResource",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "MetadataResource",
      "meta": {
        "lastUpdated": "2019-11-01T09:29:23.356+11:00"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode": "trial-use"
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode": "fhir"
        }
      ],
      "url": "http://hl7.org/fhir/StructureDefinition/MetadataResource",
      "version": "4.0.1",
      "name": "MetadataResource",
      "status": "draft",
      "date": "2019-11-01T09:29:23+11:00",
      "fhirVersion": "4.0.1",
      "kind": "logical",
      "abstract": false,
      "type": "MetadataResource",
      "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
      "derivation": "specialization",
      "snapshot": {
        "element": [
          {
            "id": "MetadataResource",
            "path": "MetadataResource",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MetadataResource",
              "min": 1,
              "max": "1"
            },
            "constraint": [
              {
                "key": "dom-2",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression": "contained.contained.empty()",
                "xpath": "not(parent::f:contained and f:contained)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-3",
                "severity": "error",
                "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
                "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
                "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-4",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "dom-5",
                "severity": "error",
                "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression": "contained.meta.security.empty()",
                "xpath": "not(exists(f:contained/*/f:meta/f:security))",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                    "valueBoolean": true
                  },
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                    "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
                  }
                ],
                "key": "dom-6",
                "severity": "warning",
                "human": "A resource should have narrative for robust management",
                "expression": "text.`div`.exists()",
                "xpath": "exists(f:text/h:div)",
                "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "inv-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MetadataResource.id",
            "path": "MetadataResource.id",
            "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl": "string"
                  }
                ],
                "code": "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.meta",
            "path": "MetadataResource.meta",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.meta",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Meta"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.implicitRules",
            "path": "MetadataResource.implicitRules",
            "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.implicitRules",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
            "isSummary": true
          },
          {
            "id": "MetadataResource.language",
            "path": "MetadataResource.language",
            "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Resource.language",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
                  "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Language"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "preferred",
              "description": "A human language.",
              "valueSet": "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id": "MetadataResource.text",
            "path": "MetadataResource.text",
            "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "DomainResource.text",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "Narrative"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MetadataResource.contained",
            "path": "MetadataResource.contained",
            "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.contained",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Resource"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MetadataResource.extension",
            "path": "MetadataResource.extension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MetadataResource.modifierExtension",
            "path": "MetadataResource.modifierExtension",
            "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "DomainResource.modifierExtension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key": "ext-1",
                "severity": "error",
                "human": "Must have either extensions or value[x], not both",
                "expression": "extension.exists() != value.exists()",
                "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source": "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier": true,
            "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary": false
          },
          {
            "id": "MetadataResource.url",
            "path": "MetadataResource.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MetadataResource.url",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.version",
            "path": "MetadataResource.version",
            "comment": "There may be different metadata resource instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the metadata resource with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MetadataResource.version",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.name",
            "path": "MetadataResource.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MetadataResource.name",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.title",
            "path": "MetadataResource.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MetadataResource.title",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.status",
            "path": "MetadataResource.status",
            "comment": "Allows filtering of metadata resources that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "base": {
              "path": "MetadataResource.status",
              "min": 1,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "MetadataResource.experimental",
            "path": "MetadataResource.experimental",
            "comment": "Allows filtering of metadata resources that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MetadataResource.experimental",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "boolean"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.date",
            "path": "MetadataResource.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the metadata resource. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MetadataResource.date",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.publisher",
            "path": "MetadataResource.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the metadata resource is the organization or individual primarily responsible for the maintenance and upkeep of the metadata resource. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the metadata resource. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MetadataResource.publisher",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.contact",
            "path": "MetadataResource.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MetadataResource.contact",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.description",
            "path": "MetadataResource.description",
            "comment": "This description can be used to capture details such as why the metadata resource was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the metadata resource as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the metadata resource is presumed to be the predominant language in the place the metadata resource was created).",
            "min": 0,
            "max": "1",
            "base": {
              "path": "MetadataResource.description",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "markdown"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": false
          },
          {
            "id": "MetadataResource.useContext",
            "path": "MetadataResource.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MetadataResource.useContext",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true
          },
          {
            "id": "MetadataResource.jurisdiction",
            "path": "MetadataResource.jurisdiction",
            "comment": "It may be possible for the metadata resource to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "base": {
              "path": "MetadataResource.jurisdiction",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "expression": "hasValue() or (children().count() > id.count())",
                "xpath": "@value|f:*|h:div",
                "source": "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier": false,
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          }
        ]
      },
      "differential": {
        "element": [
          {
            "id": "MetadataResource",
            "path": "MetadataResource",
            "min": 1,
            "max": "1",
            "constraint": [
              {
                "key": "inv-0",
                "severity": "warning",
                "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
                "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
                "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"
              }
            ]
          },
          {
            "id": "MetadataResource.url",
            "path": "MetadataResource.url",
            "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MetadataResource.version",
            "path": "MetadataResource.version",
            "comment": "There may be different metadata resource instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the metadata resource with the format [url]|[version].",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MetadataResource.name",
            "path": "MetadataResource.name",
            "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "inv-0"
            ],
            "isSummary": true
          },
          {
            "id": "MetadataResource.title",
            "path": "MetadataResource.title",
            "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MetadataResource.status",
            "path": "MetadataResource.status",
            "comment": "Allows filtering of metadata resources that are appropriate for use versus not.",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "PublicationStatus"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "required",
              "description": "The lifecycle status of an artifact.",
              "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
            }
          },
          {
            "id": "MetadataResource.experimental",
            "path": "MetadataResource.experimental",
            "comment": "Allows filtering of metadata resources that are appropriate for use versus not.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MetadataResource.date",
            "path": "MetadataResource.date",
            "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the metadata resource. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MetadataResource.publisher",
            "path": "MetadataResource.publisher",
            "comment": "Usually an organization but may be an individual. The publisher (or steward) of the metadata resource is the organization or individual primarily responsible for the maintenance and upkeep of the metadata resource. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the metadata resource. This item SHOULD be populated unless the information is available from context.",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MetadataResource.contact",
            "path": "MetadataResource.contact",
            "comment": "May be a web site, an email address, a telephone number, etc.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "ContactDetail"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MetadataResource.description",
            "path": "MetadataResource.description",
            "comment": "This description can be used to capture details such as why the metadata resource was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the metadata resource as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the metadata resource is presumed to be the predominant language in the place the metadata resource was created).",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ]
          },
          {
            "id": "MetadataResource.useContext",
            "path": "MetadataResource.useContext",
            "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "UsageContext"
              }
            ],
            "isSummary": true
          },
          {
            "id": "MetadataResource.jurisdiction",
            "path": "MetadataResource.jurisdiction",
            "comment": "It may be possible for the metadata resource to be used in jurisdictions other than those for which it was originally designed or intended.",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString": "Jurisdiction"
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
                  "valueBoolean": true
                }
              ],
              "strength": "extensible",
              "description": "Countries and regions within which this artifact is targeted for use.",
              "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
            }
          }
        ]
      }
    }
  }
]

}